Re: [gtk-list] How to handle slections with gdk
- From: "Josť Miguel R. Barrientos" <jmiguel ceselsa es>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] How to handle slections with gdk
- Date: Fri, 21 May 1999 13:24:59 +0000
Stefan Ondrejicka wrote:
> I'am writing simple program, which uses only gdk for mainpulating
> selections. I want to set gdk window to own selection (text only). There
> are this events to handle :
> GDK_SELECTION_CLEAR - this means, that I loose selection (right ?)
> GDK_SELECTION_REQUEST - I own selection, and someone want to retrieve it
> (but I don't know how to send the selection)
> GDK_SELECTION_NOTIFY - I mean that, this is used to notify, that I'v get
> requested selection (right ?)
> with function gdk_selection_owner_set() I set the window to own selection
> with gdk_selection_owner_get() I will get the actual owner of selection
> should i send GDK_SELECTION_CLEAR to it before using
> gdk_selection_owner_set() ? If so how ?
> I am reading gtkselection.c & gtkeditable.c , but I am not able to
> understand it.
> Is here anyone who have any example or want to explaint this.
You can take a look on "testselection.c" which came with the sources of Gtk...
] [Thread Prev