From 5f322a120154fda341bbdcd379f9051c742e5ab9 Mon Sep 17 00:00:00 2001
From: Wolfgang Ulbrich <chat-to-me@raveit.de>
Date: Fri, 13 Nov 2015 18:18:00 +0100
Subject: Gtk+-3.14 tabpopup.c: don't use deprecated GtkMisc

partially taken from:
https://git.gnome.org/browse/metacity/commit/?id=51b9e57
---
 src/ui/tabpopup.c | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'src/ui')

diff --git a/src/ui/tabpopup.c b/src/ui/tabpopup.c
index 12fb4250..459a63b2 100644
--- a/src/ui/tabpopup.c
+++ b/src/ui/tabpopup.c
@@ -398,7 +398,12 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
               gtk_misc_set_padding (GTK_MISC (image),
                                     INSIDE_SELECT_RECT + OUTSIDE_SELECT_RECT + 1,
                                     INSIDE_SELECT_RECT + OUTSIDE_SELECT_RECT + 1);
+#if GTK_CHECK_VERSION (3, 14, 0)
+              gtk_widget_set_halign (image, GTK_ALIGN_CENTER);
+              gtk_widget_set_valign (image, GTK_ALIGN_CENTER);
+#else
               gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0.5);
+#endif
             }
           else
             {
-- 
cgit v1.2.1