[Gridflow-cvs] [svn] commit: r3427 - /trunk/optional/gem.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Thu Apr 3 20:23:44 EDT 2008


Author: matju
Date: Thu Apr  3 20:23:44 2008
New Revision: 3427

Log:
use new way to access t_class

Modified:
    trunk/optional/gem.c

Modified: trunk/optional/gem.c
==============================================================================
--- trunk/optional/gem.c (original)
+++ trunk/optional/gem.c Thu Apr  3 20:23:44 2008
@@ -109,7 +109,8 @@
 
 \end class {
 	install("#to_pix",2,1);
-	t_class *qlass = FIX2PTR(t_class,rb_ivar_get(EVAL("GridFlow::GridExportPix"),SI(@bfclass)));
+	add_creator("#export_pix");
+	t_class *qlass = fclasses[string("#to_pix")];
 	GridExportPix::real_obj_setupCallback(qlass);
 }
 
@@ -153,7 +154,7 @@
 
 \end class {
 	install("#import_pix",2,1);
-	t_class *qlass = FIX2PTR(t_class,rb_ivar_get(EVAL("GridFlow::GridImportPix"),SI(@bfclass)));
+	t_class *qlass = fclasses[string("#import_pix")];
 	GridExportPix::real_obj_setupCallback(qlass);
 }
 



More information about the Gridflow-cvs mailing list