Re: how to catch a click onto a non editabl text cell in a TreeView?



Bruno Boettcher said:
On Fri, Jan 23, 2004 at 08:52:16AM -0500, muppet wrote:
this means you need to allow propagation in your event handler.  if you
trap an event for exactly the right cell, return true to stop
propagation, if it's not yours, return false to let the default
handlers run.
dont 'want ot get on anyone's nerves :D but :
i don't know how to find out on which cell actually the event occurred
since the x,y coords don't tell me much about that...

nor how to propagate an event...

gdk event handlers all use a boolean return value; true means "i handled this
event, processing is finished", and false means "i didn't handle this event,
let it bubble on up to whomever else may be interested."  this stuff is
explained in the basic gtk+ tutorial.

so, if you're trapping button-press-event or button-release-event and
returning true, you're not letting the default handlers run and would thus be
breaking the normal click handling.


i'm sure it explains something like this.

indeed:
http://scentric.net/tutorial/sec-selections-double-click.html
uhm that's the example i allready had: it tells only on which row the
clock occurred, not on which cell, and it doesn't propagate the event
...

the callback gives you the column as well as the row, you should be able to
find the cell from there.


-- 
muppet <scott at asofyet dot org>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]