[gnome-todo/gnome-40] task-list-panel: Switch to main page on menu hide
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo/gnome-40] task-list-panel: Switch to main page on menu hide
- Date: Wed, 7 Jul 2021 14:04:18 +0000 (UTC)
commit 41a27f569ccd54e472874084b65ed4c3c35f958e
Author: Rachit Keerti Das <rachitkdas gmail com>
Date: Sat Jul 3 13:33:15 2021 +0530
task-list-panel: Switch to main page on menu hide
Switch back to the main page of the GtkStack everytime the popover is
hidden.
This ensures that the main view of secondary menu is displayed on next
click regardless of how it was closed.
Fixes :
https://gitlab.gnome.org/GNOME/gnome-todo/-/issues/391
https://gitlab.gnome.org/GNOME/gnome-todo/-/issues/384
(cherry picked from commit ff266e15bb90a0cd21dfed5954d08b2affb5d377)
src/plugins/task-lists-workspace/gtd-task-list-panel.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/plugins/task-lists-workspace/gtd-task-list-panel.c
b/src/plugins/task-lists-workspace/gtd-task-list-panel.c
index 07434557..3caa0643 100644
--- a/src/plugins/task-lists-workspace/gtd-task-list-panel.c
+++ b/src/plugins/task-lists-workspace/gtd-task-list-panel.c
@@ -328,6 +328,7 @@ on_popover_hidden_cb (GtkPopover *popover,
GtdTaskListPanel *self)
{
gtk_editable_set_text (self->rename_entry, "");
+ gtk_stack_set_visible_child_name (self->popover_stack, "main");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]