Re: how do you copy and paste things other than text using selections



rob <mailingLists pangolin org uk> writes:

I'm trying to copy and paste gdom nodes using selections but can't figure
out how I use gtk_selection_data_set for anything other than a string.
Any help greatly apreciated.


Basically you make up a name for your target type (equivalent to
"STRING", e.g. you might use "GDOME_NODE"), and you fill in the
selection data with some bytes that somehow represent your data,
e.g. you might serialize to XML, or you might have a custom binary
format, lots of options.

Havoc





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]