diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-07-05 09:45:27 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-07-05 09:45:27 -0500 |
commit | d1de164d33646a28599eab72cdbd857c823f2958 (patch) | |
tree | 9fcb033b2fad6c62e443b89dbe833b499ce0909a /src | |
parent | faf28a8e17dc0f1ba29425e6a245804842846900 (diff) | |
download | ayatana-indicator-session-d1de164d33646a28599eab72cdbd857c823f2958.tar.gz ayatana-indicator-session-d1de164d33646a28599eab72cdbd857c823f2958.tar.bz2 ayatana-indicator-session-d1de164d33646a28599eab72cdbd857c823f2958.zip |
reduce the user icon size from 32 to 24 pixels as per mpt's request.
Diffstat (limited to 'src')
-rw-r--r-- | src/user-widget.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/user-widget.c b/src/user-widget.c index a4095c1..8f7fbfc 100644 --- a/src/user-widget.c +++ b/src/user-widget.c @@ -515,6 +515,8 @@ _color_shade (const CairoColorRGB *a, float k, CairoColorRGB *b) **** ***/ +static const int ICON_SIZE = 24; + static void update_icon (UserWidget * self, DbusmenuMenuitem * mi) { @@ -525,7 +527,7 @@ update_icon (UserWidget * self, DbusmenuMenuitem * mi) if (icon_name) { GError* error = NULL; - pixbuf = gdk_pixbuf_new_from_file_at_size (icon_name, 32, 32, &error); + pixbuf = gdk_pixbuf_new_from_file_at_size (icon_name, ICON_SIZE, ICON_SIZE, &error); if (error != NULL) { g_warning ("Couldn't load the image \"%s\": %s", icon_name, error->message); @@ -544,7 +546,7 @@ update_icon (UserWidget * self, DbusmenuMenuitem * mi) pixbuf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), USER_ITEM_ICON_DEFAULT, - 32, + ICON_SIZE, GTK_ICON_LOOKUP_FORCE_SIZE, NULL); } |