diff options
author | Ted Gould <ted@gould.cx> | 2010-03-10 17:14:04 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-10 17:14:04 -0600 |
commit | 249bcd9577a8cb9c1ab2a17662037abeb2e38619 (patch) | |
tree | aa1ddfc8c7ab84c8662b97e1eafccf2c49d350b1 | |
parent | a503e71342f8dc7bc11e80564ffb7ac8e68a1846 (diff) | |
download | ayatana-indicator-application-249bcd9577a8cb9c1ab2a17662037abeb2e38619.tar.gz ayatana-indicator-application-249bcd9577a8cb9c1ab2a17662037abeb2e38619.tar.bz2 ayatana-indicator-application-249bcd9577a8cb9c1ab2a17662037abeb2e38619.zip |
Switching to using the libindicator image helper
-rw-r--r-- | src/indicator-application.c | 7 |
1 files 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 <http://www.gnu.org/licenses/>. #include <libindicator/indicator.h> #include <libindicator/indicator-object.h> #include <libindicator/indicator-service-manager.h> +#include <libindicator/indicator-image-helper.h> /* 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; |