aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk/parser.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-01-24 07:38:28 -0600
committerTed Gould <ted@gould.cx>2012-01-24 07:38:28 -0600
commit8d18657e839ba4cf8db7b69753a7896bbef49089 (patch)
tree2b325e424d306fc6555e6dae42ea2599fbefafe9 /libdbusmenu-gtk/parser.c
parent1da8653f7745fd81acd89ab6422160235264be81 (diff)
parent0845cb4986d649c38e7f9b9784af76539bfb2dea (diff)
downloadlibdbusmenu-8d18657e839ba4cf8db7b69753a7896bbef49089.tar.gz
libdbusmenu-8d18657e839ba4cf8db7b69753a7896bbef49089.tar.bz2
libdbusmenu-8d18657e839ba4cf8db7b69753a7896bbef49089.zip
Update to trunk
Diffstat (limited to 'libdbusmenu-gtk/parser.c')
-rw-r--r--libdbusmenu-gtk/parser.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libdbusmenu-gtk/parser.c b/libdbusmenu-gtk/parser.c
index e988c62..92932c5 100644
--- a/libdbusmenu-gtk/parser.c
+++ b/libdbusmenu-gtk/parser.c
@@ -1059,8 +1059,13 @@ widget_notify_cb (GtkWidget *widget,
DBUSMENU_MENUITEM_PROP_VISIBLE,
g_value_get_boolean (&prop_value));
}
- else if (pspec->name == g_intern_static_string ("image") ||
- pspec->name == g_intern_static_string ("always-show-image"))
+ else if (pspec->name == g_intern_static_string ("always-show-image"))
+ {
+ GtkWidget *image = NULL;
+ g_object_get(widget, "image", &image, NULL);
+ update_icon (child, GTK_IMAGE(image));
+ }
+ else if (pspec->name == g_intern_static_string ("image"))
{
GtkWidget *image;
image = GTK_WIDGET (g_value_get_object (&prop_value));