aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk/client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-09-09 09:42:16 -0500
committerTed Gould <ted@gould.cx>2010-09-09 09:42:16 -0500
commit8dd9612e974b2e43c0828c2b9e2cebd551d39bef (patch)
treea461ea906865376568b94cf4f8e4a856fdb5c35b /libdbusmenu-gtk/client.c
parentc69489d0f100d3df9c0bcdcdb6d05cd4eca6c250 (diff)
parentae53bdc6ad8467d10dc7bc733477f87a23facb4d (diff)
downloadlibdbusmenu-8dd9612e974b2e43c0828c2b9e2cebd551d39bef.tar.gz
libdbusmenu-8dd9612e974b2e43c0828c2b9e2cebd551d39bef.tar.bz2
libdbusmenu-8dd9612e974b2e43c0828c2b9e2cebd551d39bef.zip
* New upstream release.
* Changing the timeouts on event calls for better detection of failing applications
Diffstat (limited to 'libdbusmenu-gtk/client.c')
-rw-r--r--libdbusmenu-gtk/client.c7
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);
}
}