[gnome-todo] task-list-panel: Improve visuals of task list popover
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] task-list-panel: Improve visuals of task list popover
- Date: Fri, 15 Oct 2021 13:58:57 +0000 (UTC)
commit c6b07c443ef97e2aa932705d513e796402034ae1
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Oct 15 10:57:21 2021 -0300
task-list-panel: Improve visuals of task list popover
Add the 'menu' style class, and switch to GtkModelButton.
src/plugins/task-lists-workspace/gtd-task-list-panel.c | 2 +-
src/plugins/task-lists-workspace/gtd-task-list-panel.ui | 8 ++++++--
2 files changed, 7 insertions(+), 3 deletions(-)
---
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 3caa0643..1e41e50b 100644
--- a/src/plugins/task-lists-workspace/gtd-task-list-panel.c
+++ b/src/plugins/task-lists-workspace/gtd-task-list-panel.c
@@ -205,7 +205,7 @@ update_archive_button (GtdTaskListPanel *self)
archived = gtd_task_list_get_archived (list);
g_object_set (self->archive_button,
- "label", archived ? _("Unarchive") : _("Archive"),
+ "text", archived ? _("Unarchive") : _("Archive"),
NULL);
GTD_EXIT;
diff --git a/src/plugins/task-lists-workspace/gtd-task-list-panel.ui
b/src/plugins/task-lists-workspace/gtd-task-list-panel.ui
index 85940ff0..f5db9d7f 100644
--- a/src/plugins/task-lists-workspace/gtd-task-list-panel.ui
+++ b/src/plugins/task-lists-workspace/gtd-task-list-panel.ui
@@ -8,6 +8,10 @@
<object class="GtkPopover" id="popover">
<property name="visible">0</property>
<signal name="hide" handler="on_popover_hidden_cb" object="GtdTaskListPanel" swapped="no"/>
+ <style>
+ <class name="menu" />
+ </style>
+
<child>
<object class="GtkStack" id="popover_stack">
@@ -44,8 +48,8 @@
<object class="GtkSeparator"/>
</child>
<child>
- <object class="GtkButton" id="archive_button">
- <property name="label" translatable="yes">Archive</property>
+ <object class="GtkModelButton" id="archive_button">
+ <property name="text" translatable="yes">Archive</property>
<signal name="clicked" handler="on_archive_button_clicked_cb" object="GtdTaskListPanel"
swapped="no"/>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]