pasteMenu performs a paste from the clipboard using given data -- pops up a menu to determine what specifically to do
(md mimedata.Mimes, idx int)
| 1374 | // pasteMenu performs a paste from the clipboard using given data -- pops up |
| 1375 | // a menu to determine what specifically to do |
| 1376 | func (lb *ListBase) pasteMenu(md mimedata.Mimes, idx int) { |
| 1377 | lb.unselectAllIndexes() |
| 1378 | mf := func(m *Scene) { |
| 1379 | lb.makePasteMenu(m, md, idx, events.DropCopy, nil) |
| 1380 | } |
| 1381 | pos := lb.indexPos(idx) |
| 1382 | NewMenu(mf, lb.This.(Widget), pos).Run() |
| 1383 | } |
| 1384 | |
| 1385 | // PasteAssign assigns mime data (only the first one!) to this idx |
| 1386 | func (lb *ListBase) PasteAssign(md mimedata.Mimes, idx int) { |
no test coverage detected