pasteMenu performs a paste from the clipboard using given data, by popping up a menu to determine what specifically to do.
(md mimedata.Mimes)
| 1333 | // pasteMenu performs a paste from the clipboard using given data, |
| 1334 | // by popping up a menu to determine what specifically to do. |
| 1335 | func (tr *Tree) pasteMenu(md mimedata.Mimes) { |
| 1336 | tr.UnselectAll() |
| 1337 | mf := func(m *Scene) { |
| 1338 | tr.makePasteMenu(m, md, nil) |
| 1339 | } |
| 1340 | pos := tr.ContextMenuPos(nil) |
| 1341 | NewMenu(mf, tr.This.(Widget), pos).Run() |
| 1342 | } |
| 1343 | |
| 1344 | // makePasteMenu makes the menu of options for paste events |
| 1345 | // Optional function is typically the DropFinalize but could also be other actions |
no test coverage detected