#include <gtk/gtk.h>
#include "debugging/debugging.h"
-#include "version.h"
#include "aboutmsg.h"
#include "igl.h"
ModalDialog dialog;
ModalDialogButton ok_button( dialog, eIDOK );
- auto window = MainFrame_getWindow().create_modal_dialog_window("About NetRadiant", dialog );
+ auto window = MainFrame_getWindow().create_modal_dialog_window("About " RADIANT_NAME, dialog );
{
auto vbox = create_dialog_vbox( 4, 4 );
}
{
- char const *label_text = "NetRadiant " RADIANT_VERSION "\n"
+ char const *label_text = RADIANT_NAME " " RADIANT_VERSION_STRING "\n"
__DATE__ "\n\n"
- RADIANT_ABOUTMSG "\n\n"
+ RADIANT_ABOUTMSG "\n\n"
"This program is free software\n"
"licensed under the GNU GPL.\n\n"
- "NetRadiant is unsupported, however\n"
+ RADIANT_NAME " is unsupported, however\n"
"you may report your problems at\n"
"https://gitlab.com/xonotic/netradiant/issues";
static ui::Widget text_widget{ui::null}; // slave, text widget from the gtk editor
static gint editor_delete( ui::Widget widget, gpointer data ){
- if ( widget.window().alert( "Close the shader editor ?", "Radiant", ui::alert_type::YESNO, ui::alert_icon::Question ) == ui::alert_response::NO ) {
+ if ( ui::alert( widget.window(), "Close the shader editor ?", "Radiant", ui::alert_type::YESNO, ui::alert_icon::Question ) == ui::alert_response::NO ) {
return TRUE;
}
gpointer text = g_object_get_data( G_OBJECT( data ), "text" );
if ( f == 0 ) {
- ui::Widget::from(data).window().alert( "Error saving file !" );
+ ui::alert( ui::Widget::from(data).window(), "Error saving file !" );
return;
}
}
static void editor_close( ui::Widget widget, gpointer data ){
- if ( text_editor.window().alert( "Close the shader editor ?", "Radiant", ui::alert_type::YESNO, ui::alert_icon::Question ) == ui::alert_response::NO ) {
+ if ( ui::alert( text_editor.window(), "Close the shader editor ?", "Radiant", ui::alert_type::YESNO, ui::alert_icon::Question ) == ui::alert_response::NO ) {
return;
}