Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > fff948ba35a5ae9f9dfbad3da9c22cf6 > files > 10

viking-1.1-1.fc14.x86_64.rpm

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