Re: How do you get the data from a signal handler?



From: Francis Smit <francis oztell com>
>
> You can pass data in those gchar* and gint parameters, with a bit of 
> casting
> you should be able to pass structures and other stuff.
>
> rsteinke w-link net wrote:
>
> >	I'm looking up a signal handler, based on the object instance
> >and the callback function, and would like to get a pointer to
> >the callback data for that handler. I can get the handler id, but
> >can't figure out how to get any more information. The missing
> >step appears to be a way to get a pointer to the closure from
> >the handler id, which would then provide the desired pointer.
> >Is this a missing feature, or is this lack intentional?

Which parameters are you talking about? I'm not trying to pass data
to the callback function, I'm trying to retrieve it using
the handler id returned by g_signal_handler_find(), without any
prior access to the callback data (in that section of the code).

Ron Steinke




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