1
0
mirror of https://gitlab.gnome.org/GNOME/nautilus synced 2024-06-30 23:46:35 +00:00

toolbar: Drop separators

They are hidden on narrow browser windows. And wide windows end up
having whitespace when the pathbar reaches maximum width.

But on FileChooser they are always visible and cause the toolbar not
to fit the minimum width on narrow windows.

Let's just remove the separators along with the boxes packing them
with the history and view controls.
This commit is contained in:
António Fernandes 2024-06-23 14:19:09 +01:00
parent 61475a03d2
commit 13902e46c2

View File

@ -92,48 +92,24 @@
</object>
</child>
<child type="start">
<object class="GtkBox">
<object class="GtkStack" id="history_controls_stack">
<property name="visible" bind-source="NautilusToolbar" bind-property="show-toolbar-children" bind-flags="sync-create"/>
<property name="spacing">6</property>
<property name="hhomogeneous">true</property>
<property name="transition-type">crossfade</property>
<child>
<object class="GtkStack" id="history_controls_stack">
<property name="hhomogeneous">true</property>
<property name="transition-type">crossfade</property>
<child>
<object class="NautilusHistoryControls" id="history_controls">
<property name="window-slot" bind-source="NautilusToolbar" bind-property="window-slot" bind-flags="sync-create"/>
</object>
</child>
<child>
<object class="AdwBin" id="history_controls_placeholder"/>
</child>
<object class="NautilusHistoryControls" id="history_controls">
<property name="window-slot" bind-source="NautilusToolbar" bind-property="window-slot" bind-flags="sync-create"/>
</object>
</child>
<child>
<object class="GtkSeparator">
<style>
<class name="spacer"/>
</style>
</object>
<object class="AdwBin" id="history_controls_placeholder"/>
</child>
</object>
</child>
<child type="end">
<object class="GtkBox">
<object class="NautilusViewControls">
<property name="visible" bind-source="NautilusToolbar" bind-property="show-toolbar-children" bind-flags="sync-create"/>
<property name="spacing">6</property>
<child>
<object class="GtkSeparator">
<style>
<class name="spacer"/>
</style>
</object>
</child>
<child>
<object class="NautilusViewControls">
<property name="window-slot" bind-source="NautilusToolbar" bind-property="window-slot" bind-flags="sync-create"/>
</object>
</child>
<property name="window-slot" bind-source="NautilusToolbar" bind-property="window-slot" bind-flags="sync-create"/>
</object>
</child>
</object>