From e7852842c50a30da42b6da0b415fe84946931cd0 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 10 Mar 2010 22:40:30 -0600 Subject: Also using the helper when changing icons. --- src/indicator-application.c | 10 +++------- 1 file 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; } -- cgit v1.2.3