From f06e8d7315c41caf5784822c227084216af7513c Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Fri, 13 Nov 2015 18:03:18 +0100 Subject: Gtk+-3.14 fixedtip.c: don't use deprecated GtkMisc taken from: https://git.gnome.org/browse/metacity/commit/?id=e00996a --- src/ui/fixedtip.c | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.2.1