Center labels in the day widget

This commit is contained in:
Matthias Clasen
2015-09-03 19:49:49 -04:00
parent 699c6d77e3
commit 49dd76bb0d

View File

@@ -107,6 +107,8 @@ gtk_date_chooser_day_init (GtkDateChooserDay *day)
day->label = gtk_label_new ("");
gtk_widget_show (day->label);
gtk_widget_set_halign (day->label, GTK_ALIGN_CENTER);
gtk_widget_set_valign (day->label, GTK_ALIGN_CENTER);
gtk_widget_set_hexpand (day->label, TRUE);
gtk_widget_set_vexpand (day->label, TRUE);
gtk_label_set_xalign (GTK_LABEL (day->label), 1.0);