summaryrefslogtreecommitdiffstats
path: root/panels/keyboard/cc-input-list-box.ui
blob: 036cca423e2222a5eb475540d8cf053e42569d1c (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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <!-- interface-requires gtk+ 3.0 -->
  <template class="CcInputListBox" parent="AdwBin">

    <child>
      <object class="GtkListBox" id="listbox">
        <property name="hexpand">True</property>
        <property name="vexpand">True</property>
        <property name="selection-mode">none</property>
        <signal name="row_activated" handler="input_row_activated_cb" object="CcInputListBox" swapped="yes"/>
        <signal name="keynav_failed" handler="keynav_failed_cb" object="CcInputListBox" swapped="yes"/>
        <style>
          <class name="boxed-list"/>
        </style>
        <child>
          <object class="GtkListBoxRow" id="no_inputs_row">
            <property name="selectable">False</property>
            <property name="activatable">False</property>
            <child>
              <object class="GtkLabel">
                <property name="margin_bottom">8</property>
                <property name="margin_top">8</property>
                <property name="label" translatable="yes">No input source selected</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkListBoxRow" id="add_input_row">
            <property name="selectable">False</property>
            <child>
              <object class="GtkImage">
                <property name="hexpand">True</property>
                <property name="height_request">50</property>
                <property name="margin_start">12</property>
                <property name="margin_end">12</property>
                <property name="icon-name">list-add-symbolic</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>

  </template>
</interface>