From 4de40baed9731edb0b6562b42e4fd1f2dfb85bc8 Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Thu, 24 Sep 2015 11:54:58 +0200 Subject: [PATCH] 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. --- gtk/gtkplacesview.c | 7 +++++-- 1 file 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,