[gnome-control-center] region: Be more thorough in cc_input_chooser_reset()



commit 2e45eeaa369cf367cd9512e1a75f51d6d174de9c
Author: Rui Matos <tiagomatos gmail com>
Date:   Mon Apr 25 20:04:02 2016 +0200

    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

 panels/region/cc-input-chooser.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/panels/region/cc-input-chooser.c b/panels/region/cc-input-chooser.c
index da7dd4e..31824fa 100644
--- a/panels/region/cc-input-chooser.c
+++ b/panels/region/cc-input-chooser.c
@@ -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);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]