The `.content` style class is deprecated in favor of the `.boxed-list` style class, which is named after the design pattern it's used for.
86 lines
3.4 KiB
XML
86 lines
3.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<!-- interface-requires gtk+ 3.0 -->
|
|
<template class="NetDeviceEthernet" parent="GtkBox">
|
|
<property name="spacing">6</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<child>
|
|
<object class="GtkLabel" id="device_label">
|
|
<property name="hexpand">True</property>
|
|
<property name="xalign">0</property>
|
|
<property name="label" translatable="yes">Wired</property>
|
|
<property name="ellipsize">end</property>
|
|
<attributes>
|
|
<attribute name="weight" value="bold"/>
|
|
</attributes>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton">
|
|
<property name="icon_name">list-add-symbolic</property>
|
|
<signal name="clicked" handler="add_profile_button_clicked_cb" object="NetDeviceEthernet" swapped="yes"/>
|
|
<style>
|
|
<class name="flat" />
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">6</property>
|
|
<child>
|
|
<object class="GtkScrolledWindow" id="scrolled_window">
|
|
<property name="hexpand">True</property>
|
|
<property name="hscrollbar_policy">never</property>
|
|
<property name="vscrollbar_policy">never</property>
|
|
<child>
|
|
<object class="GtkListBox" id="connection_list">
|
|
<property name="selection-mode">none</property>
|
|
<signal name="row-activated" handler="connection_list_row_activated_cb" object="NetDeviceEthernet" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Single profile row -->
|
|
<child>
|
|
<object class="GtkListBox" id="details_listbox">
|
|
<property name="selection_mode">none</property>
|
|
<style>
|
|
<class name="boxed-list" />
|
|
</style>
|
|
<child>
|
|
<object class="AdwActionRow" id="details_row">
|
|
<property name="selectable">False</property>
|
|
<property name="title">Cable unplugged</property>
|
|
<child>
|
|
<object class="GtkSwitch" id="device_off_switch">
|
|
<property name="halign">end</property>
|
|
<property name="valign">center</property>
|
|
<signal name="notify::active" handler="device_off_switch_changed_cb" object="NetDeviceEthernet" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="details_button">
|
|
<property name="halign">end</property>
|
|
<property name="valign">center</property>
|
|
<property name="icon-name">emblem-system-symbolic</property>
|
|
<signal name="clicked" handler="details_button_clicked_cb" object="NetDeviceEthernet" swapped="yes"/>
|
|
<accessibility>
|
|
<property name="label" translatable="yes">Options…</property>
|
|
</accessibility>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|