com gtk/php-gtk: GdkAtom class is not based on GType. (fixes switch-page bug): main/phpg_atom.c

[email protected] (David Soria Parra) Sat, 10 Dec 2005 20:59:20 +0000
Newsgroups php.gtk.cvs
Message-ID <[email protected]>
Commit:    625ce47341ba4799b764257c8bc2947503e0e9e2
Author:    Andrei Zmievski <[email protected]>         Sat, 10 Dec 2005 20:59:20 +0000
Parents:   cec9d347e3734265acf63369da9934b617848238
Branches:  master

Link:       http://git.php.net/?p=gtk/php-gtk.git;a=commitdiff;h=625ce47341ba4799b764257c8bc2947503e0e9e2

Log:
GdkAtom class is not based on GType. (fixes switch-page bug)

Changed paths:
  M  main/phpg_atom.c


Diff:
625ce47341ba4799b764257c8bc2947503e0e9e2
diff --git a/main/phpg_atom.c b/main/phpg_atom.c
index eeda46b..93e593f 100644
--- a/main/phpg_atom.c
+++ b/main/phpg_atom.c
@@ -150,8 +150,7 @@ void phpg_gdkatom_register_self(TSRMLS_D)
     phpg_gdkatom_handlers.compare_objects = phpg_gdkatom_compare_objects;
     phpg_gdkatom_handlers.cast_object = phpg_gdkatom_cast_object;
 
-	gdkatom_ce = phpg_register_class("GdkAtom", gdkatom_methods, NULL, 0, NULL, phpg_create_gdkatom, G_TYPE_POINTER TSRMLS_CC);
-    phpg_register_int_constant(gdkatom_ce, "gtype", sizeof("gtype")-1, G_TYPE_POINTER);
+	gdkatom_ce = phpg_register_class("GdkAtom", gdkatom_methods, NULL, 0, NULL, phpg_create_gdkatom, 0 TSRMLS_CC);
 }
 /* }}} */