module defined callbacks in php-gtk - function pointer experts needed :)

From: Date: Sun, 29 Jun 2003 16:06:31 +0000
Subject: module defined callbacks in php-gtk - function pointer experts needed :)
Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-489@lists.php.net to get a copy of this message
Andrei, attached is a patch for adding a callback registry to php-gtk, so that callbacks that use gpointers or other 'unhandled' types, can be mapped to module defined handlers. In the example, the callback for GtkSheet::traverse is mapped to php_gtk_sheet_callback_traverse, rather than the default mashaller. using php_gtk_register_callback("GtkSheet::traverse",php_gtk_sheet_callback_traverse); I've just modified the gtk_signal_connect_impl function to check the registry (and moved it to php_gtk_object.c) It almost works, except I guess I got a pointer wrong somewhere in the process, cause it dont callback to the right place at present... any ideas why? :) -- cc'd to php-dev if anyone wants to help out with my crappy C code :) Regards Alan -- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.gtk.dev (#489) next »