From 2da5a2bddf41e0dfa99781fa4c8128e4854b2076 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Fri, 13 Nov 2015 18:23:44 +0100 Subject: Gtk+-3.14 tabpopup.c: don't use deprecated GtkAlignment taken from: https://git.gnome.org/browse/metacity/commit/?id=5aeb6e9 --- src/ui/tabpopup.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/ui/tabpopup.c b/src/ui/tabpopup.c index 459a63b2..a1c8e229 100644 --- a/src/ui/tabpopup.c +++ b/src/ui/tabpopup.c @@ -258,7 +258,9 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries, GtkWidget *table; #endif GtkWidget *vbox; +#if !GTK_CHECK_VERSION (3, 14, 0) GtkWidget *align; +#endif GList *tmp; GtkWidget *frame; int max_label_width; /* the actual max width of the labels we create */ @@ -335,13 +337,19 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries, gtk_container_add (GTK_CONTAINER (frame), vbox); +#if GTK_CHECK_VERSION (3, 14, 0) + gtk_box_pack_start (GTK_BOX (vbox), grid, TRUE, TRUE, 0); +#else align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0); gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0); +#endif #if GTK_CHECK_VERSION (3, 0, 0) +#if !GTK_CHECK_VERSION (3, 14, 0) gtk_container_add (GTK_CONTAINER (align), grid); +#endif #else gtk_container_add (GTK_CONTAINER (align), table); @@ -382,7 +390,11 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries, if (te->blank) { /* just stick a widget here to avoid special cases */ +#if GTK_CHECK_VERSION (3, 14, 0) + image = gtk_label_new (""); +#else image = gtk_alignment_new (0.0, 0.0, 0.0, 0.0); +#endif } else if (outline) { -- cgit v1.2.1