aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-10 17:14:04 -0600
committerTed Gould <ted@gould.cx>2010-03-10 17:14:04 -0600
commit249bcd9577a8cb9c1ab2a17662037abeb2e38619 (patch)
treeaa1ddfc8c7ab84c8662b97e1eafccf2c49d350b1 /src
parenta503e71342f8dc7bc11e80564ffb7ac8e68a1846 (diff)
downloadayatana-indicator-application-249bcd9577a8cb9c1ab2a17662037abeb2e38619.tar.gz
ayatana-indicator-application-249bcd9577a8cb9c1ab2a17662037abeb2e38619.tar.bz2
ayatana-indicator-application-249bcd9577a8cb9c1ab2a17662037abeb2e38619.zip
Switching to using the libindicator image helper
Diffstat (limited to 'src')
-rw-r--r--src/indicator-application.c7
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;