aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-30 15:22:43 -0500
committerTed Gould <ted@gould.cx>2010-08-30 15:22:43 -0500
commit9797254ca2f9873d7b10f104eb93c9d845ffaea2 (patch)
tree36aafa556e9b36799537d1632132df8bbddd6cc1
parentddd09f68a4d3e991b3db7a1f1a67408bba4875e4 (diff)
parentcbb0f2c5ae4381b2627fcfb9fe7a57d80460ec44 (diff)
downloadlibdbusmenu-9797254ca2f9873d7b10f104eb93c9d845ffaea2.tar.gz
libdbusmenu-9797254ca2f9873d7b10f104eb93c9d845ffaea2.tar.bz2
libdbusmenu-9797254ca2f9873d7b10f104eb93c9d845ffaea2.zip
Adding magic grab code to unfubar menus
-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);
}
}