[Xfce4-commits] <xfce4-panel:andrzejr/wrapper3> xfce4-panel lib: workaround for ctx menus with scroll buttons.
Andrzej
noreply at xfce.org
Mon Aug 26 00:26:12 CEST 2013
Updating branch refs/heads/andrzejr/wrapper3
to e19efc05e6c6388b6f2f869aec452f55a03cc74c (commit)
from 2502e16c7d50862adfec96955532d02c35dedaf8 (commit)
commit e19efc05e6c6388b6f2f869aec452f55a03cc74c
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 file changed, 7 insertions(+)
diff --git a/libxfce4panel/xfce-panel-plugin.c b/libxfce4panel/xfce-panel-plugin.c
index 1e5933e..df417fe 100644
--- a/libxfce4panel/xfce-panel-plugin.c
+++ b/libxfce4panel/xfce-panel-plugin.c
@@ -2589,8 +2589,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