[gnome-boxes] searchbar: Clear search when dismissed



commit 6f320f7d9418dab5d8d44a761191868e75041003
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Oct 26 10:46:39 2012 +0200

    searchbar: Clear search when dismissed
    
    When we're not showing the search field we should
    always show all items.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=686883

 src/searchbar.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/searchbar.vala b/src/searchbar.vala
index 6b007d3..d2f5960 100644
--- a/src/searchbar.vala
+++ b/src/searchbar.vala
@@ -46,6 +46,8 @@ private class Boxes.Searchbar: Boxes.UI {
             App.app.searchbar_revealer.revealed = value;
             if (value)
                 grab_focus ();
+            else
+                text = "";
 
             _visible = value;
         }



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