]> spindle.queued.net Git - midori/commitdiff
Only show the completion after resizing it properly
authorAlexander Butenko <a.butenka@gmail.com>
Mon, 25 Jan 2010 21:10:39 +0000 (22:10 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 25 Jan 2010 21:10:39 +0000 (22:10 +0100)
Showing the completion early on will result in ugly flickering,
curiously not with xfwm4.

midori/midori-locationaction.c

index 4a2577aa39608aeb78fc1fcf509b037dccfe3d8b..aa6bfbbffb3a71eeeada77729bd8e354bde1fcf1 100644 (file)
@@ -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;
 }