conversation details: Fix for libadwaita < 1.4

This commit is contained in:
fiaxh 2023-09-25 15:02:03 +02:00
parent e2c34bf223
commit c2efb214af
2 changed files with 5 additions and 1 deletions

View file

@ -99,7 +99,6 @@
<object class="AdwButtonContent" id="notification_button_menu_content"> <object class="AdwButtonContent" id="notification_button_menu_content">
<property name="icon-name">notification-symbolic</property> <property name="icon-name">notification-symbolic</property>
<property name="label">Mute</property> <property name="label">Mute</property>
<property name="can-shrink">True</property>
</object> </object>
</child> </child>
<child> <child>

View file

@ -46,6 +46,11 @@ namespace Dino.Ui.ConversationDetails {
model.encryption_rows.items_changed.connect(create_preferences_rows); model.encryption_rows.items_changed.connect(create_preferences_rows);
model.settings_rows.items_changed.connect(create_preferences_rows); model.settings_rows.items_changed.connect(create_preferences_rows);
model.notify["room-configuration-rows"].connect(create_preferences_rows); model.notify["room-configuration-rows"].connect(create_preferences_rows);
#if Adw_1_4
// TODO: replace with putting buttons in new line on small screens
notification_button_menu_content.can_shrink = true;
#endif
} }
private void update_pinned_button() { private void update_pinned_button() {