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



commit 4a0c70997f5ae45626dee4c6dc191839a1627260
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 e56507d..d180cb0 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -333,7 +333,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]