aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/vncviewer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vncviewer/vncviewer.cxx')
-rw-r--r--vncviewer/vncviewer.cxx18
1 files changed, 17 insertions, 1 deletions
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx
index a6244cba..d9277e5d 100644
--- a/vncviewer/vncviewer.cxx
+++ b/vncviewer/vncviewer.cxx
@@ -44,6 +44,7 @@
#include <FL/Fl.H>
#include <FL/Fl_Widget.H>
#include <FL/fl_ask.H>
+#include <FL/x.H>
#include "i18n.h"
#include "parameters.h"
@@ -56,7 +57,7 @@ using namespace network;
using namespace rfb;
using namespace std;
-char aboutText[1024];
+static char aboutText[1024];
static bool exitMainloop = false;
@@ -65,6 +66,17 @@ void exit_vncviewer()
exitMainloop = true;
}
+void about_vncviewer()
+{
+ fl_message_title(_("About TigerVNC Viewer"));
+ fl_message(aboutText);
+}
+
+static void about_callback(Fl_Widget *widget, void *data)
+{
+ about_vncviewer();
+}
+
static void CleanupSignalHandler(int sig)
{
// CleanupSignalHandler allows C++ object cleanup to happen because it calls
@@ -109,6 +121,10 @@ static void init_fltk()
fl_ok = _("OK");
fl_cancel = _("Cancel");
fl_close = _("Close");
+
+#ifdef __APPLE__
+ fl_mac_set_about(about_callback, NULL);
+#endif
}
static void mkvnchomedir()