summaryrefslogtreecommitdiffstats
path: root/panels/search/cc-search-panel-row.ui
blob: 89e74aed2cb1f6959a3e157f6e19a9950b9fdff3 (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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="CcSearchPanelRow" parent="AdwActionRow">
    <property name="activatable-widget">switcher</property>
    <child type="prefix">
      <object class="GtkImage" id="icon">
        <property name="icon-size">large</property>
        <style>
          <class name="lowres-icon"/>
        </style>
      </object>
    </child>
    <child type="prefix">
      <object class="GtkImage">
        <property name="icon-name">list-drag-handle-symbolic</property>
        <style>
          <class name="drag-handle"/>
        </style>
      </object>
    </child>
    <child type="suffix">
      <object class="GtkSwitch" id="switcher">
        <property name="valign">center</property>
      </object>
    </child>
    <child type="suffix">
      <object class="GtkSeparator">
        <property name="orientation">vertical</property>
        <property name="margin-top">12</property>
        <property name="margin-bottom">12</property>
      </object>
    </child>
    <child type="suffix">
      <object class="GtkMenuButton">
        <property name="valign">center</property>
        <property name="icon-name">view-more-symbolic</property>
        <property name="menu-model">move_row_menu</property>
        <accessibility>
          <property name="label" translatable="yes">More options…</property>
        </accessibility>
        <style>
          <class name="flat"/>
        </style>
      </object>
    </child>
  </template>

  <!-- Move Row Menu -->
  <menu id="move_row_menu">
    <section>
      <item>
        <attribute name="label" translatable="yes">Move Up</attribute>
        <attribute name="action">row.move-up</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">Move Down</attribute>
        <attribute name="action">row.move-down</attribute>
      </item>
    </section>
  </menu>
</interface>