Commit 118b482b11ac989f22928c3dce0d438564f7c92f

Authored by Perry Werneck
1 parent 641b4212
Exists in master and in 1 other branch develop

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 31  
32 32 /*--[ Implement ]------------------------------------------------------------------------------------*/
33 33  
  34 +#if GTK_CHECK_VERSION(3,12,0)
34 35 static void apply_clicked(GtkButton G_GNUC_UNUSED(*button), GtkWidget *dialog)
35 36 {
36 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 50 gtk_widget_show(button);
50 51 return button;
51 52 }
  53 +#endif // GTK 3.12
52 54  
53 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 68  
67 69 #else
68 70  
69   - gboolean use_header = FALSE;
70 71 GtkWidget * dialog = gtk_dialog_new();
71 72  
72 73 #endif // GTK 3.12
... ...