ext/wxFrame.cpp in rwx-0.0.1.dev vs ext/wxFrame.cpp in rwx-0.0.1.1.dev
- old
+ new
@@ -237,19 +237,21 @@
#if 0
rb_mWX = rb_define_module("WX");
rb_cWXWindow = rb_define_class_under(rb_mWX,"Window",rb_cObject);
rb_cWXTopLevel = rb_define_class_under(rb_mWX,"TopLevel",rb_cWXWindow);
+#endif
+ using namespace RubyWX::Frame;
+ rb_cWXFrame = rb_define_class_under(rb_mWX,"Frame",rb_cWXTopLevel);
+ rb_define_alloc_func(rb_cWXFrame,_alloc);
+
+#if 0
rb_define_attr(rb_cWXFrame,"menubar",1,1);
rb_define_attr(rb_cWXFrame,"statusbar",1,1);
rb_define_attr(rb_cWXFrame,"statusbar_pane",1,1);
rb_define_attr(rb_cWXFrame,"toolbar",1,1);
#endif
-
- using namespace RubyWX::Frame;
- rb_cWXFrame = rb_define_class_under(rb_mWX,"Frame",rb_cWXTopLevel);
- rb_define_alloc_func(rb_cWXFrame,_alloc);
rb_define_method(rb_cWXFrame,"initialize",RUBY_METHOD_FUNC(_initialize),-1);
#if wxUSE_MENUS
rb_define_attr_method(rb_cWXFrame,"menubar",_getMenuBar,_setMenuBar);