File: Clipboard

package info (click to toggle)
viking 1.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,468 kB
  • sloc: ansic: 81,706; xml: 2,893; sh: 2,501; makefile: 874; python: 589; perl: 384; cpp: 259
file content (20 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
new file -- clipboard.c

Copy layer -> layer address
on paste, layer_copy_func in Interface. returns new layer with new data, etc.

-- items --

if selected thing something to be copied call
layer_copy_item_func
then
layer_paste_item_func
If same layer is selected.

The only problem is determining if selected item can be copied.
No, wait, piece of cake. Hand back sublayer_type to the layer in a new interface func

gboolean layer_sublayer_is_copyable_func ( sublayer_type )

to determine if copyable