struct Wrapper {
static void Export(const native &self, const Callback<void(T)> &returnz) {
native *p = &const_cast<native &>(self);
- auto widget = Self(p);
+ auto widget = Self::from(p);
Widget::Get::thunk_(widget, returnz);
}
static void Import(native &self, T value) {
native *p = &self;
- auto widget = Self(p);
+ auto widget = Self::from(p);
Widget::Set::thunk_(widget, value);
}
};
// =============================================================================
// Dialog class
-Dialog::Dialog() : m_window( 0 ), m_parent( 0 ){
+Dialog::Dialog() : m_window( ui::null ), m_parent( ui::null ){
}
Dialog::~Dialog(){
image.show();
table.attach(image, {pos, pos + 1, 0, 1}, {0, 0});
- radio = ui::RadioButton(GTK_RADIO_BUTTON(gtk_radio_button_new( group )));
+ radio = ui::RadioButton::from(gtk_radio_button_new( group ));
radio.show();
table.attach(radio, {pos, pos + 1, 1, 2}, {0, 0});