Made the clipboard API a bit better
This should work better with the X clipboard system better when I eventually make use of that.
This commit is contained in:
4
tomo.go
4
tomo.go
@@ -48,7 +48,7 @@ func Copy (data Data) {
|
||||
|
||||
// Paste returns the data currently in the clipboard. This method may
|
||||
// return nil.
|
||||
func Paste () (data Data) {
|
||||
func Paste (accept []Mime) (Data) {
|
||||
if backend == nil { panic("no backend is running") }
|
||||
return backend.Paste()
|
||||
return backend.Paste(accept)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user