M explorer/explorer.go => explorer/explorer.go +8 -7
@@ 72,13 72,14 @@ func NewExplorer(w *app.Window) (e *Explorer) {
//
// Similar as:
//
-// select {
-// case e := <-window.Events():
-// explorer.ListenEvents(e)
-// switch e := e.(type) {
-// (( ... your code ... ))
-// }
-// }
+// select {
+// case e := <-window.Events():
+//
+// explorer.ListenEvents(e)
+// switch e := e.(type) {
+// (( ... your code ... ))
+// }
+// }
func (e *Explorer) ListenEvents(evt event.Event) {
if e == nil {
return
M explorer/explorer_android.go => explorer/explorer_android.go +4 -3
@@ 11,14 11,15 @@ package explorer
import "C"
import (
"errors"
- "gioui.org/app"
- "gioui.org/io/event"
- "git.wow.st/gmp/jni"
"io"
"mime"
"path/filepath"
"strings"
"unsafe"
+
+ "gioui.org/app"
+ "gioui.org/io/event"
+ "git.wow.st/gmp/jni"
)
//go:generate javac -source 8 -target 8 -bootclasspath $ANDROID_HOME/platforms/android-30/android.jar -d $TEMP/explorer_explorer_android/classes explorer_android.java
M explorer/explorer_ios.go => explorer/explorer_ios.go +3 -2
@@ 28,12 28,13 @@ extern bool importFile(CFTypeRef expl, char * ext);
*/
import "C"
import (
- "gioui.org/app"
- "gioui.org/io/event"
"io"
"os"
"path/filepath"
"strings"
+
+ "gioui.org/app"
+ "gioui.org/io/event"
)
type explorer struct {
M explorer/explorer_js.go => explorer/explorer_js.go +3 -2
@@ 3,11 3,12 @@
package explorer
import (
- "gioui.org/app"
- "gioui.org/io/event"
"io"
"strings"
"syscall/js"
+
+ "gioui.org/app"
+ "gioui.org/io/event"
)
type explorer struct{}
M explorer/explorer_macos.go => explorer/explorer_macos.go +3 -2
@@ 16,12 16,13 @@ extern void importFile(CFTypeRef viewRef, char * ext, int32_t id);
*/
import "C"
import (
- "gioui.org/app"
- "gioui.org/io/event"
"io"
"net/url"
"os"
"strings"
+
+ "gioui.org/app"
+ "gioui.org/io/event"
)
type explorer struct {
M explorer/explorer_windows.go => explorer/explorer_windows.go +4 -3
@@ 3,14 3,15 @@
package explorer
import (
- "gioui.org/app"
- "gioui.org/io/event"
- "golang.org/x/sys/windows"
"io"
"os"
"path/filepath"
"strings"
"unsafe"
+
+ "gioui.org/app"
+ "gioui.org/io/event"
+ "golang.org/x/sys/windows"
)
var (
M explorer/file_android.go => explorer/file_android.go +2 -1
@@ 2,9 2,10 @@ package explorer
import (
"errors"
+ "io"
+
"gioui.org/app"
"git.wow.st/gmp/jni"
- "io"
)
//go:generate javac -source 8 -target 8 -bootclasspath $ANDROID_HOME/platforms/android-30/android.jar -d $TEMP/explorer_file_android/classes file_android.java
M explorer/file_darwin.go => explorer/file_darwin.go +1 -0
@@ 113,6 113,7 @@ func getError(file C.CFTypeRef) error {
}
// Exported function is required to create cgo header.
+//
//export file_darwin
func file_darwin() {}