From dccfd423cad919a91dbebc9cbd32a4479b33b2d5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 5 Jun 2009 20:11:44 -0400 Subject: [PATCH] Don't unselect when resizing This was causing problems in Epiphany. Fixes bug 584805. --- gtk/gtkentrycompletion.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c index 820449dc1a..e2e01426ef 100644 --- a/gtk/gtkentrycompletion.c +++ b/gtk/gtkentrycompletion.c @@ -1426,9 +1426,6 @@ _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion) gtk_tree_view_columns_autosize (GTK_TREE_VIEW (completion->priv->tree_view)); gtk_widget_set_size_request (completion->priv->tree_view, width, items * height); - /* default on no match */ - completion->priv->current_selected = -1; - if (actions) { gtk_widget_show (completion->priv->action_view); @@ -1498,6 +1495,9 @@ _gtk_entry_completion_popup (GtkEntryCompletion *completion) gtk_widget_show_all (completion->priv->vbox); + /* default on no match */ + completion->priv->current_selected = -1; + _gtk_entry_completion_resize_popup (completion); toplevel = gtk_widget_get_toplevel (completion->priv->entry);