summaryrefslogtreecommitdiff
path: root/libslab/slab-section.c
diff options
context:
space:
mode:
Diffstat (limited to 'libslab/slab-section.c')
-rw-r--r--libslab/slab-section.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libslab/slab-section.c b/libslab/slab-section.c
index d7dd978c..2f763a6e 100644
--- a/libslab/slab-section.c
+++ b/libslab/slab-section.c
@@ -155,9 +155,9 @@ slab_section_new_with_markup (const gchar * title_markup, SlabStyle style)
section->title = gtk_label_new (title_markup);
gtk_label_set_use_markup (GTK_LABEL (section->title), TRUE);
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_set_halign (section->title, GTK_ALIGN_START);
- gtk_widget_set_valign (section->title, GTK_ALIGN_CENTER);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (section->title), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (section->title), 0.5);
#else
gtk_misc_set_alignment (GTK_MISC (section->title), 0.0, 0.5);
#endif