aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk/client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-11-11 08:15:20 -0600
committerTed Gould <ted@gould.cx>2010-11-11 08:15:20 -0600
commitc9694f168206aec1258a57b0f9e458e2a9485ef0 (patch)
tree737761d9428c29f0843fc3f6adf59bd373f7ba9b /libdbusmenu-gtk/client.c
parent30691761c907afc9c5b33fa90e8cbbacc9745acd (diff)
parent7ba22007311d5ed891a8dbb29e76873c74ea4ea6 (diff)
downloadlibdbusmenu-c9694f168206aec1258a57b0f9e458e2a9485ef0.tar.gz
libdbusmenu-c9694f168206aec1258a57b0f9e458e2a9485ef0.tar.bz2
libdbusmenu-c9694f168206aec1258a57b0f9e458e2a9485ef0.zip
Merging in configurable GTK build option
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);
}