[gnome-software: 3/5] shell: Update the header widgets in the search mode
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 3/5] shell: Update the header widgets in the search mode
- Date: Fri, 6 Aug 2021 16:54:56 +0000 (UTC)
commit caed38511891c6dac89da52ef5a3ba6b600ae392
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Aug 5 13:53:06 2021 +0200
shell: Update the header widgets in the search mode
It is one of the main modes, hence it uses the headerbar, hence the
header bar must be updated in this mode too. This avoids widgets from
the updates mode to incorrectly remain in the header bar when toggling
the search with Ctrl+F.
src/gs-shell.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index a0733656b..e8f1400a3 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -520,6 +520,7 @@ stack_notify_visible_child_cb (GObject *object,
case GS_SHELL_MODE_OVERVIEW:
case GS_SHELL_MODE_INSTALLED:
case GS_SHELL_MODE_UPDATES:
+ case GS_SHELL_MODE_SEARCH:
gs_shell_set_header_start_widget (shell, widget);
break;
default:
@@ -532,6 +533,7 @@ stack_notify_visible_child_cb (GObject *object,
case GS_SHELL_MODE_OVERVIEW:
case GS_SHELL_MODE_INSTALLED:
case GS_SHELL_MODE_UPDATES:
+ case GS_SHELL_MODE_SEARCH:
gs_shell_set_header_end_widget (shell, widget);
break;
case GS_SHELL_MODE_DETAILS:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]