summaryrefslogtreecommitdiff
path: root/src/resources/ui
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2022-04-06 00:40:00 +0100
committerAntónio Fernandes <antoniof@gnome.org>2023-01-10 01:11:33 +0000
commitdd4dbde1bcebe033b60859cdf1d351620788f0a5 (patch)
treed73c8b01f2615403476bce5023ef9979d051e6dc /src/resources/ui
parentd5ce96240ac0fc55ec64d3fcf756c84502f4e441 (diff)
downloadnautilus-dd4dbde1bcebe033b60859cdf1d351620788f0a5.tar.gz
list-view: Support expanding as a tree
Starred, Recent and Search still not supported due to bugs
Diffstat (limited to 'src/resources/ui')
-rw-r--r--src/resources/ui/nautilus-name-cell.ui155
-rw-r--r--src/resources/ui/nautilus-preferences-window.ui1
2 files changed, 80 insertions, 76 deletions
diff --git a/src/resources/ui/nautilus-name-cell.ui b/src/resources/ui/nautilus-name-cell.ui
index 246aa3ab2..bc755918d 100644
--- a/src/resources/ui/nautilus-name-cell.ui
+++ b/src/resources/ui/nautilus-name-cell.ui
@@ -6,106 +6,111 @@
<relation name="labelled-by">label</relation>
</accessibility>
<child>
- <object class="GtkBox">
- <property name="spacing">6</property>
- <property name="orientation">horizontal</property>
- <property name="halign">fill</property>
- <property name="valign">center</property>
- <child>
- <object class="GtkBox" id="fixed_height_box">
- <property name="orientation">vertical</property>
- <property name="halign">center</property>
- <property name="height-request">16</property>
+ <object class="GtkTreeExpander" id="expander">
+ <property name="indent-for-icon">False</property>
+ <property name="child">
+ <object class="GtkBox">
+ <property name="spacing">6</property>
+ <property name="orientation">horizontal</property>
+ <property name="halign">fill</property>
<property name="valign">center</property>
<child>
- <object class="GtkPicture" id="icon">
+ <object class="GtkBox" id="fixed_height_box">
+ <property name="orientation">vertical</property>
<property name="halign">center</property>
+ <property name="height-request">16</property>
<property name="valign">center</property>
- <property name="can-shrink">False</property>
+ <child>
+ <object class="GtkPicture" id="icon">
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <property name="can-shrink">False</property>
+ </object>
+ </child>
</object>
</child>
- </object>
- </child>
- <child>
- <object class="GtkBox">
- <property name="orientation">vertical</property>
- <property name="halign">fill</property>
- <property name="hexpand">True</property>
- <property name="valign">center</property>
- <style>
- <class name="column-name-labels-box"/>
- </style>
<child>
<object class="GtkBox">
- <property name="orientation">horizontal</property>
+ <property name="orientation">vertical</property>
<property name="halign">fill</property>
<property name="hexpand">True</property>
- <property name="spacing">6</property>
+ <property name="valign">center</property>
+ <style>
+ <class name="column-name-labels-box"/>
+ </style>
<child>
- <object class="GtkLabel" id="label">
- <property name="ellipsize">middle</property>
- <property name="lines">1</property>
- <property name="max-width-chars">-1</property>
- <property name="wrap">False</property>
- <property name="wrap-mode">word-char</property>
- <property name="halign">start</property>
- <attributes>
- <attribute name="insert-hyphens" value="false"></attribute>
- </attributes>
+ <object class="GtkBox">
+ <property name="orientation">horizontal</property>
+ <property name="halign">fill</property>
+ <property name="hexpand">True</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="label">
+ <property name="ellipsize">middle</property>
+ <property name="lines">1</property>
+ <property name="max-width-chars">-1</property>
+ <property name="wrap">False</property>
+ <property name="wrap-mode">word-char</property>
+ <property name="halign">start</property>
+ <attributes>
+ <attribute name="insert-hyphens" value="false"></attribute>
+ </attributes>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox" id="emblems_box">
+ <property name="orientation">horizontal</property>
+ <property name="halign">start</property>
+ <property name="spacing">6</property>
+ </object>
+ </child>
</object>
</child>
<child>
- <object class="GtkBox" id="emblems_box">
- <property name="orientation">horizontal</property>
- <property name="halign">start</property>
- <property name="spacing">6</property>
+ <object class="GtkLabel" id="path">
+ <property name="visible">False</property>
+ <property name="ellipsize">start</property>
+ <property name="justify">left</property>
+ <property name="halign">fill</property>
+ <property name="xalign">0.0</property>
+ <attributes>
+ <attribute name="insert-hyphens" value="false"></attribute>
+ </attributes>
+ <style>
+ <class name="caption"/>
+ <class name="dim-label"/>
+ </style>
</object>
</child>
</object>
</child>
<child>
- <object class="GtkLabel" id="path">
+ <object class="GtkMenuButton" id="snippet_button">
+ <property name="tooltip-text" translatable="yes">Full text match</property>
<property name="visible">False</property>
- <property name="ellipsize">start</property>
- <property name="justify">left</property>
- <property name="halign">fill</property>
- <property name="xalign">0.0</property>
- <attributes>
- <attribute name="insert-hyphens" value="false"></attribute>
- </attributes>
+ <property name="icon-name">quotation-symbolic</property>
+ <property name="valign">center</property>
<style>
- <class name="caption"/>
- <class name="dim-label"/>
+ <class name="fts-snippet"/>
</style>
- </object>
- </child>
- </object>
- </child>
- <child>
- <object class="GtkMenuButton" id="snippet_button">
- <property name="tooltip-text" translatable="yes">Full text match</property>
- <property name="visible">False</property>
- <property name="icon-name">quotation-symbolic</property>
- <property name="valign">center</property>
- <style>
- <class name="fts-snippet"/>
- </style>
- <property name="popover">
- <object class="GtkPopover">
- <child>
- <object class="GtkLabel" id="snippet">
- <property name="ellipsize">none</property>
- <property name="justify">left</property>
- <property name="max-width-chars">65</property>
- <property name="lines">10</property>
- <property name="wrap">True</property>
- <property name="wrap-mode">word</property>
+ <property name="popover">
+ <object class="GtkPopover">
+ <child>
+ <object class="GtkLabel" id="snippet">
+ <property name="ellipsize">none</property>
+ <property name="justify">left</property>
+ <property name="max-width-chars">65</property>
+ <property name="lines">10</property>
+ <property name="wrap">True</property>
+ <property name="wrap-mode">word</property>
+ </object>
+ </child>
</object>
- </child>
+ </property>
</object>
- </property>
+ </child>
</object>
- </child>
+ </property>
</object>
</child>
</template>
diff --git a/src/resources/ui/nautilus-preferences-window.ui b/src/resources/ui/nautilus-preferences-window.ui
index abee4f2af..9b2cd2edc 100644
--- a/src/resources/ui/nautilus-preferences-window.ui
+++ b/src/resources/ui/nautilus-preferences-window.ui
@@ -34,7 +34,6 @@
<property name="title" translatable="yes">_Expandable Folders in List View</property>
<property name="title_lines">0</property>
<property name="use_underline">True</property>
- <property name="visible">False</property>
<child>
<object class="GtkSwitch" id="use_tree_view_switch">
<property name="valign">center</property>