From b4623ded869347741119dd936ea9254d69fbd680 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 29 Dec 2013 23:27:12 +0100 Subject: [PATCH] Activate ManProc in GTK --- gtk/xboard.c | 19 ++++--------------- 1 files changed, 4 insertions(+), 15 deletions(-) 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 } -- 1.7.0.4