Updating branch refs/heads/nick/gtk3
to 99ac8ac65f2e008cd8d01e8b9a796e76e4352ef2 (commit)
from 98cf4f832dc7976eedea38e7e9559ee9506ff6e7 (commit)
commit 99ac8ac65f2e008cd8d01e8b9a796e76e4352ef2
Author: Andrzej <[email protected]>
Date: Mon Apr 22 23:41:28 2013 +0100
xfce4-panel lib: workaround for ctx menus with scroll buttons.
libxfce4panel/xfce-panel-plugin.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/libxfce4panel/xfce-panel-plugin.c
b/libxfce4panel/xfce-panel-plugin.c
index 2b04941..4fa0b1b 100644
--- a/libxfce4panel/xfce-panel-plugin.c
+++ b/libxfce4panel/xfce-panel-plugin.c
@@ -2585,8 +2585,15 @@ xfce_panel_plugin_position_menu (GtkMenu *menu,
xfce_panel_plugin_position_widget (XFCE_PANEL_PLUGIN (panel_plugin),
GTK_WIDGET (menu), attach_widget, x, y);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ /* FIXME */
+ /* A workaround for Gtk3 popup menus with scroll buttons */
+ /* Menus are "pushed in" anyway */
+ *push_in = FALSE;
+#else
/* keep the menu inside screen */
*push_in = TRUE;
+#endif
}
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits