Re: How do you get the data from a signal handler?
- From: Francis Smit <francis oztell com>
- To: rsteinke w-link net
- Cc: gtk-list gnome org
- Subject: Re: How do you get the data from a signal handler?
- Date: Mon, 15 Oct 2001 11:41:37 +1000
Sorry I don't Have an answer for you then, but I sure someone will know :-)
rsteinke w-link net wrote:
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
--
------------- -------------------------------------------
---------- .-. -----------------------------------------
--------- /V\ ----------- Grizzly . oo -------------
--------- // \\ -------------- `oO -------------
---------- /( )\ -----------------------------------------
------------ ^^-^^ -------------------------------------------
Francis Smit ------------------------------------------------
Knowledge By Design ------------------------------------------
Suite 201, 683 George st --------------------------------------
Sydney 2000 NSW -----------------------------------------------
http://www.kbd.com.au -----------------------------------------
--------------------------------------------------------------
mailto:francis oztel com -------------------------------------
Mob: +61 403 822 585 --------------------------------------
---------------------------------------
Tel: +61 1300 130 118 ----------------------------------------
Tel: +61 2 9217 6000 -----------------------------------------
Fax: +61 2 9212 5727 ------------------------------------------
___________________________________
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]