View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#14
Originally Posted by branitar View Post
Ok, I tried it an I've got two questions:
I'm using a derived CellRendererText for the cells...
1) Do I really have to set the "mode" property of the renderer to gtk.CELL_RENDERER_MODE_ACTIVATABLE to be able to receive events when the cell is clicked/touched?
Maybe, yes (means: sorry, I don't know

2) Is it possible to prevent the cells from changing to "selected" mode when they are clicked/touched?
You can "connect" to the button press and button release event and return True (in C: TRUE) in that handler to prevent other button press and button release handlers from being invoked, effectively preventing cells from being selected when they are touched.

Last edited by thp; 2008-12-23 at 13:34.
 

The Following User Says Thank You to thp For This Useful Post: