summaryrefslogtreecommitdiff
path: root/libslab/slab-section.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-15 13:39:24 +0300
committermonsta <[email protected]>2016-01-15 13:39:24 +0300
commit854d41818845e0c89ae71add54a16d69419e8083 (patch)
treec82289f4aa9bb38647c7da8d1a102a0b2a6c6833 /libslab/slab-section.c
parenta632460eead10a87a9e24007bc911ab746c2a5b8 (diff)
downloadmate-control-center-854d41818845e0c89ae71add54a16d69419e8083.tar.bz2
mate-control-center-854d41818845e0c89ae71add54a16d69419e8083.tar.xz
[GTK+3] libslab: fix deprecated usage of GtkMisc
Diffstat (limited to 'libslab/slab-section.c')
-rw-r--r--libslab/slab-section.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libslab/slab-section.c b/libslab/slab-section.c
index 3235c59a..c03f0c94 100644
--- a/libslab/slab-section.c
+++ b/libslab/slab-section.c
@@ -150,7 +150,12 @@ 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);
+#else
gtk_misc_set_alignment (GTK_MISC (section->title), 0.0, 0.5);
+#endif
gtk_widget_set_name (GTK_WIDGET (section), widget_theming_name);
g_signal_connect (G_OBJECT (section), "style-set", G_CALLBACK (slab_section_style_set),