[Xfce4-commits] <midori:master> Apply scrollbar size hack to get the correct completion height

Christian Dywan noreply at xfce.org
Thu Jan 28 02:28:01 CET 2010


Updating branch refs/heads/master
         to 7065767a613936c8f03998df61278ba71897942b (commit)
       from 3a949ac407ea6ffa4d6b72891eff479858d0ff31 (commit)

commit 7065767a613936c8f03998df61278ba71897942b
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Jan 27 23:53:15 2010 +0100

    Apply scrollbar size hack to get the correct completion height
    
    GtkEntryCompletion uses a hack to ensure that the suggestion
    popup has the correct height. We do the same now.

 midori/midori-locationaction.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index 69031dc..5098794 100644
--- a/midori/midori-locationaction.c
+++ b/midori/midori-locationaction.c
@@ -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 ();



More information about the Xfce4-commits mailing list