Re: Mozilla selections question
Havoc Pennington <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.gtk |
|---|---|
| Message-ID | <[email protected]> |
Philip <[email protected]> writes: > However, we want to give the user the same feature in our > clipboard-manager.. so to retrive the HTML-text of a selection in Mozilla. > So my question, how do I do this? Is it just by changing the Atom from for > example CLIPBOARD or PRIMARY to a Mozilla-defined Atom and if so which > one? Or is it a more complex way? Is there documentation about this > subject? Or should I start exploring the sources of OpenOffice.org and > Mozilla :-\ ? I have already started searching in the sources of Mozilla > and found files like nsClipboard.cpp.. > You want to ask for a different target type, rather than the text target. gtk_clipboard_request_contents() takes a "target" argument, that's what you need to change. To get the available targets, ask for the special TARGETS target. See gtkentry.c in GTK 2.0 for an example. Havoc