Re: Was GtkHTML - now dealing with POINTER callbacks?

From: Date: Fri, 19 Oct 2001 19:29:18 +0000
Subject: Re: Was GtkHTML - now dealing with POINTER callbacks?
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-142@lists.php.net to get a copy of this message
I've thought about this and while it would be possible to implement, I don't see how wrapping pointers in resources is going to be useful in PHP-GTK land. I mean, what will you be able to do with this resource except pass it onto another function, perhaps? On Sun, 14 Oct 2001, Alan Knowles wrote: > Well, I solved the 'non-occuring signals', the php file in the tar ball sets the > signals after the $gtkhtml->begin/write calls > > doh - as homer simpson would have said.. > > > I now have the callback url_requested working - eg. It calls back!.. however. url_requested > sends a signal of POINTER_POINTER, and currently the gtk code does not handle pointer callbacks.. > > so the question now goes should all callbacks of pointers be defined as references.. - at least > giving the recievers of these pointers a chance to use them..... > > >> from /php-gtk/main/php_gtk_object.c line 517.. > > case GTK_TYPE_POINTER: > php_error(E_NOTICE, "%s(): internal error: GTK_TYPE_POINTER unsupported", > get_active_function_name(TSRMLS_C)); > > ZEND_REGISTER_RESOURCE(value, arg, le_gtkhtmlstream); > > /* > MAKE_STD_ZVAL(value); > ZVAL_NULL(value); > */ > break; > > > Initially the idea is just to use the gtkhtmlstream that I have already created.. - this may be > better renamed to le_gtkpointer_wrapper ???? > > however, I dont think the ZEND_REGISTER_RESOURCE is not creating the correct type value in > 'value' as I get N: rather than i:0; - (the serialized return from gtk_html_beginw) > > anyway anybody got Ideas to keep the ball rolling...... > > regards > > alan > > > > > > > > > > > >----- Original Message ----- > > From: Alan Knowles <alan_k@hklc.com> > > To: php-gtk-dev@lists.php.net > > Sent: Wed, 10 Oct 2001 09:55:40 +0800 > > Subject: Re: [PHP-GTK-DEV] Re: GtkHTML next set of questions... > > > > the tar ball is at > > gtkhtml.1.2.tgz > > <http://midgard.hklc.com/gtkhtml.1.2.tgz> > > > > there is a php file gtkhtml.php > > > > Markus Fischer wrote: > > > > >Enlight Us! > > > > > >Ie, post some compilable code. > > > > > >- Markus > > > > > > > > > > > -- > > PHP-GTK Development Mailing List (http://gtk.php.net/) > > To unsubscribe, e-mail: php-gtk-dev-unsubscribe@lists.php.net > > For additional commands, e-mail: php-gtk-dev-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > > > -- > PHP-GTK Development Mailing List (http://gtk.php.net/) > To unsubscribe, e-mail: php-gtk-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-gtk-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > -Andrei "Computers are useless. They can only give you answers." --Pablo Picasso

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