]> spindle.queued.net Git - midori/commitdiff
Realize completion treeview early for the style
authorChristian Dywan <christian@twotoasts.de>
Wed, 7 Mar 2012 23:57:40 +0000 (00:57 +0100)
committerChristian Dywan <christian@twotoasts.de>
Thu, 8 Mar 2012 00:10:54 +0000 (01:10 +0100)
Fixes: https://bugs.launchpad.net/midori/+bug/947635
midori/midori-locationaction.c

index ea42789fc3eeb318cfa77648a93f0f28e9965aa0..6f218e0718b0494217f1ef60822ea0b06fda4147 100644 (file)
@@ -319,7 +319,6 @@ midori_location_action_popup_position (MidoriLocationAction* action,
         NULL, NULL, NULL, NULL, &height);
     gtk_widget_style_get (action->treeview, "vertical-separator", &sep, NULL);
     height += sep;
-    gtk_widget_realize (action->treeview);
 
     /* Constrain to screen/ window size */
     screen = gtk_widget_get_screen (widget);
@@ -538,6 +537,7 @@ midori_location_action_popup_timeout_cb (gpointer data)
     gtk_list_store_clear (store);
 
     matches = searches = 0;
+    gtk_widget_realize (action->treeview);
     style = gtk_widget_get_style (action->treeview);
     while (result == SQLITE_ROW)
     {