summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorChristian Dywan <christian@twotoasts.de>2018-07-31 23:20:04 +0200
committerGitHub <noreply@github.com>2018-07-31 23:20:04 +0200
commit6af9c6a330c7b2666aa8689e79211cc66112f885 (patch)
tree27c203ed857c47145ddcb74d0897b69c05f284f5 /ui
parent22b6b89e7d03e479b6e81a7c5557e38c0a1d3107 (diff)
downloadmidori-git-6af9c6a330c7b2666aa8689e79211cc66112f885.tar.gz
Implement a context menu for tab labels (#6)
Initial context menu for tab labels (tallies) with the ability to (un)pin tabs. ![screenshot from 2018-07-30 23-41-33](https://user-images.githubusercontent.com/1204189/43425225-34ac80fa-9452-11e8-9deb-8d38962f2cfb.png)
Diffstat (limited to 'ui')
-rw-r--r--ui/menus.ui14
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/menus.ui b/ui/menus.ui
index a8937a57..0f648ea0 100644
--- a/ui/menus.ui
+++ b/ui/menus.ui
@@ -53,4 +53,18 @@
</item>
</section>
</menu>
+ <menu id="tally-menu">
+ <section>
+ <item>
+ <attribute name="action">tally.pin</attribute>
+ <attribute name="hidden-when">action-disabled</attribute>
+ <attribute name="label" translatable="yes">_Pin Tab</attribute>
+ </item>
+ <item>
+ <attribute name="action">tally.unpin</attribute>
+ <attribute name="hidden-when">action-disabled</attribute>
+ <attribute name="label" translatable="yes">Unpin Ta_b</attribute>
+ </item>
+ </section>
+ </menu>
</interface>