diff options
author | Ted Gould <ted@gould.cx> | 2011-12-01 13:30:10 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-12-01 13:30:10 -0600 |
commit | 685b2fa7a1895809d767c00eca7f9745632106e4 (patch) | |
tree | a1e7ba845f182844c66016bdb93a6fe3315be10e /libdbusmenu-gtk | |
parent | 4d7faacc2be7d9480211057a35c5b93c2dd27e68 (diff) | |
parent | c60ab35eae0b3a41f78f95da84e21c604bc98d57 (diff) | |
download | libdbusmenu-685b2fa7a1895809d767c00eca7f9745632106e4.tar.gz libdbusmenu-685b2fa7a1895809d767c00eca7f9745632106e4.tar.bz2 libdbusmenu-685b2fa7a1895809d767c00eca7f9745632106e4.zip |
Add in a check for always-show-image getting a different type
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r-- | libdbusmenu-gtk/parser.c | 9 |
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)); |