summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristopher Davis <christopherdavis@gnome.org>2023-03-06 22:03:52 -0500
committerNiels De Graef <nielsdegraef@gmail.com>2023-03-12 08:50:33 +0000
commit3c5fe8ca5386647376244d8ed1bd1c1b1858ea74 (patch)
tree1016f24613a2b74e7ef893cca158b31b900adce6 /data
parentbea27569a723a2715da41b93e951611c5fe014e0 (diff)
downloadgnome-contacts-3c5fe8ca5386647376244d8ed1bd1c1b1858ea74.tar.gz
main-window: Use actions for marking a contact as a favorite
Gets rid of the custom button in the menu.
Diffstat (limited to 'data')
-rw-r--r--data/ui/contacts-main-window.ui10
1 files changed, 8 insertions, 2 deletions
diff --git a/data/ui/contacts-main-window.ui b/data/ui/contacts-main-window.ui
index d7d0cb7..cd50271 100644
--- a/data/ui/contacts-main-window.ui
+++ b/data/ui/contacts-main-window.ui
@@ -47,8 +47,14 @@
<menu id="contact_hamburger_menu_popover">
<section>
<item>
- <attribute name="action">win.toggle-favorite</attribute>
- <attribute name="custom">favorite-toggle</attribute>
+ <attribute name="label" translatable="yes">Mark as Favorite</attribute>
+ <attribute name="action">win.mark-favorite</attribute>
+ <attribute name="hidden-when">action-disabled</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Unmark as Favorite</attribute>
+ <attribute name="action">win.unmark-favorite</attribute>
+ <attribute name="hidden-when">action-disabled</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Share as QR Code</attribute>