[Xfce4-commits] <midori:master> Position array menu freely to avoid a GTK+ bug on Hildon
Christian Dywan
noreply at xfce.org
Sun Nov 29 14:12:04 CET 2009
Updating branch refs/heads/master
to 04ebfb473318cfd6ce60a446b2fe78d2f7e85020 (commit)
from 183878db8c38746caf9efdb3fdd5d347b746f222 (commit)
commit 04ebfb473318cfd6ce60a446b2fe78d2f7e85020
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Nov 28 19:42:43 2009 +0100
Position array menu freely to avoid a GTK+ bug on Hildon
katze/katze-arrayaction.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/katze/katze-arrayaction.c b/katze/katze-arrayaction.c
index ca17aed..4b3cd1e 100644
--- a/katze/katze-arrayaction.c
+++ b/katze/katze-arrayaction.c
@@ -388,8 +388,14 @@ katze_array_action_proxy_clicked_cb (GtkWidget* proxy,
if (array == array_action->array)
g_signal_emit (array_action, signals[POPULATE_POPUP], 0, menu);
+ #if HAVE_HILDON
+ /* Avoid a bug in GTK+ messing up the initial scrolling position */
+ katze_widget_popup (NULL, GTK_MENU (menu),
+ NULL, KATZE_MENU_POSITION_LEFT);
+ #else
katze_widget_popup (GTK_WIDGET (proxy), GTK_MENU (menu),
NULL, KATZE_MENU_POSITION_LEFT);
+ #endif
}
static GtkWidget*
More information about the Xfce4-commits
mailing list