aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-12 21:08:15 -0600
committerTed Gould <ted@gould.cx>2010-03-12 21:08:15 -0600
commit4045ff049580248fdffa58a3b8c40bf4bef07682 (patch)
treee1fbf336950bb0e9c4072b4d6734074813846fa0 /src
parent3f28a83d87eeaea304b906c42e2b3f46822833f3 (diff)
downloadayatana-indicator-session-4045ff049580248fdffa58a3b8c40bf4bef07682.tar.gz
ayatana-indicator-session-4045ff049580248fdffa58a3b8c40bf4bef07682.tar.bz2
ayatana-indicator-session-4045ff049580248fdffa58a3b8c40bf4bef07682.zip
Switching to building with GIcon so that we don't have to add an icon, we can use fallbacks.
Diffstat (limited to 'src')
-rw-r--r--src/indicator-session.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c
index 3349886..184a335 100644
--- a/src/indicator-session.c
+++ b/src/indicator-session.c
@@ -326,12 +326,14 @@ restart_property_change (DbusmenuMenuitem * item, const gchar * property, const
} else if (g_strcmp0(property, RESTART_ITEM_ICON) == 0) {
GtkWidget * image = gtk_image_menu_item_get_image(GTK_IMAGE_MENU_ITEM(gmi));
+ GIcon * gicon = g_themed_icon_new_with_default_fallbacks(g_value_get_string(value));
if (image == NULL) {
- image = gtk_image_new_from_icon_name(g_value_get_string(value), GTK_ICON_SIZE_MENU);
+ image = gtk_image_new_from_gicon(gicon, GTK_ICON_SIZE_MENU);
gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(gmi), image);
} else {
- gtk_image_set_from_icon_name(GTK_IMAGE(image), g_value_get_string(value), GTK_ICON_SIZE_MENU);
+ gtk_image_set_from_gicon(GTK_IMAGE(image), gicon, GTK_ICON_SIZE_MENU);
}
+ g_object_unref(G_OBJECT(gicon));
}
return;