Re: Notification of row expansion and row collapsed in GtkTreeView



"Padraig O'Briain" <Padraig Obriain Sun COM> writes:
> I am trying to obtain notification of when a row in a GtkTreeView is
> expanded or collapsed. I have found the signals "expand_row" and
> "collapse_row".
> 
> However, it seems to me that these signals are emitted before the
> row is actually expanded or collapsed. Is there a reason why this
> signal could not be emitted after the actual expansion or collapse?

These are "signals which are really virtual functions" i.e. the
default handler does the actual expansion. This has a couple
consequences:

 a) you can prevent the expand/collapse by stopping the signal 
    emission from a signal handler
 b) to get notification afterward, you have to connect with 
    the "after" flag set to TRUE, which means "run
    post-default-handler"

Isn't the signal system gloriously overcomplicated? ;-)

Havoc




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