Change select contact dialog container to HdyClamp and set default size (#949)

This commit is contained in:
Michel Le Bihan 2021-01-15 13:16:10 +01:00 committed by fiaxh
parent 9b4f0a603b
commit bf5f83c073
3 changed files with 57 additions and 47 deletions

View file

@ -1,16 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="DinoUiSelectJidFragment">
<property name="height_request">500</property>
<property name="width_request">460</property>
<property name="height_request">480</property>
<property name="visible">True</property>
<child>
<object class="HdyClamp">
<property name="margin-right">18</property>
<property name="margin-left">18</property>
<property name="maximum-size">300</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkGrid">
<property name="expand">True</property>
<property name="margin-top">20</property>
<property name="margin-right">80</property>
<property name="margin-bottom">20</property>
<property name="margin-left">80</property>
<property name="orientation">vertical</property>
<property name="row-spacing">10</property>
<property name="visible">True</property>
@ -91,5 +95,7 @@
</child>
</object>
</child>
</object>
</child>
</template>
</interface>

View file

@ -35,6 +35,8 @@ public class AddConferenceDialog : Gtk.Dialog {
setup_jid_add_view();
setup_conference_details_view();
show_jid_add_view();
set_default_size(400, 520);
}
private void show_jid_add_view() {

View file

@ -27,6 +27,8 @@ public class SelectContactDialog : Gtk.Dialog {
setup_view();
setup_headerbar();
set_default_size(400, 520);
}
public void set_filter(string str) {