summaryrefslogtreecommitdiff
path: root/gtk/gtkplacesviewrowprivate.h
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/gtkplacesviewrowprivate.h
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/gtkplacesviewrowprivate.h')
-rw-r--r--gtk/gtkplacesviewrowprivate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkplacesviewrowprivate.h b/gtk/gtkplacesviewrowprivate.h
index 3c46d5d9a5..2d5da7e5fb 100644
--- a/gtk/gtkplacesviewrowprivate.h
+++ b/gtk/gtkplacesviewrowprivate.h
@@ -24,6 +24,7 @@
#endif
#include "gtkwidget.h"
+#include "gtksizegroup.h"
#include "gtklistbox.h"
G_BEGIN_DECLS
@@ -53,6 +54,9 @@ gboolean gtk_places_view_row_get_is_network (GtkPlacesViewR
void gtk_places_view_row_set_is_network (GtkPlacesViewRow *row,
gboolean is_network);
+void gtk_places_view_row_set_path_size_group (GtkPlacesViewRow *row,
+ GtkSizeGroup *group);
+
G_END_DECLS
#endif /* GTK_PLACES_VIEW_ROW_H */