How to handle slections with gdk
- From: Stefan Ondrejicka <ondrej idata sk>
- To: GTK mailing list <gtk-list redhat com>
- Subject: How to handle slections with gdk
- Date: Fri, 21 May 1999 13:52:37 +0200 (MET DST)
Hi,
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.
Thank,
Stevo.
---
Stefan Ondrejicka <ondrej@idata.sk>
Beethovenova 11, 917 08 Trnava, Slovakia
http://www.idata.sk/~ondrej/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]