aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk/client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-23 23:14:57 -0500
committerTed Gould <ted@gould.cx>2010-03-23 23:14:57 -0500
commit9855cec4e4cbc745fdafb6270975be7f3e4f99fc (patch)
treedb79ad06f7d35936db126fe20a2d47d6b5bd475c /libdbusmenu-gtk/client.c
parentc73fc61a3c5d997a21065c6269495e393d9e7bbe (diff)
downloadlibdbusmenu-9855cec4e4cbc745fdafb6270975be7f3e4f99fc.tar.gz
libdbusmenu-9855cec4e4cbc745fdafb6270975be7f3e4f99fc.tar.bz2
libdbusmenu-9855cec4e4cbc745fdafb6270975be7f3e4f99fc.zip
This is crazy
Diffstat (limited to 'libdbusmenu-gtk/client.c')
-rw-r--r--libdbusmenu-gtk/client.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c
index 8483675..dfa2fe2 100644
--- a/libdbusmenu-gtk/client.c
+++ b/libdbusmenu-gtk/client.c
@@ -533,7 +533,32 @@ image_property_handle (DbusmenuMenuitem * item, const gchar * property, const GV
gint width, height;
gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &width, &height);
+#if 0
+ /* Not work */
+ GError * error = NULL;
+ GdkPixbuf * pixbuf = gdk_pixbuf_new_from_file("/usr/share/icons/hicolor/16x16/apps/wine.png", &error);
+ if (error != NULL) { g_warning("Blank error: %s", error->message); }
+ gtkimage = gtk_image_new_from_pixbuf(pixbuf);
+#endif
+#if 1
+ /* Work */
+ gtkimage = gtk_image_new_from_icon_name("stock_person", GTK_ICON_SIZE_MENU);
+#endif
+#if 0
+ /* Not Work */
gtkimage = gtk_image_new();
+#endif
+#if 0
+ /* Not work */
+ gtkimage = gtk_image_new_from_icon_name("stock_person", GTK_ICON_SIZE_MENU);
+ gtk_image_clear(GTK_IMAGE(gtkimage));
+#endif
+#if 0
+ /* Not work */
+ gtkimage = gtk_image_new();
+ gtk_widget_show(gtkimage);
+#endif
+
gtk_widget_set_size_request(GTK_WIDGET(gtkimage), width, height);
} else {
/* Look to see if we want to have an icon with the 'ltr' or