summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-11-13 18:12:28 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-02 12:12:11 +0100
commitd2504280ecf6d509c1f17b75b8e0aeecde03effc (patch)
treebbd049ee1349b8708b80e22d92cad659401df328 /src
parent2806828e15d85f82c84d889e5eca8ec4ddbe23e5 (diff)
downloadmarco-d2504280ecf6d509c1f17b75b8e0aeecde03effc.tar.bz2
marco-d2504280ecf6d509c1f17b75b8e0aeecde03effc.tar.xz
Gtk+-3.14 resizepopup.c: don't use deprecated GtkMisc
taken from: https://git.gnome.org/browse/metacity/commit/?id=1f2ea05
Diffstat (limited to 'src')
-rw-r--r--src/ui/resizepopup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/resizepopup.c b/src/ui/resizepopup.c
index 977b196b..97f07c2c 100644
--- a/src/ui/resizepopup.c
+++ b/src/ui/resizepopup.c
@@ -91,7 +91,14 @@ ensure_size_window (MetaResizePopup *popup)
gtk_container_add (GTK_CONTAINER (popup->size_window), frame);
popup->size_label = gtk_label_new ("");
+#if GTK_CHECK_VERSION (3, 14, 0)
+ gtk_widget_set_margin_start (popup->size_label, 3);
+ gtk_widget_set_margin_end (popup->size_label, 3);
+ gtk_widget_set_margin_top (popup->size_label, 3);
+ gtk_widget_set_margin_bottom (popup->size_label, 3);
+#else
gtk_misc_set_padding (GTK_MISC (popup->size_label), 3, 3);
+#endif
gtk_container_add (GTK_CONTAINER (frame), popup->size_label);