Re: What's purpose of returned boolean in expose/configure event functions?



>Examples of expose and configure event functions
>regarding pixmaps seem to return either TRUE or FALSE.
>
>What is the meaning of this return value and the purpose?

*all* signal handlers for signals that have a non-void return type
must return TRUE or FALSE to indicate whether or not they have
handled the signal. its up to the handler code to decide what
"handled" might mean, given the following awareness of what their
return value will mean:

if they return TRUE, then generally other handlers that were connected
later will not be called. if they return FALSE, the other handlers
will be called.

the way this all works is a bit muddied in GTK+ 1.2; it appears to be
much cleaner in GTK+ 1.3/2.0. 

--p



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