g_file_dialog_file[0] = '\0';
}
- gtk_widget_destroy( dialog );
+ ui::Widget(dialog).destroy();
// don't return an empty filename
if ( g_file_dialog_file[0] == '\0' ) {
filename = gtk_file_chooser_get_filename( GTK_FILE_CHOOSER( dialog ) );
}
- gtk_widget_destroy( dialog );
+ ui::Widget(dialog).destroy();
return filename;
}