Re: php-gtk head compile issues..
| From: | Andrei Zmievski | Date: | Wed, 15 Oct 2003 05:20:15 +0000 |
| Subject: | Re: php-gtk head compile issues.. | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-552@lists.php.net to get a copy of this message | ||
Any type that is not derived from GtkObject is treated as boxed. So in
all these cases the final parameter should be 1.
On Tue, 14 Oct 2003, Alan Knowles wrote:
> looks like that php_gtk_object_set extra arg affects a few more extensions..
>
> .. - not quite sure which are supposed to be boxed.. - I guessed these..
>
> Index: ext/gdkpixbuf/gdkpixbuf.overrides
> ===================================================================
> RCS file: /repository/php-gtk/ext/gdkpixbuf/gdkpixbuf.overrides,v
> retrieving revision 1.6
> diff -u -r1.6 gdkpixbuf.overrides
> --- ext/gdkpixbuf/gdkpixbuf.overrides 29 Oct 2002 04:36:45 -0000 1.6
> +++ ext/gdkpixbuf/gdkpixbuf.overrides 14 Oct 2003 13:55:40 -0000
> @@ -115,6 +115,6 @@
> return;
> }
>
> - php_gtk_set_object(this_ptr, wrapped_obj, le_gdk_pixbuf);
> + php_gtk_set_object(this_ptr, wrapped_obj, le_gdk_pixbuf, 1);
>
> }
> Index: ext/gdkpixbuf/php_gdkpixbuf.c
> ===================================================================
> RCS file: /repository/php-gtk/ext/gdkpixbuf/php_gdkpixbuf.c,v
> retrieving revision 1.2
> diff -u -r1.2 php_gdkpixbuf.c
> --- ext/gdkpixbuf/php_gdkpixbuf.c 11 Apr 2002 02:19:46 -0000 1.2
> +++ ext/gdkpixbuf/php_gdkpixbuf.c 14 Oct 2003 13:55:40 -0000
> @@ -63,7 +63,7 @@
> object_init_ex(result, gdk_pixbuf_ce);
>
> gdk_pixbuf_ref(pixbuf);
> - php_gtk_set_object(result, pixbuf, le_gdk_pixbuf);
> + php_gtk_set_object(result, pixbuf, le_gdk_pixbuf, 0);
>
> return result;
> }
>
> ??? templates - whats the default there???
>
>
> Index: generator/templates.php
> ===================================================================
> RCS file: /repository/php-gtk/generator/templates.php,v
> retrieving revision 1.21
> diff -u -r1.21 templates.php
> --- generator/templates.php 10 Oct 2003 03:41:43 -0000 1.21
> +++ generator/templates.php 14 Oct 2003 13:55:42 -0000
> @@ -70,7 +70,7 @@
> php_gtk_object_init(wrapped_obj, this_ptr);\n";
>
> $non_gtk_object_init_tpl = "
> - php_gtk_set_object(this_ptr, wrapped_obj, le_%s);\n";
> + php_gtk_set_object(this_ptr, wrapped_obj, le_%s, 1);\n";
>
> $function_entry_tpl = "\t{\"%s\", PHP_FN(%s), %s},\n";
> $functions_decl_tpl = "
> cvs server: Diffing main
-Andrei
* Think digital, act analog. *