Only show the completion after resizing it properly

Showing the completion early on will result in ugly flickering,
curiously not with xfwm4.
This commit is contained in:
Alexander Butenko 2010-01-25 22:10:39 +01:00 committed by Christian Dywan
parent 3bcd5700e1
commit 5fa82189fa

View 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;
}