Re: [gtk-list] no return value for GTK_RUN_FIRST signals?



On Sun, 5 Sep 1999, Peter Lerner wrote:

> hi,
> 
> does this warning mean, i can not have any return values
> for GTK_RUN_FIRST signals?
> 
>   Gtk-WARNING **: gtk_signal_newv(): signal "my_signal" - 
>      return value `gboolean' incompatible with GTK_RUN_FIRST

yes, return values don't make much sense with RUN_FIRST handlers,
because *any* signal handler connection will override the default
handlers return value.

> 
> any tips?
> 

use a RUN_LAST signal, that way users can _connect() for notification and
can _connect_after() to purposely alter the signals return value.

> mfg
> peter lerner
> -- 
>  Linux - the choice of a GNU generation.

---
ciaoTJ



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