summaryrefslogtreecommitdiff
path: root/gtk/ui/gtkplacesviewrow.ui
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2015-10-29 10:14:57 -0200
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2015-10-30 11:35:43 -0200
commit50c6a11b050c97f5a3f901340ffb6628c84af6c9 (patch)
tree905354ceea7d427014c8be0a4b9c8082085a8ca5 /gtk/ui/gtkplacesviewrow.ui
parent84380b345d93b2a7d5ca6c78e565d3d6ec4ad3e1 (diff)
downloadgtk+-50c6a11b050c97f5a3f901340ffb6628c84af6c9.tar.gz
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
Diffstat (limited to 'gtk/ui/gtkplacesviewrow.ui')
-rw-r--r--gtk/ui/gtkplacesviewrow.ui4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/ui/gtkplacesviewrow.ui b/gtk/ui/gtkplacesviewrow.ui
index 2d06d0d872..9ace5b9300 100644
--- a/gtk/ui/gtkplacesviewrow.ui
+++ b/gtk/ui/gtkplacesviewrow.ui
@@ -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>