]> spindle.queued.net Git - midori/commitdiff
Apply scrollbar size hack to get the correct completion height
authorChristian Dywan <christian@twotoasts.de>
Wed, 27 Jan 2010 22:53:15 +0000 (23:53 +0100)
committerChristian Dywan <christian@twotoasts.de>
Thu, 28 Jan 2010 01:25:52 +0000 (02:25 +0100)
GtkEntryCompletion uses a hack to ensure that the suggestion
popup has the correct height. We do the same now.

midori/midori-locationaction.c

index 69031dc922af6ef3fee463128070ade4ef9a8324..5098794d70e63b92b4324ee120ea9938b60cfea9 100644 (file)
@@ -402,6 +402,9 @@ midori_location_action_popup_timeout_cb (gpointer data)
         gtk_container_add (GTK_CONTAINER (scrolled), treeview);
         g_signal_connect (treeview, "button-press-event",
             G_CALLBACK (midori_location_action_treeview_button_press_cb), action);
+        /* a nasty hack to get the completions treeview to size nicely */
+        gtk_widget_set_size_request (gtk_scrolled_window_get_vscrollbar (
+            GTK_SCROLLED_WINDOW (scrolled)), -1, 0);
         action->treeview = treeview;
 
         column = gtk_tree_view_column_new ();