Re: [gtk-list] Re: new signal GtkWidget::user_signal?




Owen Taylor writes:
>Perhaps we should instead look at how to enable the user
>to add new signals without modifying the widget.
>
>gint
>gtk_signal_new (const gchar         *name,
>		GtkSignalRunType     run_type,
>		gint                 object_type,
>		gint                 function_offset,
>		GtkSignalMarshaller  marshaller,
>		GtkType              return_val,
>		gint                 nparams,
>		...)
>
>The problem here, is function_offset. But since this
>can never be zero, why not make function_offset = 0 =>
>no default handler.

I could have sworn I did this already, but I quick look at the sources
says that I didn't. Bad things will probably happen if
"function_offset == 0". It'd be easy enough to add the check, though.

Peter



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