[gnome-boxes/gnome-3-6] searchbar: Clear search when dismissed
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-6] searchbar: Clear search when dismissed
- Date: Mon, 12 Nov 2012 22:41:05 +0000 (UTC)
commit 4af83b28da0c0226f23c79bfaf4974eb7711c7ad
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]