Re: Selection handling in own widget
- From: Havoc Pennington <hp redhat com>
- To: Gert <gs2 node17530 a2000 nl>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Selection handling in own widget
- Date: 24 Jan 2001 10:43:04 -0500
Gert <gs2 node17530 a2000 nl> writes:
I really hope anyone can help, cause I don't get it anymore :(
You might want to look at GtkEditable as an example of doing this.
One problem I see is your use of GDK_CURRENT_TIME; this results in
race conditions that can cause another client to steal your
selection. Use event->time from the event triggering the selection.
Also, you need to reclaim the selection whenever the selection is
changed, in order to update that timestamp, I believe.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]