From: Christian Dywan Date: Wed, 7 Mar 2012 23:57:40 +0000 (+0100) Subject: Realize completion treeview early for the style X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=323177c429c39f9370a215720e69c161ef927996;p=midori Realize completion treeview early for the style Fixes: https://bugs.launchpad.net/midori/+bug/947635 --- diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c index ea42789f..6f218e07 100644 --- a/midori/midori-locationaction.c +++ b/midori/midori-locationaction.c @@ -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) {