Tooth/data/ui/menus.ui
Behzad f16a28a71e
fix: Copy profile handle (#22)
* fix: Copy a string to the clipboard

* fix: remove the 'Share' section

* fix: null check Gdk.Display.get_default

I doubt it will ever be null in our case but since it's nullable it doesn't hurt to check it

* fix: copy full handle instead of the relative one

Co-authored-by: Evangelos Paterakis <evan@geopjr.dev>
2022-12-03 19:50:50 +02:00

117 lines
4.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<menu id="profile-menu">
<section>
<attribute name="display-hint">circular-buttons</attribute>
<!-- <attribute name="label" translatable="yes">Interaction</attribute> -->
<item>
<attribute name="label" translatable="yes">Mention…</attribute>
<attribute name="action">view.mention</attribute>
<attribute name="target">public</attribute>
<attribute name="verb-icon">tooth-online-symbolic</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Direct Message…</attribute>
<attribute name="action">view.mention</attribute>
<attribute name="target">direct</attribute>
<attribute name="verb-icon">tooth-mail-symbolic</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Copy Handle</attribute>
<attribute name="action">view.copy_handle</attribute>
<attribute name="verb-icon">emblem-shared-symbolic</attribute>
</item>
</section>
<section>
<!-- <submenu> -->
<attribute name="label" translatable="yes">Moderation</attribute>
<item>
<attribute name="label" translatable="yes">Hide Boosts</attribute>
<attribute name="action">view.hiding_reblogs</attribute>
<!-- <attribute name="hidden-when">action-disabled</attribute> -->
</item>
<item>
<attribute name="label" translatable="yes">Mute</attribute>
<attribute name="action">view.muting</attribute>
</item>
<section>
<item>
<attribute name="label" translatable="yes">Report</attribute>
<attribute name="action">view.report</attribute>
<!-- TODO: Reporting users -->
<attribute name="hidden-when">action-missing</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Block</attribute>
<attribute name="action">view.blocking</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Block Domain</attribute>
<attribute name="action">view.domain_blocking</attribute>
<!-- <attribute name="hidden-when">action-disabled</attribute> -->
</item>
</section>
<!-- </submenu> -->
</section>
<section>
<attribute name="label" translatable="yes">Timeline</attribute>
<submenu id="profile-filter-menu">
<attribute name="label" translatable="yes">Filter</attribute>
<!-- <item>
<attribute name="label" translatable="yes">Posts</attribute>
<attribute name="action">view.source</attribute>
<attribute name="target">statuses</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Following</attribute>
<attribute name="action">view.source</attribute>
<attribute name="target">following</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Followers</attribute>
<attribute name="action">view.source</attribute>
<attribute name="target">followers</attribute>
</item> -->
<!-- <section> -->
<item>
<attribute name="label" translatable="yes">With Replies</attribute>
<attribute name="action">view.include-replies</attribute>
<attribute name="hidden-when">action-disabled</attribute>
</item>
<item>
<attribute name="label" translatable="yes">With Media</attribute>
<attribute name="action">view.only-media</attribute>
<attribute name="hidden-when">action-disabled</attribute>
</item>
<!-- </section> -->
</submenu>
<!-- <section> -->
<!-- <submenu id="copy-menu">
<attribute name="label" translatable="yes">Share</attribute>
<item>
<attribute name="label" translatable="yes">Copy Profile Handle</attribute>
<attribute name="action">view.copy_handle</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Copy Profile Link</attribute>
<attribute name="action">view.copy_handle</attribute>
</item>
</submenu> -->
<!-- </section> -->
<item>
<attribute name="label" translatable="yes">Refresh</attribute>
<attribute name="action">app.refresh</attribute>
</item>
</section>
</menu>
</interface>