[Xfce4-commits] <xfce4-panel:nick/gtk3> xfce4-panel lib: workaround for ctx menus with scroll buttons.
Andrzej
noreply at xfce.org
Tue Apr 23 00:42:01 CEST 2013
Updating branch refs/heads/nick/gtk3
to 99ac8ac65f2e008cd8d01e8b9a796e76e4352ef2 (commit)
from 98cf4f832dc7976eedea38e7e9559ee9506ff6e7 (commit)
commit 99ac8ac65f2e008cd8d01e8b9a796e76e4352ef2
Author: Andrzej <ndrwrdck at gmail.com>
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
}
More information about the Xfce4-commits
mailing list