diff options
author | Matthias Clasen <mclasen@redhat.com> | 2009-06-05 20:11:44 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2009-06-05 20:11:44 -0400 |
commit | dccfd423cad919a91dbebc9cbd32a4479b33b2d5 (patch) | |
tree | e2489991bd91ca672de768aadf1d1c4906e872ac /gtk/gtkentrycompletion.c | |
parent | 8da1c40d72a0fa7b68d241ac34fee6786dae073f (diff) | |
download | gtk+-dccfd423cad919a91dbebc9cbd32a4479b33b2d5.tar.gz |
Don't unselect when resizing
This was causing problems in Epiphany. Fixes bug 584805.
Diffstat (limited to 'gtk/gtkentrycompletion.c')
-rw-r--r-- | gtk/gtkentrycompletion.c | 6 |
1 files 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); |