mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-17 07:30:09 +00:00
GtkDialog: Add some padding to title label
This commit is contained in:
parent
703ae52214
commit
1a2b7bbd0a
@ -302,6 +302,8 @@ apply_use_header_bar (GtkDialog *dialog)
|
|||||||
gtk_widget_show (box);
|
gtk_widget_show (box);
|
||||||
gtk_widget_set_size_request (box, -1, 16);
|
gtk_widget_set_size_request (box, -1, 16);
|
||||||
label = gtk_label_new ("");
|
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_style_context_add_class (gtk_widget_get_style_context (label), "title");
|
||||||
gtk_box_set_center_widget (GTK_BOX (box), label);
|
gtk_box_set_center_widget (GTK_BOX (box), label);
|
||||||
g_signal_connect_object (dialog, "notify::title", G_CALLBACK (update_title), label, 0);
|
g_signal_connect_object (dialog, "notify::title", G_CALLBACK (update_title), label, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user