From f3158f79b6357558e3a0083039857bba21c6ca5b Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 11 Apr 2015 22:32:08 +0100 Subject: remove usage of deprecated gtk alignment interface --- gtk/compat.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gtk/compat.c') diff --git a/gtk/compat.c b/gtk/compat.c index 0717f5260..51469b26e 100644 --- a/gtk/compat.c +++ b/gtk/compat.c @@ -588,8 +588,13 @@ void nsgtk_widget_set_alignment(GtkWidget *widget, GtkAlign halign, GtkAlign val void nsgtk_widget_set_margins(GtkWidget *widget, gint hmargin, gint vmargin) { #if GTK_CHECK_VERSION(3,0,0) +#if GTK_CHECK_VERSION(3,12,0) + gtk_widget_set_margin_start(widget, hmargin); + gtk_widget_set_margin_end(widget, hmargin); +#else gtk_widget_set_margin_left(widget, hmargin); gtk_widget_set_margin_right(widget, hmargin); +#endif gtk_widget_set_margin_top(widget, vmargin); gtk_widget_set_margin_bottom(widget, vmargin); #else -- cgit v1.2.3