[gtk+] GtkDialog: Add some padding to title label



commit 1a2b7bbd0a2fc4044487b4da69f3110b6cdf5116
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Mar 17 22:46:22 2014 -0400

    GtkDialog: Add some padding to title label

 gtk/gtkdialog.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 19039ba..d32a657 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -302,6 +302,8 @@ apply_use_header_bar (GtkDialog *dialog)
           gtk_widget_show (box);
           gtk_widget_set_size_request (box, -1, 16);
           label = gtk_label_new ("");
+          gtk_widget_set_margin_top (label, 6);
+          gtk_widget_set_margin_bottom (label, 6);
           gtk_style_context_add_class (gtk_widget_get_style_context (label), "title");
           gtk_box_set_center_widget (GTK_BOX (box), label);
           g_signal_connect_object (dialog, "notify::title", G_CALLBACK (update_title), label, 0);


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