diff options
author | Wolfgang Ulbrich <[email protected]> | 2015-11-13 18:18:00 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-12-02 12:12:11 +0100 |
commit | 5f322a120154fda341bbdcd379f9051c742e5ab9 (patch) | |
tree | aefec048abaaa6b901d1f73b50525130fbe1eae8 /src/ui/tabpopup.c | |
parent | d2504280ecf6d509c1f17b75b8e0aeecde03effc (diff) | |
download | marco-5f322a120154fda341bbdcd379f9051c742e5ab9.tar.bz2 marco-5f322a120154fda341bbdcd379f9051c742e5ab9.tar.xz |
Gtk+-3.14 tabpopup.c: don't use deprecated GtkMisc
partially taken from:
https://git.gnome.org/browse/metacity/commit/?id=51b9e57
Diffstat (limited to 'src/ui/tabpopup.c')
-rw-r--r-- | src/ui/tabpopup.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |