[easytag/wip/application-window: 52/70] Avoid deprecated margin property with GTK+ 3.12
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/application-window: 52/70] Avoid deprecated margin property with GTK+ 3.12
- Date: Sat, 2 Aug 2014 22:50:36 +0000 (UTC)
commit 7d57588f0716f4e2bbfa393a5e0302ac3daa6357
Author: David King <amigadave amigadave com>
Date: Mon Jul 14 17:16:01 2014 +0100
Avoid deprecated margin property with GTK+ 3.12
src/gtk2_compat.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gtk2_compat.c b/src/gtk2_compat.c
index e9d56fd..530bd9d 100644
--- a/src/gtk2_compat.c
+++ b/src/gtk2_compat.c
@@ -25,8 +25,13 @@ void et_grid_attach_full (GtkGrid *grid, GtkWidget *child, gint left, gint top,
g_object_set (G_OBJECT(child),
"hexpand", hexpand,
"vexpand", vexpand,
+#if GTK_CHECK_VERSION (3, 12, 0)
+ "margin-start", hmargin,
+ "margin-end", hmargin,
+#else
"margin-left", hmargin,
"margin-right", hmargin,
+#endif
"margin-top", vmargin,
"margin-bottom", vmargin,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]