aboutsummaryrefslogtreecommitdiff
path: root/main/data/conversation_details.ui
diff options
context:
space:
mode:
Diffstat (limited to 'main/data/conversation_details.ui')
-rw-r--r--main/data/conversation_details.ui23
1 files changed, 20 insertions, 3 deletions
diff --git a/main/data/conversation_details.ui b/main/data/conversation_details.ui
index 4229d875..c34124a3 100644
--- a/main/data/conversation_details.ui
+++ b/main/data/conversation_details.ui
@@ -122,11 +122,12 @@
</object>
</child>
<child>
- <object class="GtkButton" id="block_button">
+ <object class="AdwSplitButton" id="block_button">
+ <property name="menu_model">block_menu_model</property>
<property name="visible" bind-source="model" bind-property="show-blocked" bind-flags="sync-create"/>
<child>
<object class="AdwButtonContent" id="block_button_content">
- <property name="icon-name">action-unavailable-symbolic</property>
+ <property name="icon-name">dino-block-symbolic</property>
<property name="label">Block</property>
</object>
</child>
@@ -203,4 +204,20 @@
</item>
</section>
</menu>
-</interface> \ No newline at end of file
+ <menu id="block_menu_model">
+ <section>
+ <item>
+ <attribute name="label" translatable="1">Block user</attribute>
+ <attribute name="action">do.block</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="1">Block entire domain</attribute>
+ <attribute name="action">do.block_domain</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="1">Unblock</attribute>
+ <attribute name="action">do.unblock</attribute>
+ </item>
+ </section>
+ </menu>
+</interface>