~charlesk/indicator-session/lp-1027952

« back to all changes in this revision

Viewing changes to src/user-widget.c

  • Committer: Charles Kerr
  • Date: 2012-07-05 14:45:27 UTC
  • Revision ID: charles.kerr@canonical.com-20120705144527-ua7owpt2k7y88fw0
reduce the user icon size from 32 to 24 pixels as per mpt's request.

Show diffs side-by-side

added added

removed removed

Lines of Context:
515
515
****
516
516
***/
517
517
 
 
518
static const int ICON_SIZE = 24;
 
519
 
518
520
static void
519
521
update_icon (UserWidget * self, DbusmenuMenuitem * mi)
520
522
{
525
527
  if (icon_name)
526
528
    {
527
529
      GError* error = NULL;
528
 
      pixbuf = gdk_pixbuf_new_from_file_at_size (icon_name, 32, 32, &error);
 
530
      pixbuf = gdk_pixbuf_new_from_file_at_size (icon_name, ICON_SIZE, ICON_SIZE, &error);
529
531
      if (error != NULL)
530
532
        {
531
533
          g_warning ("Couldn't load the image \"%s\": %s", icon_name, error->message);
544
546
 
545
547
      pixbuf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
546
548
                                         USER_ITEM_ICON_DEFAULT,
547
 
                                         32,
 
549
                                         ICON_SIZE,
548
550
                                         GTK_ICON_LOOKUP_FORCE_SIZE,
549
551
                                         NULL);
550
552
    }