The Add Connection widgets from the connection editor dialog weren't properly using the available space, since they don't expand. Fix that by making them expand and fill the available space properly. It also avoids blank space by vertically centering the list.
138 lines
6.1 KiB
XML
138 lines
6.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<!-- interface-requires gtk+ 3.0 -->
|
|
<template class="NetConnectionEditor" parent="GtkDialog">
|
|
<property name="can_focus">False</property>
|
|
<property name="border_width">0</property>
|
|
<property name="resizable">False</property>
|
|
<property name="modal">True</property>
|
|
<property name="default_width">500</property>
|
|
<property name="default_height">300</property>
|
|
<property name="type_hint">dialog</property>
|
|
<!-- This doesn't seem to work for a template, so it is also hardcoded. -->
|
|
<property name="use_header_bar">1</property>
|
|
<signal name="delete-event" handler="delete_event_cb" swapped="yes"/>
|
|
<child type="action">
|
|
<object class="GtkButton" id="cancel_button">
|
|
<property name="label" translatable="yes">_Cancel</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="receives_default">True</property>
|
|
<property name="use_underline">True</property>
|
|
<signal name="clicked" handler="cancel_clicked_cb" object="NetConnectionEditor" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
<child type="action">
|
|
<object class="GtkButton" id="apply_button">
|
|
<property name="label" translatable="yes">_Apply</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="can_default">True</property>
|
|
<property name="receives_default">True</property>
|
|
<property name="use_underline">True</property>
|
|
<signal name="clicked" handler="apply_clicked_cb" object="NetConnectionEditor" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
<child internal-child="vbox">
|
|
<object class="GtkBox" id="dialog-vbox">
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">0</property>
|
|
<property name="border_width">0</property>
|
|
<child>
|
|
<object class="GtkNotebook" id="toplevel_notebook">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="show_tabs">False</property>
|
|
<property name="show_border">False</property>
|
|
<child>
|
|
<object class="GtkBox" id="box6">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<child>
|
|
<object class="GtkNotebook" id="notebook">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="show_border">False</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child type="tab">
|
|
<object class="GtkLabel" id="label1">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="label">page 1</property>
|
|
</object>
|
|
<packing>
|
|
<property name="tab_fill">False</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="add_connection_outer_box">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="vexpand">True</property>
|
|
<child>
|
|
<object class="GtkBox" id="add_connection_inner_box">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="vexpand">True</property>
|
|
<child>
|
|
<object class="GtkFrame" id="add_connection_frame">
|
|
<property name="width_request">300</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="label_xalign">0</property>
|
|
<property name="shadow_type">in</property>
|
|
<property name="vexpand">True</property>
|
|
<property name="valign">center</property>
|
|
<child>
|
|
<placeholder/>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">False</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
<child type="tab">
|
|
<object class="GtkLabel" id="label2">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="label">page 2</property>
|
|
</object>
|
|
<packing>
|
|
<property name="position">1</property>
|
|
<property name="tab_fill">False</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<action-widgets>
|
|
<action-widget response="cancel">cancel_button</action-widget>
|
|
<action-widget response="apply" default="true">apply_button</action-widget>
|
|
</action-widgets>
|
|
</template>
|
|
</interface>
|