Blob Blame History Raw
From 8004afb7100e94efbca60ad4a08e599d7c2112f4 Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Wed, 11 Dec 2013 17:04:52 +0100
Subject: [ABRT PATCH] configui: do not use deprecated gtk3 API

Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
 src/configuration-gui/system-config-abrt.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/configuration-gui/system-config-abrt.c b/src/configuration-gui/system-config-abrt.c
index d5afb43..4638dd6 100644
--- a/src/configuration-gui/system-config-abrt.c
+++ b/src/configuration-gui/system-config-abrt.c
@@ -45,8 +45,13 @@ GtkWidget *system_config_abrt_widget_new(void)
     GtkWidget *buttons = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, /*spacing*/0);
     gtk_box_pack_start(GTK_BOX(box), buttons, /*expand*/TRUE, /*fill*/FALSE, /*padding*/0);
 
+#if ((GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION < 11) || (GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION == 11 && GTK_MICRO_VERSION < 2))
     gtk_widget_set_margin_left(buttons, 10);
     gtk_widget_set_margin_right(buttons, 10);
+#else
+    gtk_widget_set_margin_start(buttons, 10);
+    gtk_widget_set_margin_end(buttons, 10);
+#endif
     gtk_widget_set_margin_top(buttons, 10);
     gtk_widget_set_margin_bottom(buttons, 10);
 
-- 
1.8.3.1