[tracker] tracker-search-bar: Fixed both results & no results label shown
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-search-bar: Fixed both results & no results label shown
- Date: Mon, 2 Nov 2009 17:29:31 +0000 (UTC)
commit 0b5c8a1ef6d62de3490ffc67a14dec63c43a9794
Author: Martyn Russell <martyn lanedo com>
Date: Mon Nov 2 16:52:57 2009 +0000
tracker-search-bar: Fixed both results & no results label shown
src/tracker-search-bar/tracker-results-window.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-search-bar/tracker-results-window.c b/src/tracker-search-bar/tracker-results-window.c
index cc8aca5..7e86b2c 100644
--- a/src/tracker-search-bar/tracker-results-window.c
+++ b/src/tracker-search-bar/tracker-results-window.c
@@ -871,6 +871,7 @@ search_window_ensure_not_blank (TrackerResultsWindow *window)
gtk_widget_show (priv->label);
} else {
gtk_widget_show_all (priv->scrolled_window);
+ gtk_widget_hide (priv->label);
}
}
}
@@ -1047,6 +1048,8 @@ search_start (TrackerResultsWindow *window)
gtk_list_store_clear (store);
if (!priv->query || strlen (priv->query) < 1) {
+ gtk_widget_show (priv->scrolled_window);
+ gtk_widget_hide (priv->label);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]