From: H.G. Muller Date: Sun, 29 Dec 2013 22:27:12 +0000 (+0100) Subject: Activate ManProc in GTK X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=6ca7676cbc8e53c6d365339ba2fe270e46e9b543;p=xboard.git Activate ManProc in GTK --- diff --git a/gtk/xboard.c b/gtk/xboard.c index b76faef..5b018e5 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -1776,26 +1776,15 @@ TempForwardProc (Widget w, XEvent *event, String *prms, Cardinal *nprms) ForwardEvent(); TempBackwardActive = False; } - -void -ManInner (Widget w, XEvent *event, String *prms, Cardinal *nprms) -{ // called as key binding - char buf[MSG_SIZ]; - String name; - if (nprms && *nprms > 0) - name = prms[0]; - else - name = "xboard"; - snprintf(buf, sizeof(buf), "xterm -e man %s &", name); - system(buf); -} #endif void ManProc () { // called from menu -#ifdef TODO_GTK - ManInner(NULL, NULL, NULL, NULL); +#ifdef OSX + system("%s ./man.command", appData.sysOpen); +#else + system("xterm -e man xboard &"); #endif }