From: Christian Dywan Date: Sat, 28 Nov 2009 18:42:43 +0000 (+0100) Subject: Position array menu freely to avoid a GTK+ bug on Hildon X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04ebfb473318cfd6ce60a446b2fe78d2f7e85020;p=midori Position array menu freely to avoid a GTK+ bug on Hildon --- diff --git a/katze/katze-arrayaction.c b/katze/katze-arrayaction.c index ca17aed5..4b3cd1e9 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*