File file_chooser.patch of Package pw3270
diff -Naur pw3270-5.0/src/java/plugin.cc pw3270-5.0/src/java/plugin.cc
--- pw3270-5.0/src/java/plugin.cc 2016-04-18 08:58:50.000000000 -0300
+++ pw3270-5.0/src/java/plugin.cc 2016-10-21 17:31:51.055632981 -0200
@@ -302,9 +302,9 @@
return 0;
}
- string file_chooser_dialog(GtkFileChooserAction action, const char *title, const char *extension, const char *filename) {
+ string file_chooser_dialog(int action, const char *title, const char *extension, const char *filename) {
string rc;
- gchar * ptr = pw3270_file_chooser(action, "java", title, filename, extension);
+ gchar * ptr = pw3270_file_chooser((GtkFileChooserAction) action, "java", title, filename, extension);
if(ptr)
{
diff -Naur pw3270-5.0/src/plugins/rx3270/pluginmain.cc pw3270-5.0/src/plugins/rx3270/pluginmain.cc
--- pw3270-5.0/src/plugins/rx3270/pluginmain.cc 2016-04-18 08:58:51.000000000 -0300
+++ pw3270-5.0/src/plugins/rx3270/pluginmain.cc 2016-10-21 17:30:13.304626744 -0200
@@ -140,7 +140,7 @@
int set_clipboard(const char *text);
int popup_dialog(LIB3270_NOTIFY id , const char *title, const char *message, const char *fmt, ...);
- string file_chooser_dialog(GtkFileChooserAction action, const char *title, const char *extension, const char *filename);
+ string file_chooser_dialog(int action, const char *title, const char *extension, const char *filename);
int set_host_charset(const char *charset);
string get_host_charset(void);
@@ -752,10 +752,10 @@
return 0;
}
-string plugin::file_chooser_dialog(GtkFileChooserAction action, const char *title, const char *extension, const char *filename)
+string plugin::file_chooser_dialog(int action, const char *title, const char *extension, const char *filename)
{
string rc;
- gchar * ptr = pw3270_file_chooser(action, script_name ? script_name : "rexx", title, filename, extension);
+ gchar * ptr = pw3270_file_chooser((GtkFileChooserAction) action, script_name ? script_name : "rexx", title, filename, extension);
if(ptr)
{