ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #02188
[Branch ~dbusmenu-team/dbusmenu/trunk] Rev 157: Adding magic grab code to unfubar menus
Merge authors:
Cody Russell (bratsche)
Related merge proposals:
https://code.launchpad.net/~bratsche/dbusmenu/grab-your-junk/+merge/34125
proposed by: Cody Russell (bratsche)
------------------------------------------------------------
revno: 157 [merge]
committer: Ted Gould <ted@xxxxxxxx>
branch nick: trunk
timestamp: Mon 2010-08-30 15:22:43 -0500
message:
Adding magic grab code to unfubar menus
modified:
libdbusmenu-gtk/client.c
--
lp:dbusmenu
https://code.launchpad.net/~dbusmenu-team/dbusmenu/trunk
Your team ayatana-commits is subscribed to branch lp:dbusmenu.
To unsubscribe from this branch go to https://code.launchpad.net/~dbusmenu-team/dbusmenu/trunk/+edit-subscription
=== modified file 'libdbusmenu-gtk/client.c'
--- libdbusmenu-gtk/client.c 2010-08-20 21:47:06 +0000
+++ libdbusmenu-gtk/client.c 2010-08-30 20:22:43 +0000
@@ -453,6 +453,13 @@
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);
}
}