[polari] userList: Reset search when closed



commit 92ce2aaa49c743b2359b998fbb388be4e74cb833
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Apr 11 16:47:19 2014 +0200

    userList: Reset search when closed
    
    Opening the popover with a previously entered search just doesn't
    make sense ...

 src/userList.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/userList.js b/src/userList.js
index 1fead78..f4122e7 100644
--- a/src/userList.js
+++ b/src/userList.js
@@ -14,6 +14,9 @@ const UserListPopover = new Lang.Class({
     _init: function() {
         this._createWidget();
 
+        this.widget.connect('closed', Lang.bind(this, function() {
+            this._entry.text = '';
+        }));
         this.widget.connect('map', Lang.bind(this, function() {
             this._revealer.transition_duration = 0;
         }));


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