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



commit f2e1e20e615735d2e95def5a438b363641885d91
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 ff3b9b1..7210906 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -1982,13 +1982,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]