[gnome-todo] sidebar: Toggle action instead of setting the visible child
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] sidebar: Toggle action instead of setting the visible child
- Date: Sun, 9 Jun 2019 20:03:49 +0000 (UTC)
commit b6742e9250724dad4f82aa8b8bd78b85797227e6
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Jun 9 17:02:43 2019 -0300
sidebar: Toggle action instead of setting the visible child
That way, we can communicate to GtdWindow that the state
changed, which updates the header bar properly.
src/sidebar/gtd-sidebar.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/sidebar/gtd-sidebar.c b/src/sidebar/gtd-sidebar.c
index aa4f0fd..4d65af4 100644
--- a/src/sidebar/gtd-sidebar.c
+++ b/src/sidebar/gtd-sidebar.c
@@ -246,7 +246,9 @@ activate_appropriate_row (GtdSidebar *self,
if (activate_row_below (self, GTD_SIDEBAR_LIST_ROW (row)))
return;
- gtd_sidebar_set_archive_visible (self, FALSE);
+ gtk_widget_activate_action (GTK_WIDGET (self),
+ "win.toggle-archive",
+ g_variant_new_boolean (FALSE));
to_be_activated = gtk_list_box_get_row_at_index (self->listbox, 0);
g_signal_emit_by_name (to_be_activated, "activate");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]