Commit 118b482b11ac989f22928c3dce0d438564f7c92f
1 parent
641b4212
Exists in
master
and in
1 other branch
Fixing RHEL 7 builds.
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/dialogs/commondialog.c
@@ -31,6 +31,7 @@ | @@ -31,6 +31,7 @@ | ||
31 | 31 | ||
32 | /*--[ Implement ]------------------------------------------------------------------------------------*/ | 32 | /*--[ Implement ]------------------------------------------------------------------------------------*/ |
33 | 33 | ||
34 | +#if GTK_CHECK_VERSION(3,12,0) | ||
34 | static void apply_clicked(GtkButton G_GNUC_UNUSED(*button), GtkWidget *dialog) | 35 | static void apply_clicked(GtkButton G_GNUC_UNUSED(*button), GtkWidget *dialog) |
35 | { | 36 | { |
36 | gtk_dialog_response(GTK_DIALOG(dialog),GTK_RESPONSE_APPLY); | 37 | gtk_dialog_response(GTK_DIALOG(dialog),GTK_RESPONSE_APPLY); |
@@ -49,6 +50,7 @@ static GtkWidget * create_button(GtkWidget *dialog, const gchar *mnemonic, GCall | @@ -49,6 +50,7 @@ static GtkWidget * create_button(GtkWidget *dialog, const gchar *mnemonic, GCall | ||
49 | gtk_widget_show(button); | 50 | gtk_widget_show(button); |
50 | return button; | 51 | return button; |
51 | } | 52 | } |
53 | +#endif // GTK 3.12 | ||
52 | 54 | ||
53 | LIB3270_EXPORT GtkWidget * v3270_dialog_new(GtkWidget *widget, const gchar *title, const gchar *apply) | 55 | LIB3270_EXPORT GtkWidget * v3270_dialog_new(GtkWidget *widget, const gchar *title, const gchar *apply) |
54 | { | 56 | { |
@@ -66,7 +68,6 @@ LIB3270_EXPORT GtkWidget * v3270_dialog_new(GtkWidget *widget, const gchar *titl | @@ -66,7 +68,6 @@ LIB3270_EXPORT GtkWidget * v3270_dialog_new(GtkWidget *widget, const gchar *titl | ||
66 | 68 | ||
67 | #else | 69 | #else |
68 | 70 | ||
69 | - gboolean use_header = FALSE; | ||
70 | GtkWidget * dialog = gtk_dialog_new(); | 71 | GtkWidget * dialog = gtk_dialog_new(); |
71 | 72 | ||
72 | #endif // GTK 3.12 | 73 | #endif // GTK 3.12 |