unsigned char* img;
const char* filename;
- filename = ui::file_dialog( GTK_WIDGET( MainFrame_getWindow() ), FALSE, "Save Image", 0, FILTER_BMP );
+ filename = ui::file_dialog( MainFrame_getWindow( ), FALSE, "Save Image", 0, FILTER_BMP );
if ( !filename ) {
return;
}
onDestroyed();
if ( m_mnuDrop ) {
- gtk_widget_destroy( GTK_WIDGET( m_mnuDrop ) );
+ m_mnuDrop.destroy();
m_mnuDrop = ui::Menu(ui::null);
}
m_stack.back().first.add(item);
auto submenu = ui::Menu(ui::New);
- gtk_menu_item_set_submenu( item, GTK_WIDGET( submenu ) );
+ gtk_menu_item_set_submenu( item, submenu );
m_stack.push_back( MenuPair( submenu, name ) );
}
void unrealise(){
if ( ++m_unrealised == 1 ) {
if ( XYWnd::m_mnuDrop ) {
- gtk_widget_destroy( GTK_WIDGET( XYWnd::m_mnuDrop ) );
+ XYWnd::m_mnuDrop.destroy();
XYWnd::m_mnuDrop = ui::Menu(ui::null);
}
}