diff options
author | Ted Gould <ted@gould.cx> | 2010-03-10 22:40:30 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-10 22:40:30 -0600 |
commit | e7852842c50a30da42b6da0b415fe84946931cd0 (patch) | |
tree | 68764d111fc21d8316a0e41d38f6b189874daa4d /src | |
parent | 249bcd9577a8cb9c1ab2a17662037abeb2e38619 (diff) | |
download | ayatana-indicator-application-e7852842c50a30da42b6da0b415fe84946931cd0.tar.gz ayatana-indicator-application-e7852842c50a30da42b6da0b415fe84946931cd0.tar.bz2 ayatana-indicator-application-e7852842c50a30da42b6da0b415fe84946931cd0.zip |
Also using the helper when changing icons.
Diffstat (limited to 'src')
-rw-r--r-- | src/indicator-application.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/indicator-application.c b/src/indicator-application.c index dd3d0ad..5243e8f 100644 --- a/src/indicator-application.c +++ b/src/indicator-application.c @@ -531,14 +531,10 @@ application_icon_changed (DBusGProxy * proxy, gint position, const gchar * iconn icon is available we want to use it. Otherwise we'll just use the name we were given. */ gchar * longname = g_strdup_printf("%s-%s", iconname, PANEL_ICON_SUFFIX); - if (gtk_icon_theme_has_icon(gtk_icon_theme_get_default(), longname)) { - g_debug("Setting icon on %d to %s", position, longname); - gtk_image_set_from_icon_name(app->entry.image, longname, DESIGN_TEAM_SIZE); - } else { - g_debug("Setting icon on %d to %s", position, iconname); - gtk_image_set_from_icon_name(app->entry.image, iconname, DESIGN_TEAM_SIZE); - } + GtkImage * tempimage = indicator_image_helper(longname); g_free(longname); + gtk_image_set_from_pixbuf(app->entry.image, gtk_image_get_pixbuf(tempimage)); + g_object_ref_sink(tempimage); return; } |