[gnome-documents] searchbar: clear the current search properties when hiding the entry



commit 61d89689b09764576f43f0852d4434216f2103ca
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Aug 21 16:56:58 2012 +0200

    searchbar: clear the current search properties when hiding the entry
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682249

 src/searchbar.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/searchbar.js b/src/searchbar.js
index 06bae48..9589101 100644
--- a/src/searchbar.js
+++ b/src/searchbar.js
@@ -601,6 +601,14 @@ const OverviewSearchbar = new Lang.Class({
 
     hide: function() {
         this._dropdownButton.set_active(false);
+
+        // clear all the search properties when hiding the entry
+        this._searchEntry.set_text('');
+
+        Global.searchTypeManager.setActiveItemById('all');
+        Global.searchMatchManager.setActiveItemById('all');
+        Global.sourceManager.setActiveItemById('all');
+
         this.parent();
     }
 });



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