summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/fixedtip.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/fixedtip.c b/src/ui/fixedtip.c
index bffdf3d7..cc8f7b05 100644
--- a/src/ui/fixedtip.c
+++ b/src/ui/fixedtip.c
@@ -154,7 +154,12 @@ meta_fixed_tip_show (int screen_number,
label = gtk_label_new (NULL);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
+#if GTK_CHECK_VERSION (3, 14, 0)
+ gtk_widget_set_halign (label, GTK_ALIGN_CENTER);
+ gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
+#else
gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5);
+#endif
gtk_widget_show (label);
#if GTK_CHECK_VERSION(3, 0, 0)