From 323177c429c39f9370a215720e69c161ef927996 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 8 Mar 2012 00:57:40 +0100 Subject: [PATCH] Realize completion treeview early for the style Fixes: https://bugs.launchpad.net/midori/+bug/947635 --- midori/midori-locationaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5