Re: gtksheet supporting the "activate" signal?

Al Hooton <[email protected]> Wed, 26 May 2004 07:20:11 -0700
Newsgroups gmane.comp.scigraphica.gtkextra
Message-ID <1085581211.12916.59.camel@localhost>
On Tue, 2004-05-25 at 15:11, Adrian E. Feiguin wrote:
> 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>

	Adrian, this is exactly what I needed to know.  I was so wrapped up
with the "activate" signal, I missed the "traverse" signal.  It's doing
exactly what I need.  Thanks!!!  I think have the sheet and children now
working as desired.

	For anybody else that sees this thread in the archives: Be careful to
note that the handler for the "traverse" signal is passed in two
(gint)'s for the row/col of the cell to be deactivated, but is passed in
two (gint *)'s for the row/coll of the cell to be activated.  This is so
the cell to activate can be changed by the signal handler.  I missed
this fact at first and wasted some time trying to figure out a
segfault...    8^0=

-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