Index: src_plugins/lib_gtk_common/dlg_file_chooser.c =================================================================== --- src_plugins/lib_gtk_common/dlg_file_chooser.c (revision 6737) +++ src_plugins/lib_gtk_common/dlg_file_chooser.c (revision 6738) @@ -31,6 +31,7 @@ #include "board.h" #include "hid.h" +#include "compat_misc.h" #include "dlg_file_chooser.h" @@ -212,7 +213,7 @@ /* ---------------------------------------------- */ /* Caller must g_free() the returned filename. */ -gchar *ghid_dialog_file_select_save(GtkWindow *top_window, const gchar *title, gchar **path, const gchar *file, const gchar *shortcuts, const char **formats, const char **extensions, int *format) +gchar *ghid_dialog_file_select_save(GtkWidget *top_window, const gchar *title, gchar **path, const gchar *file, const gchar *shortcuts, const char **formats, const char **extensions, int *format) { GtkWidget *fmt, *tmp, *fmt_combo; gchar *result = NULL, *folder, *seed; Index: src_plugins/lib_gtk_common/dlg_file_chooser.h =================================================================== --- src_plugins/lib_gtk_common/dlg_file_chooser.h (revision 6737) +++ src_plugins/lib_gtk_common/dlg_file_chooser.h (revision 6738) @@ -7,6 +7,6 @@ gchar *ghid_dialog_file_select_open(GtkWidget *top_window, const gchar *title, gchar **path, const gchar *shortcuts); -gchar *ghid_dialog_file_select_save(GtkWindow *top_window, const gchar *title, gchar **path, const gchar *file, const gchar *shortcuts, const char **formats, const char **extensions, int *format); +gchar *ghid_dialog_file_select_save(GtkWidget *top_window, const gchar *title, gchar **path, const gchar *file, const gchar *shortcuts, const char **formats, const char **extensions, int *format); gchar *ghid_fileselect(GtkWidget *top_window, const char *title, const char *descr, const char *default_file, const char *default_ext, const char *history_tag, int flags);