summaryrefslogtreecommitdiffstats
path: root/panels/wwan/cc-wwan-mode-dialog.ui
blob: 4c350c8e0a6c7bbfd1a3db6350a101d379aa885d (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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <template class="CcWwanModeDialog" parent="GtkDialog">
    <property name="title" translatable="yes">Network Mode</property>
    <property name="default-height">480</property>
    <property name="default-width">360</property>
    <property name="hide-on-close">True</property>
    <property name="modal">True</property>

    <child>
      <object class="AdwPreferencesPage">
        <child>
          <object class="AdwPreferencesGroup">
            <child>
              <object class="GtkListBox" id="network_mode_list">
                <property name="selection-mode">none</property>
                <signal name="row-activated" handler="cc_wwan_mode_changed_cb" swapped="yes"/>
                <style>
                  <class name="boxed-list"/>
                </style>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>

    <child type="action">
      <object class="GtkButton" id="button_cancel">
        <property name="use-underline">True</property>
        <property name="label" translatable="yes">_Cancel</property>
        <signal name="clicked" handler="gtk_widget_hide" swapped="yes"/>
      </object>
    </child>
    <child type="action">
      <object class="GtkButton" id="button_ok">
        <property name="use-underline">True</property>
        <property name="label" translatable="yes">_Set</property>
        <signal name="clicked" handler="cc_wwan_mode_dialog_ok_clicked_cb" swapped="yes"/>
        <style>
          <class name="suggested-action "/>
        </style>
      </object>
    </child>

    <action-widgets>
      <action-widget response="cancel">button_cancel</action-widget>
      <action-widget response="apply" default="True">button_ok</action-widget>
    </action-widgets>
  </template>
</interface>