|
|
28bab8 |
From 0f2014b68ea19dd7a239c4c9b7a7774b03f2cca2 Mon Sep 17 00:00:00 2001
|
|
|
28bab8 |
From: Jakub Filak <jfilak@redhat.com>
|
|
|
28bab8 |
Date: Wed, 8 Jan 2014 09:38:30 +0100
|
|
|
28bab8 |
Subject: [LIBREPORT PATCH 1/6] wizard: do not use deprecated gtk3 API
|
|
|
28bab8 |
|
|
|
28bab8 |
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
|
28bab8 |
---
|
|
|
28bab8 |
src/gui-wizard-gtk/wizard.c | 4 ++++
|
|
|
28bab8 |
1 file changed, 4 insertions(+)
|
|
|
28bab8 |
|
|
|
28bab8 |
diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c
|
|
|
28bab8 |
index c37f69f..3faa8e8 100644
|
|
|
28bab8 |
--- a/src/gui-wizard-gtk/wizard.c
|
|
|
28bab8 |
+++ b/src/gui-wizard-gtk/wizard.c
|
|
|
28bab8 |
@@ -2597,7 +2597,11 @@ static void add_workflow_buttons(GtkBox *box, GHashTable *workflows, GCallback f
|
|
|
28bab8 |
gtk_label_set_use_markup(GTK_LABEL(label), true);
|
|
|
28bab8 |
gtk_widget_set_halign(label, GTK_ALIGN_START);
|
|
|
28bab8 |
gtk_widget_set_margin_top(label, 10);
|
|
|
28bab8 |
+#if ((GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION < 11) || (GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION == 11 && GTK_MICRO_VERSION < 2))
|
|
|
28bab8 |
gtk_widget_set_margin_left(label, 40);
|
|
|
28bab8 |
+#else
|
|
|
28bab8 |
+ gtk_widget_set_margin_start(label, 40);
|
|
|
28bab8 |
+#endif
|
|
|
28bab8 |
gtk_widget_set_margin_bottom(label, 10);
|
|
|
28bab8 |
free(btn_label);
|
|
|
28bab8 |
g_signal_connect(button, "clicked", func, w);
|
|
|
28bab8 |
--
|
|
|
28bab8 |
1.8.3.1
|
|
|
28bab8 |
|