From e7e7d2f846a4f0a5b960869963fc0dd8c753778e Mon Sep 17 00:00:00 2001 From: Josua Mayer Date: Thu, 3 Dec 2015 21:22:17 +0000 Subject: [PATCH] ensure backwards compatibility to gtk-3.0 < 3.12 fixes #26 --- src/gtktechnology.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gtktechnology.c b/src/gtktechnology.c index 92cb00c..6dc5054 100644 --- a/src/gtktechnology.c +++ b/src/gtktechnology.c @@ -63,6 +63,13 @@ static void gtk_technology_class_init(GtkTechnologyClass *klass) sizeof(GtkTechnologyPrivate)); } +// on 3.12.x the _start and _end versions of these functions were renamed +// make sure to still support the old names +#if ! GTK_CHECK_VERSION(3,12,0) +#define gtk_widget_set_margin_start gtk_widget_set_margin_left +#define gtk_widget_set_margin_end gtk_widget_set_margin_right +#endif + static void gtk_technology_init(GtkTechnology *technology) { GtkTechnologyPrivate *priv;