region: Be more thorough in cc_input_chooser_reset()

This should result in returning to the initial state as intended
instead of keeping the filter entry shown and the filter applied.

https://bugzilla.gnome.org/show_bug.cgi?id=765909
This commit is contained in:
Rui Matos 2016-04-25 20:04:02 +02:00
parent ff656743f4
commit 2e45eeaa36

View file

@ -1151,5 +1151,10 @@ cc_input_chooser_get_selected (GtkWidget *chooser,
void
cc_input_chooser_reset (GtkWidget *chooser)
{
CcInputChooserPrivate *priv = GET_PRIVATE (chooser);
priv->showing_extra = FALSE;
gtk_entry_set_text (GTK_ENTRY (priv->filter_entry), "");
gtk_widget_hide (priv->filter_entry);
g_clear_pointer (&priv->filter_words, g_strfreev);
show_locale_rows (chooser);
}