[gtk+/wip/otherlocations-fixes: 138/139] gtkplacesview: align spinner with header label



commit 4de40baed9731edb0b6562b42e4fd1f2dfb85bc8
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Sep 24 11:54:58 2015 +0200

    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 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index 08f892b..70d8441 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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]