[gnome-software] Never show a 'back' button when showing search results



commit 29abde8d913ded4b0a73b6fea013eccf8b83dd58
Author: Richard Hughes <richard hughsie com>
Date:   Tue Nov 8 12:45:34 2016 +0000

    Never show a 'back' button when showing search results

 src/gs-shell.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 91c4db6..105eb95 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -358,7 +358,9 @@ gs_shell_change_mode (GsShell *shell,
 
        /* show the back button if needed */
        widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_back"));
-       gtk_widget_set_visible (widget, !g_queue_is_empty (priv->back_entry_stack));
+       gtk_widget_set_visible (widget,
+                               mode != GS_SHELL_MODE_SEARCH &&
+                               !g_queue_is_empty (priv->back_entry_stack));
 
        gs_page_switch_to (new_page, scroll_up);
 


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