Re: gtksheet supporting the "activate" signal?
"Adrian E. Feiguin" <[email protected]> Tue, 25 May 2004 15:11:54 -0700
| Newsgroups | gmane.comp.scigraphica.gtkextra |
|---|---|
| Message-ID | <[email protected]> |
Hi Al, I don't remember why, but there was a good reason why "activate" works like it does. The "activate" signal is emitted AFTER the cell has been activated, "deactivate" BEFORE the cell is deactivated. If you return FALSE for "deactivate", then the active cell will remain the same. The signal you want to use is "traverse", which tells you which cell would be deactivated, and which cell would be activated. If you return FALSE, then the change is rejected. Hope this helps. Saludos, <ADRIAN> Al Hooton wrote: > This question pertains to gtkextra-2 from CVS as of a week or so back: > > Is anybody using the "activate" signal in gtksheet? I am hooking a >handler to this signal, and have confirmed that it is fired every time I >select a sell in the gtksheet. My understanding is that if my handler >returns TRUE, the cell should activate as normal, but if the handler >returns FALSE, then the cell should not be activated (the currently >activated cell is not changed). > > I have confirmed that even when my "activate" handler returns FALSE, >the cell is still activated. Is anybody seeing this problem besides me? > > Adrian, is the "activate" signal supposed to be supported correctly, or >is this a known problem? > > Thanks! > >-Al > > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: Oracle 10g >Get certified on the hottest thing ever to hit the market... Oracle 10g. >Take an Oracle 10g class now, and we'll give you the exam FREE. >http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click >_______________________________________________ >Scigraphica-gtkextra mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/scigraphica-gtkextra > >. > > > ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click