[gtk+] gtkplacesview: align spinner with header label



commit c3686838eabc0a67550f17150caea2b1466c8b39
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.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756568

 gtk/gtkplacesview.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index 7f5f8a1..7c70e98 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -1969,12 +1969,12 @@ listbox_header_func (GtkListBoxRow *row,
       GtkWidget *separator;
 
       header = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+      gtk_widget_set_margin_top (header, 6);
 
       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]