5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-06 01:52:34 +08:00

[v3 linux/cgo] open/save file dialog stub

This commit is contained in:
Travis McLane 2023-06-21 16:42:57 -05:00
parent daa0cf83d9
commit 1a09a8a4c8

View File

@ -858,6 +858,10 @@ func messageDialogCB(button C.int) {
}
func runOpenFileDialog(dialog *OpenFileDialog) ([]string, error) {
return []string{}, fmt.Errorf("not implemented")
}
func runQuestionDialog(parent pointer, options *MessageDialog) int {
cMsg := C.CString(options.Message)
cTitle := C.CString(options.Title)
@ -921,6 +925,10 @@ func runQuestionDialog(parent pointer, options *MessageDialog) int {
return int(C.gtk_dialog_run((*C.GtkDialog)(unsafe.Pointer(dialog))))
}
func runSaveFileDialog(dialog *SaveFileDialog) (string, error) {
return "", fmt.Errorf("not implemented")
}
//export openFileDialogCallbackEnd
func openFileDialogCallbackEnd(cid C.uint) {
id := uint(cid)