diff options
author | Carlos Soriano <csoriano@gnome.org> | 2015-09-24 11:54:58 +0200 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2015-10-14 14:16:31 +0200 |
commit | 4de40baed9731edb0b6562b42e4fd1f2dfb85bc8 (patch) | |
tree | 61af266c49250ec15e7be52ef3122d39bd607775 | |
parent | d8bc98460c4e0722d3f9c63d2c3ef15227e859f7 (diff) | |
download | gtk+-4de40baed9731edb0b6562b42e4fd1f2dfb85bc8.tar.gz |
gtkplacesview: align spinner with header label
Use the box margin top instead of the label margin top,
so the spinner remains aligned with the header label.
-rw-r--r-- | gtk/gtkplacesview.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c index 08f892b1ff..70d8441ae6 100644 --- a/gtk/gtkplacesview.c +++ b/gtk/gtkplacesview.c @@ -1990,13 +1990,16 @@ listbox_header_func (GtkListBoxRow *row, GtkWidget *label; GtkWidget *separator; - header = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6); + header = g_object_new (GTK_TYPE_BOX, + "orientation", GTK_ORIENTATION_VERTICAL, + "spacing", 6, + "margin-top", 6, + NULL); separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); label = g_object_new (GTK_TYPE_LABEL, "use_markup", TRUE, - "margin-top", 6, "margin-start", 12, "label", text, "xalign", 0.0f, |