summaryrefslogtreecommitdiffstats
path: root/panels/network/network-ethernet.ui
blob: 3651fa892d56b721e9007ad0ed2fb515c3c76309 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <!-- interface-requires gtk+ 3.0 -->
  <template class="NetDeviceEthernet" parent="AdwPreferencesGroup">
    <property name="title" translatable="yes">Wired</property>
    <property name="header-suffix">
      <object class="GtkButton">
        <property name="icon_name">list-add-symbolic</property>
        <accessibility>
          <property name="label" translatable="Yes">Add Ethernet connection</property>
        </accessibility>
        <signal name="clicked" handler="add_profile_button_clicked_cb" object="NetDeviceEthernet" swapped="yes"/>
        <style>
          <class name="flat" />
        </style>
      </object>
    </property>

    <child>
      <object class="GtkStack" id="connection_stack">
        <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"/>
            <style>
              <class name="boxed-list" />
            </style>
          </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="activatable-widget">device_off_switch</property>
                <child>
                  <object class="GtkSwitch" id="device_off_switch">
                    <property name="valign">center</property>
                    <accessibility>
                      <property name="label" translatable="yes">Active</property>
                    </accessibility>
                    <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="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>
                    <style>
                      <class name="flat"/>
                    </style>
                 </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>