]> spindle.queued.net Git - midori/commitdiff
Position array menu freely to avoid a GTK+ bug on Hildon
authorChristian Dywan <christian@twotoasts.de>
Sat, 28 Nov 2009 18:42:43 +0000 (19:42 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 29 Nov 2009 13:09:28 +0000 (14:09 +0100)
katze/katze-arrayaction.c

index ca17aed57c1f5777bb35f3066a12fe538e966f89..4b3cd1e993771a65e8a958ac8ab4468789be2773 100644 (file)
@@ -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*