[gnome-characters] window: Deactivate search when category changes



commit 4e0d023fa337d1d874d43df94b41b5b273283325
Author: Daiki Ueno <dueno src gnome org>
Date:   Mon Mar 2 13:20:11 2015 +0900

    window: Deactivate search when category changes

 src/window.js |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/window.js b/src/window.js
index 31caf72..64b220a 100644
--- a/src/window.js
+++ b/src/window.js
@@ -128,8 +128,11 @@ const MainWindow = new Lang.Class({
         if (this._searchActive == v)
             return;
 
-        this._categoryList.unselect_all();
         this._searchActive = v;
+
+        if (this._searchActive)
+            this._categoryList.unselect_all();
+
         this.notify('search-active');
     },
 
@@ -186,6 +189,8 @@ const MainWindow = new Lang.Class({
     },
 
     _category: function(action, v) {
+        this.search_active = false;
+
         let [name, length] = v.get_string()
 
         // FIXME: we could use Gtk.Container.get_child to obtain the


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