summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2023-01-15 17:21:19 +0000
committerAntónio Fernandes <antoniof@gnome.org>2023-01-16 01:49:56 +0000
commit9c93e2fd3ed6a8bb262cbe9cb8f60d9b005c699e (patch)
tree27e8f0e57ffea76fc4e4f38cfb15150613bb8a67 /src/resources
parentbcbfcbf70838fb25d7e9bbb887b7131ef9b67cdd (diff)
downloadnautilus-9c93e2fd3ed6a8bb262cbe9cb8f60d9b005c699e.tar.gz
name-cell: Don't open on hover expander icon.
GtkTreeExpander includes a built-in "expand on drag hover" feature. But our own "open on drag hover" feature competes (and often wins) over it, making it hard to reliably expand rows on hover without opening the folder. So, separate the content and the expander. Trigger "expand on drag hover" only if over the expander, and "open on drag hover" only if over the rest.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/ui/nautilus-name-cell.ui14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/resources/ui/nautilus-name-cell.ui b/src/resources/ui/nautilus-name-cell.ui
index 49089e0e1..96094b79c 100644
--- a/src/resources/ui/nautilus-name-cell.ui
+++ b/src/resources/ui/nautilus-name-cell.ui
@@ -6,10 +6,14 @@
<relation name="labelled-by">label</relation>
</accessibility>
<child>
- <object class="GtkTreeExpander" id="expander">
- <property name="indent-for-icon">False</property>
- <property name="child">
- <object class="GtkBox">
+ <object class="GtkBox">
+ <child>
+ <object class="GtkTreeExpander" id="expander">
+ <property name="indent-for-icon">False</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox" id="content">
<property name="spacing">6</property>
<property name="orientation">horizontal</property>
<property name="halign">fill</property>
@@ -118,7 +122,7 @@
</object>
</child>
</object>
- </property>
+ </child>
</object>
</child>
</template>