summaryrefslogtreecommitdiffstats
path: root/src/resources/ui/nautilus-column-chooser.ui
blob: 24cce3de7aa1b763e5d30195300a2e3e9417fdc8 (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <object class="GtkListStore" id="store">
    <columns>
      <!-- column-name COLUMN_VISIBLE -->
      <column type="gboolean"/>
      <!-- column-name COLUMN_LABEL -->
      <column type="gchararray"/>
      <!-- column-name COLUMN_NAME -->
      <column type="gchararray"/>
      <!-- column-name COLUMN_SENSITIVE -->
      <column type="gboolean"/>
    </columns>
  </object>
  <template class="NautilusColumnChooser" parent="GtkBox">
    <property name="orientation">vertical</property>
    <property name="spacing">12</property>
    <child>
      <object class="GtkScrolledWindow">
        <property name="child">
          <object class="GtkTreeView" id="view">
            <property name="vexpand">True</property>
            <property name="model">store</property>
            <property name="headers-visible">False</property>
            <property name="reorderable">True</property>
            <signal name="row-activated" handler="view_row_activated_callback" swapped="no"/>
            <child internal-child="selection">
              <object class="GtkTreeSelection">
                <signal name="changed" handler="selection_changed_callback" swapped="no"/>
              </object>
            </child>
            <child>
              <object class="GtkTreeViewColumn" id="visible-column">
                <child>
                  <object class="GtkCellRendererToggle">
                    <signal name="toggled" handler="visible_toggled_callback" swapped="no"/>
                  </object>
                  <attributes>
                    <attribute name="sensitive">3</attribute>
                    <attribute name="active">0</attribute>
                  </attributes>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkTreeViewColumn" id="label-column">
                <child>
                  <object class="GtkCellRendererText"/>
                  <attributes>
                    <attribute name="sensitive">3</attribute>
                    <attribute name="text">1</attribute>
                  </attributes>
                </child>
              </object>
            </child>
          </object>
        </property>
        <style>
          <class name="frame"/>
        </style>
      </object>
    </child>
    <child>
      <object class="GtkBox">
        <property name="spacing">12</property>
        <child>
          <object class="GtkBox">
            <child>
              <object class="GtkButton" id="move_up_button">
                <property name="sensitive">False</property>
                <property name="icon-name">go-up-symbolic</property>
                <signal name="clicked" handler="move_up_clicked_callback" swapped="no"/>
              </object>
            </child>
            <child>
              <object class="GtkButton" id="move_down_button">
                <property name="sensitive">False</property>
                <property name="icon-name">go-down-symbolic</property>
                <signal name="clicked" handler="move_down_clicked_callback" swapped="no"/>
              </object>
            </child>
            <style>
              <class name="linked"/>
            </style>
          </object>
        </child>
        <child>
          <object class="GtkBox">
            <child>
              <object class="GtkButton" id="use_default_button">
                <property name="hexpand">true</property>
                <property name="halign">end</property>
                <property name="label" translatable="yes">Reset to De_fault</property>
                <property name="tooltip-text" translatable="yes">Replace the current List Columns settings with the default settings</property>
                <property name="use-underline">True</property>
                <signal name="clicked" handler="use_default_clicked_callback" swapped="no"/>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>