[tracker] TrackerSearchBar: Hide results window if entry is empty.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] TrackerSearchBar: Hide results window if entry is empty.
- Date: Tue, 23 Mar 2010 13:09:54 +0000 (UTC)
commit f0aadc93173d6cdae43d4547aff06bf206cec0e3
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Mar 23 13:58:17 2010 +0100
TrackerSearchBar: Hide results window if entry is empty.
src/tracker-search-bar/tracker-applet.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-search-bar/tracker-applet.c b/src/tracker-search-bar/tracker-applet.c
index 9204aea..9745422 100644
--- a/src/tracker-search-bar/tracker-applet.c
+++ b/src/tracker-search-bar/tracker-applet.c
@@ -83,6 +83,11 @@ applet_entry_start_search (TrackerApplet *applet)
text = gtk_entry_get_text (GTK_ENTRY (applet->entry));
+ if (!text || !*text) {
+ gtk_widget_hide (applet->results);
+ return;
+ }
+
g_print ("Searching for: '%s'\n", text);
if (!applet->results) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]