From: Alexander Butenko Date: Mon, 25 Jan 2010 21:10:39 +0000 (+0100) Subject: Only show the completion after resizing it properly X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fa82189fa7f70cb3423d9a59ff373992914f82b;p=midori Only show the completion after resizing it properly Showing the completion early on will result in ugly flickering, curiously not with xfwm4. --- diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c index 4a2577aa..aa6bfbbf 100644 --- a/midori/midori-locationaction.c +++ b/midori/midori-locationaction.c @@ -452,7 +452,6 @@ midori_location_action_popup_timeout_cb (gpointer data) gtk_widget_get_screen (action->entry)); gtk_window_set_transient_for (GTK_WINDOW (action->popup), GTK_WINDOW (toplevel)); gtk_tree_view_columns_autosize (GTK_TREE_VIEW (action->treeview)); - gtk_widget_show_all (action->popup); } column = gtk_tree_view_get_column (GTK_TREE_VIEW (action->treeview), 0); @@ -463,6 +462,7 @@ midori_location_action_popup_timeout_cb (gpointer data) height = MIN (matches * height, screen_height / 1.5); gtk_widget_set_size_request (action->treeview, -1, height); midori_location_action_popup_position (action->popup, action->entry); + gtk_widget_show_all (action->popup); return FALSE; }