Re: how to catch a click onto a non editabl text cell in a TreeView?
- From: muppet <scott asofyet org>
- To: gtk-perl list <gtk-perl-list gnome org>
- Subject: Re: how to catch a click onto a non editabl text cell in a TreeView?
- Date: Fri, 23 Jan 2004 08:52:16 -0500
On Thursday, January 22, 2004, at 11:51 AM, Bruno Boettcher wrote:
On Wed, Jan 21, 2004 at 08:46:08AM -0800, Dan Lyke wrote:
this should work on lists too, I use it on a treeview, something like:
the problem is that it takes off the events for the spinbuttons or the
text entries that are in that table,
$treeview->signal_connect(button_press_event =>
\&on_treeview1_button_press_event);
unfortunately i can't attach that event to the concernend
cell-renderers, and attaching it to the treeview makes most of the
other
cells unusable due to the catching of the event...
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.
have you looked at Tim-Philipp Müller's excellent treeview tutorial?
http://scentric.net/tutorial/
i'm sure it explains something like this.
indeed:
http://scentric.net/tutorial/sec-selections-double-click.html
--
muppet <scott at asofyet dot org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]