[gnome-music/freeze-break: 44/107] window: Clear search text when closing search bar



commit 8012fc2d91504060e01e1a96c9e54aea2a336130
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Sun Sep 8 06:34:02 2013 +0800

    window: Clear search text when closing search bar

 gnomemusic/window.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 52a0ea2..a34266c 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -168,3 +168,5 @@ class Window(Gtk.ApplicationWindow):
         self.toolbar.searchbar.set_reveal_child(show)
         if show:
             self.toolbar.searchbar._search_entry.grab_focus()
+        else:
+            self.toolbar.searchbar._search_entry.set_text('')


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