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:
Markus Göllnitz
2025-09-16 00:23:43 +02:00
committed by Marge Bot
parent f7da8ecfbb
commit cab52d464c

View File

@@ -2,71 +2,77 @@
<interface> <interface>
<template class="CallsNewCallBox" parent="AdwBin"> <template class="CallsNewCallBox" parent="AdwBin">
<child> <child>
<object class="GtkBox" id="child"> <object class="GtkScrolledWindow">
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="margin-start">24</property> <property name="vexpand">True</property>
<property name="margin-end">24</property> <property name="child">
<property name="margin_top">6</property> <object class="GtkBox" id="child">
<property name="orientation">vertical</property> <property name="hexpand">True</property>
<child> <property name="margin-start">24</property>
<object class="AdwClamp"> <property name="margin-end">24</property>
<property name="margin_top">6</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child> <child>
<object class="GtkBox"> <object class="AdwClamp">
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child> <child>
<object class="GtkListBox" id="origin_list_box"> <object class="GtkBox">
<property name="selection-mode">none</property> <property name="orientation">vertical</property>
<property name="halign">center</property>
<child> <child>
<object class="AdwComboRow" id="origin_list"> <object class="GtkListBox" id="origin_list_box">
<signal name="notify::selected" handler="notify_selected_index_cb" swapped="yes"/> <property name="selection-mode">none</property>
</object> <property name="halign">center</property>
</child> <child>
</object> <object class="AdwComboRow" id="origin_list">
</child> <signal name="notify::selected" handler="notify_selected_index_cb" swapped="yes"/>
<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> </object>
</child> </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> <child>
<object class="GtkButton" id="dial_result_btn"> <object class="AdwActionRow" id="result">
<property name="icon-name">call-start-symbolic</property> <property name="visible">False</property>
<signal name="clicked" handler="dial_result_clicked_cb" swapped="yes"/> <property name="title" bind-source="address_entry" bind-property="text"/>
<style> <property name="width-request">300</property>
<class name="rounded-button"/> <property name="subtitle" translatable="yes">SIP Account</property>
</style> <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> </object>
</child> </child>
</object> </object>
@@ -76,7 +82,7 @@
</object> </object>
</child> </child>
</object> </object>
</child> </property>
</object> </object>
</child> </child>
</template> </template>