mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +00:00
app: move system.ClipboardEvent to its own package
API change. Update your code with gofmt rule and goimports: gofmt -r "system.ClipboardEvent -> clipboard.Event" goimports Signed-off-by: Inkeliz <inkeliz@inkeliz.com> Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
"unsafe"
|
||||
|
||||
"gioui.org/f32"
|
||||
"gioui.org/io/clipboard"
|
||||
"gioui.org/io/key"
|
||||
"gioui.org/io/pointer"
|
||||
"gioui.org/io/system"
|
||||
@@ -108,7 +109,7 @@ func (w *window) contextView() C.CFTypeRef {
|
||||
func (w *window) ReadClipboard() {
|
||||
runOnMain(func() {
|
||||
content := nsstringToString(C.gio_readClipboard())
|
||||
w.w.Event(system.ClipboardEvent{Text: content})
|
||||
w.w.Event(clipboard.Event{Text: content})
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user