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



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?

Ron Steinke

_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list



--
-------------       -------------------------------------------
----------    .-.     -----------------------------------------
---------     /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]