placesview: vertically align path labels

The current situation is somewhat sad, with the path
label totally misaligned throughout the rows.

This is fixed by using a size group for the path labels,
so they all have the same allocated size (with the max
of 15 chars). Also, instead of hiding the eject button,
set it child-invisible, so it is hidden and yet it's size
is allocated by GtkBox.

https://bugzilla.gnome.org/show_bug.cgi?id=757303
This commit is contained in:
Georges Basile Stavracas Neto
2015-10-29 10:14:57 -02:00
parent 84380b345d
commit 50c6a11b05
4 changed files with 29 additions and 3 deletions

View File

@ -40,8 +40,7 @@
<property name="visible">1</property>
<property name="justify">right</property>
<property name="ellipsize">middle</property>
<property name="xalign">1</property>
<property name="width_chars">15</property>
<property name="xalign">0</property>
<property name="max_width_chars">15</property>
<style>
<class name="dim-label"/>
@ -53,6 +52,7 @@
</child>
<child>
<object class="GtkButton" id="eject_button">
<property name="visible">True</property>
<property name="halign">end</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Unmount</property>