summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-11-13 18:03:18 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-02 12:12:11 +0100
commitf06e8d7315c41caf5784822c227084216af7513c (patch)
treeb7347e486bbdce0992bec3e616b8f9b30710ef7f /src
parente51cc4ecddbd57cb900610ac8f1dcc0b350b8d68 (diff)
downloadmarco-f06e8d7315c41caf5784822c227084216af7513c.tar.bz2
marco-f06e8d7315c41caf5784822c227084216af7513c.tar.xz
Gtk+-3.14 fixedtip.c: don't use deprecated GtkMisc
taken from: https://git.gnome.org/browse/metacity/commit/?id=e00996a
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)