Re: Selection handling in own widget



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]