From b7647b3992504e448a0039de3e767e30f379457f Mon Sep 17 00:00:00 2001 From: Travis McLane Date: Fri, 21 Jan 2022 10:16:20 -0600 Subject: [PATCH] allow `action` to be overridden by caller --- v2/internal/frontend/desktop/linux/window.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/internal/frontend/desktop/linux/window.go b/v2/internal/frontend/desktop/linux/window.go index 34e06c8dd..8ffc16257 100644 --- a/v2/internal/frontend/desktop/linux/window.go +++ b/v2/internal/frontend/desktop/linux/window.go @@ -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);