diff options
author | Ted Gould <ted@gould.cx> | 2010-09-09 09:41:13 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-09-09 09:41:13 -0500 |
commit | ae53bdc6ad8467d10dc7bc733477f87a23facb4d (patch) | |
tree | 6cfed2d1aa96f52598c154c3fb8111be98d19053 /libdbusmenu-gtk | |
parent | f4ff4261e9699cdbb9621a6250c4b29ec33d5622 (diff) | |
parent | 95d4df8bfd7c9a2aa87be499460507b29f947478 (diff) | |
download | libdbusmenu-ae53bdc6ad8467d10dc7bc733477f87a23facb4d.tar.gz libdbusmenu-ae53bdc6ad8467d10dc7bc733477f87a23facb4d.tar.bz2 libdbusmenu-ae53bdc6ad8467d10dc7bc733477f87a23facb4d.zip |
Import upstream version 0.3.13
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r-- | libdbusmenu-gtk/client.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c index 44f95fe..6970d59 100644 --- a/libdbusmenu-gtk/client.c +++ b/libdbusmenu-gtk/client.c @@ -453,6 +453,13 @@ activate_helper (GtkMenuShell * shell) if (GTK_IS_MENU(parent)) { activate_helper(GTK_MENU_SHELL(parent)); } + + if (!GTK_MENU_SHELL (parent)->active) { + gtk_grab_add (parent); + GTK_MENU_SHELL (parent)->have_grab = TRUE; + GTK_MENU_SHELL (parent)->active = TRUE; + } + gtk_menu_shell_select_item(GTK_MENU_SHELL(parent), attach); } } |