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:
parent
daa0cf83d9
commit
1a09a8a4c8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user