]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/url.cpp
Wrap gtk
[xonotic/netradiant.git] / radiant / url.cpp
index e5ed0bc57f0b73c18afa956ea3982981e095a031..1885f44b8759a267c61b1aadacfe9096cb9ae0ab 100644 (file)
@@ -34,6 +34,8 @@ bool open_url( const char* url ){
 
 #if defined( __linux__ ) || defined( __FreeBSD__ )
 #include <cstdlib>
+#include <uilib/uilib.h>
+
 bool open_url( const char* url ){
        // \todo FIXME: the way we open URLs on *nix should be improved. A script is good (see how I do on RTCW)
        char command[2 * PATH_MAX];
@@ -56,6 +58,6 @@ void OpenURL( const char *url ){
        // let's put a little comment
        globalOutputStream() << "OpenURL: " << url << "\n";
        if ( !open_url( url ) ) {
-               gtk_MessageBox( GTK_WIDGET( MainFrame_getWindow() ), "Failed to launch browser!" );
+               MainFrame_getWindow().alert( "Failed to launch browser!" );
        }
 }