new-call-box: wrap dialer in scrolled window
It was possible to increase the window's size below the minimum size of the dialer view. As such it is important to wrap it in a scrolled window in order not to lose access to otherwise hidden interface components. This is, of course, not a replacement for a better adapting dialer. Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it> Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/791>
This commit is contained in:
committed by
Marge Bot
parent
f7da8ecfbb
commit
cab52d464c
@@ -2,71 +2,77 @@
|
||||
<interface>
|
||||
<template class="CallsNewCallBox" parent="AdwBin">
|
||||
<child>
|
||||
<object class="GtkBox" id="child">
|
||||
<object class="GtkScrolledWindow">
|
||||
<property name="hexpand">True</property>
|
||||
<property name="margin-start">24</property>
|
||||
<property name="margin-end">24</property>
|
||||
<property name="margin_top">6</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="AdwClamp">
|
||||
<property name="vexpand">True</property>
|
||||
<property name="child">
|
||||
<object class="GtkBox" id="child">
|
||||
<property name="hexpand">True</property>
|
||||
<property name="margin-start">24</property>
|
||||
<property name="margin-end">24</property>
|
||||
<property name="margin_top">6</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<object class="AdwClamp">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkListBox" id="origin_list_box">
|
||||
<property name="selection-mode">none</property>
|
||||
<property name="halign">center</property>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="AdwComboRow" id="origin_list">
|
||||
<signal name="notify::selected" handler="notify_selected_index_cb" swapped="yes"/>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkEntry" id="address_entry">
|
||||
<property name="visible" bind-source="CallsNewCallBox" bind-property="numeric-input-only" bind-flags="sync-create|invert-boolean"/>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="placeholder-text" translatable="yes">Enter a VoIP address</property>
|
||||
<signal name="activate" handler="address_activate_cb" swapped="yes"/>
|
||||
<signal name="changed" handler="address_changed_cb" swapped="yes"/>
|
||||
<style>
|
||||
<class name="address-entry"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="CuiDialpad" id="dialpad">
|
||||
<property name="visible" bind-source="CallsNewCallBox" bind-property="numeric-input-only" bind-flags="sync-create"/>
|
||||
<signal name="dialed" handler="dialpad_dialed_cb"/>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkListBox" id="result_list">
|
||||
<property name="visible" bind-source="CallsNewCallBox" bind-property="numeric-input-only" bind-flags="sync-create|invert-boolean"/>
|
||||
<property name="margin-top">16</property>
|
||||
<property name="selection-mode">none</property>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="result">
|
||||
<property name="visible">False</property>
|
||||
<property name="title" bind-source="address_entry" bind-property="text"/>
|
||||
<property name="width-request">300</property>
|
||||
<property name="subtitle" translatable="yes">SIP Account</property>
|
||||
<child type="prefix">
|
||||
<object class="AdwAvatar">
|
||||
<property name="show-initials">True</property>
|
||||
<property name="size">36</property>
|
||||
<object class="GtkListBox" id="origin_list_box">
|
||||
<property name="selection-mode">none</property>
|
||||
<property name="halign">center</property>
|
||||
<child>
|
||||
<object class="AdwComboRow" id="origin_list">
|
||||
<signal name="notify::selected" handler="notify_selected_index_cb" swapped="yes"/>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkEntry" id="address_entry">
|
||||
<property name="visible" bind-source="CallsNewCallBox" bind-property="numeric-input-only" bind-flags="sync-create|invert-boolean"/>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="placeholder-text" translatable="yes">Enter a VoIP address</property>
|
||||
<signal name="activate" handler="address_activate_cb" swapped="yes"/>
|
||||
<signal name="changed" handler="address_changed_cb" swapped="yes"/>
|
||||
<style>
|
||||
<class name="address-entry"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="CuiDialpad" id="dialpad">
|
||||
<property name="visible" bind-source="CallsNewCallBox" bind-property="numeric-input-only" bind-flags="sync-create"/>
|
||||
<signal name="dialed" handler="dialpad_dialed_cb"/>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkListBox" id="result_list">
|
||||
<property name="visible" bind-source="CallsNewCallBox" bind-property="numeric-input-only" bind-flags="sync-create|invert-boolean"/>
|
||||
<property name="margin-top">16</property>
|
||||
<property name="selection-mode">none</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="dial_result_btn">
|
||||
<property name="icon-name">call-start-symbolic</property>
|
||||
<signal name="clicked" handler="dial_result_clicked_cb" swapped="yes"/>
|
||||
<style>
|
||||
<class name="rounded-button"/>
|
||||
</style>
|
||||
<object class="AdwActionRow" id="result">
|
||||
<property name="visible">False</property>
|
||||
<property name="title" bind-source="address_entry" bind-property="text"/>
|
||||
<property name="width-request">300</property>
|
||||
<property name="subtitle" translatable="yes">SIP Account</property>
|
||||
<child type="prefix">
|
||||
<object class="AdwAvatar">
|
||||
<property name="show-initials">True</property>
|
||||
<property name="size">36</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="dial_result_btn">
|
||||
<property name="icon-name">call-start-symbolic</property>
|
||||
<signal name="clicked" handler="dial_result_clicked_cb" swapped="yes"/>
|
||||
<style>
|
||||
<class name="rounded-button"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
@@ -76,7 +82,7 @@
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user