forked from joejulian/gio
io/input,io/clipboard: [API] replace WriteOp with command
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -308,8 +308,8 @@ func (w *window) ReadClipboard() {
|
||||
w.w.Event(clipboard.Event{Text: content})
|
||||
}
|
||||
|
||||
func (w *window) WriteClipboard(s string) {
|
||||
cstr := stringToNSString(s)
|
||||
func (w *window) WriteClipboard(mime string, s []byte) {
|
||||
cstr := stringToNSString(string(s))
|
||||
defer C.CFRelease(cstr)
|
||||
C.writeClipboard(cstr)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user