aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk/client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-11-11 11:28:43 -0600
committerTed Gould <ted@gould.cx>2010-11-11 11:28:43 -0600
commitd69f09d8320fbd3c4e06a6b96d6b3f77f41b6ffa (patch)
treebc30d10509e8f2814ea6c7e39fe2c9154df353e1 /libdbusmenu-gtk/client.c
parent6e1734e1ad6ea13270afc6c9730d3e4ded2cda02 (diff)
parentf0c24c976f319d0b087adc0c8bc694cf930aa30b (diff)
downloadlibdbusmenu-d69f09d8320fbd3c4e06a6b96d6b3f77f41b6ffa.tar.gz
libdbusmenu-d69f09d8320fbd3c4e06a6b96d6b3f77f41b6ffa.tar.bz2
libdbusmenu-d69f09d8320fbd3c4e06a6b96d6b3f77f41b6ffa.zip
* New upstream release.
* Adding build support for GTK2/3 builds * Only force a flush of top level items, allow others to be based on the count.
Diffstat (limited to 'libdbusmenu-gtk/client.c')
-rw-r--r--libdbusmenu-gtk/client.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c
index 487971f..bba4550 100644
--- a/libdbusmenu-gtk/client.c
+++ b/libdbusmenu-gtk/client.c
@@ -454,11 +454,17 @@ activate_helper (GtkMenuShell * shell)
activate_helper(GTK_MENU_SHELL(parent));
}
+ /* This code is being commented out for GTK 3 because it
+ doesn't expose the right variables. We need to figure
+ this out as menus won't get grabs properly.
+ TODO FIXME HELP ARGHHHHHHHH */
+#if (HAVE_GTK3 == 0)
if (!GTK_MENU_SHELL (parent)->active) {
gtk_grab_add (parent);
GTK_MENU_SHELL (parent)->have_grab = TRUE;
GTK_MENU_SHELL (parent)->active = TRUE;
}
+#endif
gtk_menu_shell_select_item(GTK_MENU_SHELL(parent), attach);
}