ext/wxProperty.cpp in rwx-0.0.1.dev vs ext/wxProperty.cpp in rwx-0.0.1.1.dev

- old
+ new

@@ -601,12 +601,16 @@ /* Document-attr: grid * the property grid that has this property. WX::PropertyGrid or nil */ DLL_LOCAL void Init_WXProperty(VALUE rb_mWX) { -#if 0 +#if wxUSE_PROPGRID + using namespace RubyWX::Property; + rb_cWXProperty = rb_define_class_under(rb_mWX,"Property",rb_cObject); + rb_define_alloc_func(rb_cWXProperty,_alloc); +#if 0 rb_define_attr(rb_cWXProperty,"name",1,1); rb_define_attr(rb_cWXProperty,"label",1,1); rb_define_attr(rb_cWXProperty,"help_string",1,1); rb_define_attr(rb_cWXProperty,"value",1,1); @@ -623,16 +627,10 @@ rb_define_attr(rb_cWXProperty,"main_parent",1,0); rb_define_attr(rb_cWXProperty,"parent",1,0); rb_define_attr(rb_cWXProperty,"depth",1,0); rb_define_attr(rb_cWXProperty,"grid",1,0); - #endif - -#if wxUSE_PROPGRID - using namespace RubyWX::Property; - rb_cWXProperty = rb_define_class_under(rb_mWX,"Property",rb_cObject); - rb_define_alloc_func(rb_cWXProperty,_alloc); //TODO check if its possible to add this methods rb_undef_method(rb_cWXProperty,"initialize_copy"); rb_undef_method(rb_cWXProperty,"_load"); rb_undef_method(rb_cWXProperty,"_dump");