]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/gtkdlgs.cpp
radiant/about: add link to website
[xonotic/netradiant.git] / radiant / gtkdlgs.cpp
index 1bb44cf1d1f8f8a4fcc9b6cb40337c174430b6d9..10c4c7e36b65ac52af2a0a7e9b4b032fcf3489f9 100644 (file)
@@ -40,7 +40,6 @@
 #include <gtk/gtk.h>
 
 #include "debugging/debugging.h"
-#include "version.h"
 #include "aboutmsg.h"
 
 #include "igl.h"
@@ -425,7 +424,7 @@ void DoAbout(){
        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 );
@@ -450,16 +449,23 @@ void DoAbout(){
                        }
 
                        {
-                               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"
+                                                                               "Get news and updates on "
+                                                                               "<a href='https://netradiant.gitlab.io/'>"
+                                                                                       "netradiant.gitlab.io"
+                                                                               "</a>\n\n"
+                                                                               RADIANT_NAME " is unsupported, however\n"
                                                                                "you may report your problems at\n"
-                                                                               "https://gitlab.com/xonotic/netradiant/issues";
+                                                                               "<a href='https://gitlab.com/xonotic/netradiant/issues'>"
+                                                                                       "gitlab.com/xonotic/netradiant/issues"
+                                                                               "</a>";
 
                                auto label = ui::Label( label_text );
+                               gtk_label_set_use_markup( GTK_LABEL( label ), true );
 
                                label.show();
                                hbox.pack_start( label, FALSE, FALSE, 0 );
@@ -673,7 +679,7 @@ static ui::Window text_editor{ui::null};
 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;
        }
 
@@ -687,7 +693,7 @@ static void editor_save( ui::Widget widget, gpointer data ){
        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;
        }
 
@@ -697,7 +703,7 @@ static void editor_save( ui::Widget widget, gpointer data ){
 }
 
 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;
        }