allow action to be overridden by caller

This commit is contained in:
Travis McLane
2022-01-25 16:27:39 -06:00
parent 1e5f8e03cb
commit b7647b3992
+1 -1
View File
@@ -223,7 +223,7 @@ void freeFileFilterArray(GtkFileFilter** filters) {
int opendialog(gpointer data) {
struct OpenFileDialogOptions *options = data;
GtkWidget *dlgWidget = gtk_file_chooser_dialog_new(options->title, options->webview, GTK_FILE_CHOOSER_ACTION_OPEN,
GtkWidget *dlgWidget = gtk_file_chooser_dialog_new(options->title, options->webview, options->action,
"_Cancel", GTK_RESPONSE_CANCEL,
"_Open", GTK_RESPONSE_ACCEPT,
NULL);