[gnome-software] Ensure the search bar is showing when going back to search results
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Ensure the search bar is showing when going back to search results
- Date: Wed, 31 Aug 2016 09:52:51 +0000 (UTC)
commit 704492d45deab43283ffd8d323e415a03d1b44de
Author: Richard Hughes <richard hughsie com>
Date: Wed Aug 31 10:51:25 2016 +0100
Ensure the search bar is showing when going back to search results
Fixes the first half of https://bugzilla.gnome.org/show_bug.cgi?id=770559
src/gs-shell.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 26437ab..5e0d4c5 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -254,10 +254,9 @@ gs_shell_change_mode (GsShell *shell,
gtk_widget_hide (widget);
/* hide unless we're going to search */
- if (mode != GS_SHELL_MODE_SEARCH) {
- widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "search_bar"));
- gtk_search_bar_set_search_mode (GTK_SEARCH_BAR (widget), FALSE);
- }
+ widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "search_bar"));
+ gtk_search_bar_set_search_mode (GTK_SEARCH_BAR (widget),
+ mode == GS_SHELL_MODE_SEARCH);
context = gtk_widget_get_style_context (GTK_WIDGET (gtk_builder_get_object (priv->builder,
"header")));
gtk_style_context_remove_class (context, "selection-mode");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]