ext/wxGrid.cpp in rwx-0.0.1.dev vs ext/wxGrid.cpp in rwx-0.0.1.1.dev
- old
+ new
@@ -137,11 +137,18 @@
rb_mWX = rb_define_module("WX");
rb_cWXWindow = rb_define_class_under(rb_mWX,"Window",rb_cObject);
rb_cWXControl = rb_define_class_under(rb_mWX,"Control",rb_cWXWindow);
rb_cWXPanel = rb_define_class_under(rb_mWX,"Panel",rb_cWXControl);
+#endif
+#if wxUSE_GRID
+ using namespace RubyWX::Grid;
+ rb_cWXGrid = rb_define_class_under(rb_mWX,"Grid",rb_cWXPanel);
+ rb_define_alloc_func(rb_cWXGrid,_alloc);
+
+#if 0
rb_define_attr(rb_cWXGrid,"table",1,1);
rb_define_attr(rb_cWXGrid,"line_color",1,1);
rb_define_attr(rb_cWXGrid,"label_background_color",1,1);
rb_define_attr(rb_cWXGrid,"label_text_color",1,1);
rb_define_attr(rb_cWXGrid,"label_font",1,1);
@@ -163,14 +170,9 @@
rb_define_attr(rb_cWXGrid,"minimal_height",1,1);
rb_define_attr(rb_cWXGrid,"editable",1,1);
#endif
-
-#if wxUSE_GRID
- using namespace RubyWX::Grid;
- rb_cWXGrid = rb_define_class_under(rb_mWX,"Grid",rb_cWXPanel);
- rb_define_alloc_func(rb_cWXGrid,_alloc);
rb_define_method(rb_cWXGrid,"initialize",RUBY_METHOD_FUNC(_initialize),-1);
rb_define_attr_method(rb_cWXGrid,"table",_getTable,_setTable);
rb_define_attr_method(rb_cWXGrid,"line_color",_getGridLineColour,_setGridLineColour);