What errors?
-Andrei
On Jun 25, 2006, at 11:28 AM, Steph Fox wrote:
Now you've caught up...
I thought that too, but actually I got gtk errors when I went that
route. You tell me.
6 LOC is hardly excessive anyway :)
What was wrong with simply adding gpointer_ce to the parent slot
in templates? I mean, this works, but it's just extra code..
-Andrei
On Jun 25, 2006, at 3:47 AM, Steph Fox wrote:
Andrei,
If you don't like this solution (or something very close to it)
we're stuck with naming the ce for pointers. I'm easy either
way, so long as it works ;)
- Steph
----- Original Message ----- From: "Steph Fox" <sfox@xxxxxxx>
To: <php-gtk-cvs@xxxxxxxxxxxxx>
Sent: Sunday, June 25, 2006 12:47 PM
Subject: [php-gtk-cvs] cvs: php-gtk /main php_gtk.h phpg_gpointer.c
sfox Sun Jun 25 10:47:26 2006 UTC
Modified files:
/php-gtk/main php_gtk.h phpg_gpointer.c
Log:
Give GPointer types something to hold onto...
http://cvs.php.net/viewvc.cgi/php-gtk/main/php_gtk.h?
r1=1.132&r2=1.133&diff_format=u
Index: php-gtk/main/php_gtk.h
diff -u php-gtk/main/php_gtk.h:1.132 php-gtk/main/php_gtk.h:1.133
--- php-gtk/main/php_gtk.h:1.132 Fri Jun 23 04:11:49 2006
+++ php-gtk/main/php_gtk.h Sun Jun 25 10:47:26 2006
@@ -18,7 +18,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA
*/
-/* $Id: php_gtk.h,v 1.132 2006/06/23 04:11:49 andrei Exp $: */
+/* $Id: php_gtk.h,v 1.133 2006/06/25 10:47:26 sfox Exp $: */
#ifndef _PHP_GTK_H
#define _PHP_GTK_H
@@ -476,6 +476,7 @@
/* GPointer */
void phpg_gpointer_register_self(TSRMLS_D);
PHP_GTK_API void phpg_gpointer_new(zval **zobj, GType gtype,
gpointer pointer TSRMLS_DC);
+PHP_GTK_API zend_class_entry* phpg_register_pointer(const char
*class_name, function_entry *class_methods, create_object_func_t
create_obj_func, GType gtype TSRMLS_DC);
PHP_GTK_API zend_object_value phpg_create_gpointer
(zend_class_entry *ce TSRMLS_DC);
PHP_GTK_API zend_bool phpg_gpointer_check(zval *zobj, GType
gtype, zend_bool full_check TSRMLS_DC);
http://cvs.php.net/viewvc.cgi/php-gtk/main/phpg_gpointer.c?
r1=1.5&r2=1.6&diff_format=u
Index: php-gtk/main/phpg_gpointer.c
diff -u php-gtk/main/phpg_gpointer.c:1.5 php-gtk/main/
phpg_gpointer.c:1.6
--- php-gtk/main/phpg_gpointer.c:1.5 Fri Jun 23 04:11:49 2006
+++ php-gtk/main/phpg_gpointer.c Sun Jun 25 10:47:26 2006
@@ -49,6 +49,16 @@
}
/* }}} */
+/* {{{ PHP_GTK_API phpg_register_pointer() */
+PHP_GTK_API zend_class_entry* phpg_register_pointer(const char
*class_name,
+
function_entry *class_methods,
+
create_object_func_t create_obj_func,
+ GType gtype
TSRMLS_DC)
+{
+ return phpg_register_class(class_name, class_methods,
gpointer_ce, 0, NULL, create_obj_func ? create_obj_func :
phpg_create_gpointer, gtype TSRMLS_CC);
+}
+/* }}} */
+
/* {{{ PHP_GTK_API phpg_create_gpointer() */
PHP_GTK_API zend_object_value phpg_create_gpointer
(zend_class_entry *ce TSRMLS_DC)
{
--
PHP-GTK CVS Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
__________ NOD32 1.1380 (20060125) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
--
PHP-GTK Development Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP-GTK Development Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
__________ NOD32 1.1380 (20060125) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
--
PHP-GTK Development Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|