From 249bcd9577a8cb9c1ab2a17662037abeb2e38619 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 10 Mar 2010 17:14:04 -0600 Subject: Switching to using the libindicator image helper --- src/indicator-application.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/indicator-application.c b/src/indicator-application.c index d89874e..dd3d0ad 100644 --- a/src/indicator-application.c +++ b/src/indicator-application.c @@ -35,6 +35,7 @@ with this program. If not, see . #include #include #include +#include /* Local Stuff */ #include "dbus-shared.h" @@ -452,11 +453,7 @@ application_added (DBusGProxy * proxy, const gchar * iconname, gint position, co 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)) { - app->entry.image = GTK_IMAGE(gtk_image_new_from_icon_name(longname, DESIGN_TEAM_SIZE)); - } else { - app->entry.image = GTK_IMAGE(gtk_image_new_from_icon_name(iconname, DESIGN_TEAM_SIZE)); - } + app->entry.image = indicator_image_helper(longname); g_free(longname); app->entry.label = NULL; -- cgit v1.2.3