diff options
author | Miquel Lionel <lionel@les-miquelots.net> | 2023-10-08 17:45:16 +0200 |
---|---|---|
committer | Miquel Lionel <lionel@les-miquelots.net> | 2024-06-22 00:29:45 +0200 |
commit | 01a547ef18a52064cc85d1050c60f37bb50bd028 (patch) | |
tree | ece37e86cdefe6a149277f9a5e0c37625231520d /main/data | |
parent | 8b15417e0f6e90ef510ee70df7d32dbb7ce79393 (diff) | |
download | dino-allow-blocking-entire-domain.tar.gz dino-allow-blocking-entire-domain.zip |
Allow blocking entire domain from conversation detailsallow-blocking-entire-domain
- the block domain option is in a drop down of the block button
- when blocking the domain, the "Blocked domain" button appears
and block button disappears and vice versa.
Diffstat (limited to 'main/data')
-rw-r--r-- | main/data/conversation_details.ui | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/main/data/conversation_details.ui b/main/data/conversation_details.ui index 4229d875..bef06007 100644 --- a/main/data/conversation_details.ui +++ b/main/data/conversation_details.ui @@ -122,7 +122,8 @@ </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"> @@ -132,6 +133,17 @@ </child> </object> </child> + <child> + <object class="GtkButton" id="block_domain_button"> + <property name="visible" bind-source="model" bind-property="show-blocked" bind-flags="sync-create"/> + <child> + <object class="AdwButtonContent" id="block_domain_button_content"> + <property name="icon-name">dino-block-symbolic</property> + <property name="label">Domain blocked</property> + </object> + </child> + </object> + </child> </object> </child> </object> @@ -203,4 +215,12 @@ </item> </section> </menu> -</interface>
\ No newline at end of file + <menu id="block_menu_model"> + <section> + <item> + <attribute name="label">Block domain</attribute> + <attribute name="action">domain.on</attribute> + </item> + </section> + </menu> +</interface> |