87 lines
4.7 KiB
XML
87 lines
4.7 KiB
XML
<interface>
|
|
<requires lib="gtk+" version="4.8"/>
|
|
<requires lib="adw" version="1.2" />
|
|
<object class="GtkAdjustment" id="server-port-adjustment">
|
|
<property name="lower">1024</property>
|
|
<property name="upper">9999</property>
|
|
<property name="value">6600</property>
|
|
<property name="step-increment">1</property>
|
|
<property name="page-increment">100</property>
|
|
</object>
|
|
<object class="GtkBox" id="toolbar">
|
|
<property name="orientation">horizontal</property>
|
|
<property name="spacing">6</property>
|
|
</object>
|
|
<template class="McgConnectionPanel" parent="AdwBin">
|
|
<child>
|
|
<object class="AdwStatusPage">
|
|
<property name="title">Connect to MPD</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="hexpand">false</property>
|
|
<property name="halign">center</property>
|
|
<child>
|
|
<object class="GtkListBox" id="zeroconf_list">
|
|
<property name="hexpand">true</property>
|
|
<child type="placeholder">
|
|
<object class="GtkLabel">
|
|
<property name="label" translatable="true">No service found</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkListBox">
|
|
<property name="hexpand">true</property>
|
|
<property name="selection-mode">none</property>
|
|
<style>
|
|
<class name="boxed-list"/>
|
|
</style>
|
|
<child>
|
|
<object class="AdwEntryRow" id="host_row">
|
|
<property name="title" translatable="true">Host</property>
|
|
<property name="show-apply-button">true</property>
|
|
<signal name="apply" handler="on_host_entry_apply"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<style>
|
|
<class name="header"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label" translatable="true">Port</property>
|
|
<property name="halign">start</property>
|
|
<property name="hexpand">false</property>
|
|
<style>
|
|
<class name="subtitle"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSpinButton" id="port_spinner">
|
|
<property name="name">port_spinner</property>
|
|
<property name="value">6600</property>
|
|
<property name="adjustment">server-port-adjustment</property>
|
|
<signal name="value-changed" handler="on_port_spinner_value_changed"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwPasswordEntryRow" id="password_row">
|
|
<property name="title" translatable="true">Password</property>
|
|
<property name="show-apply-button">true</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|