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=b4623ded869347741119dd936ea9254d69fbd680;p=xboard.git Activate ManProc in GTK --- diff --git a/gtk/xboard.c b/gtk/xboard.c index 4f1fc8c..442b936 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -1777,26 +1777,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 }