summaryrefslogtreecommitdiffstats
path: root/src/resources/ui/nautilus-view-controls.ui
blob: 2231d66a028825e9ea854e03e7e122f82c652cfe (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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <menu id="view_menu">
    <section>
      <attribute name="label" translatable="yes" context="menu item" comments="Translators: a menu item in a group of sorting options in a toolbar menu, with criterions such as &quot;A-Z&quot; or &quot;Last Modified&quot;.">Sort</attribute>
      <!--
           Sort section.

           The toolbar code assumes this is the second item of this menu model.
           Its contents is provided by the view.
      -->
    </section>
    <section>
      <item>
        <attribute name="label" translatable="yes">_Visible Columns…</attribute>
        <attribute name="action">view.visible-columns</attribute>
        <attribute name="hidden-when">action-missing</attribute>
      </item>
    </section>
  </menu>
  <template class="NautilusViewControls" parent="AdwBin">
    <property name="child">
      <object class="AdwSplitButton" id="view_split_button">
        <property name="halign">center</property>
        <property name="valign">center</property>
        <property name="dropdown-tooltip" translatable="yes" comments="Translators: This is a noun, meaning the options pertaining to the view.">View Options</property>
        <property name="action_name">slot.files-view-mode-toggle</property>
        <property name="menu-model">view_menu</property>
        <binding name="icon-name">
          <lookup name="icon-name">
            <lookup name="window-slot">NautilusViewControls</lookup>
          </lookup>
        </binding>
        <binding name="tooltip-text">
          <lookup name="tooltip">
            <lookup name="window-slot">NautilusViewControls</lookup>
          </lookup>
        </binding>
      </object>
    </property>
  </template>
</interface>