I am trying to make an application that needs the
information that is in the copypaste buffer of X
(the selection). Using the examples of this little
document I can already do all this but only using
pure X apps. So not when the app uses gtk or KDE
libraries.. Also browsers like netscape and mozilla
dont work with these examples..
So, These examples will printf() the selected text..
but only when it's a pure X application like xterm.
Is there a general way.. a solution that can works
with all Windowmanagers.. Or what are the solutions
for Gtk clients? What for KDE ? This is all so
confusing.. why isn't there a standard defined for
this? If this is where Linux/unix/posix development
is heading to.. then we are all doomed since not ONE
single desktop programmer wants to learn
specifications for ALL managers and librabries..
However.. I belive that there is a solution for this
since all gtk and kde applications/objects can get the
selection (copypaste buffer) from other applications.
Only..it seems to be that the code to do this is
hidden somewhere in the gtk and qt libs .. and noway
that I am planning to dig out 100 000 rules of code
in gtk+ just to know how to do this manually :-(
My primary target is to 'get' the selected text.
Once that works I also want to 'set' the buffer..
I think this can't be hard because you can 'select'
text in objects like the gtk_entry and gtk_text...
Well I think you can.. again "hidden" and hard to
find documentation about this... :(
Philip van Hoof aka freax (http://www.freax.eu.org)