Selection handling is a complicated subject, which I don't know that much
about.  You probably should read some docs on X's handling of selections
before playing around with this (the O'Reilly books probably have
something about this).

If you only want to do text clipboard transfers, you could use the hack
the GnomeIconList widget uses -- create a toplevel GtkWindow (of type
popup, so the window manager ignores it) a long way off screen (eg at
2000,2000), and place a GtkEntry in it.  You can use the GtkEditable
clipboard functions on this widget.  You can connect to the GtkEntry's
selection_notify_event signal to be notified when a selection changes.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Fri, 18 Feb 2000, Rick Ree wrote:

> I know this has been asked before, but I haven't found an answer IIRC.
> Can/how do you get/set the X selection?  I tried experimenting with the
> GtkEntry class but ideally I want to manipulate the X selection without
> having to explicitly show an entry widget.
> 
> Rick
> 
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to