bug-xboard
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-XBoard] Help Man does not work in Xboard GTK


From: h . g . muller
Subject: Re: [Bug-XBoard] Help Man does not work in Xboard GTK
Date: Sun, 24 Nov 2013 19:16:34 +0100
User-agent: SquirrelMail

Well, the GTK version is not officially finished yet, and the TODO_GTK was
used as a kludge to mark all the code that still has to be converted from
Xaw to GTK. But there doesn't seem to be any reason for this particular
part not being done yet. Except perhaps that I did not understand the
original Xaw code (ManInner), for which ManProc is just a wrapper to
interface platform-dependent code to the new platform-independent way of
calling things from the 'middle-end'.

It seems that ManInner considers the possibility that it is called with
(non-NULL) parameters, which, even in the Xaw version, would never happen
when it was called because the user clicked the 'man' menu item. My guess
is that in the original XBoard is was possible to define a key binding
(external to XBoard, in the .xresources file) to ManProc(xxx), where xxx
could be the name of any man page, and not necessarily xboard, to summon
up that man page. I am not sure why anyone would ever want to do such a
thing.

If we drop that

> void ManProc ()
> {   // called from menu
>     system("xterm -e man xboard &", name);
> }

(and deleting ManInner) would do it in a straightforward way (but only for
'man xboard').

Op Zo, 24 november, 2013 3:43 pm schreef Joshua Pettus:
> I noticed that even on my linux install, xboard isn’t even sending a call
> for “xterm” when man xboard  is selected under the help menu.  Info works
> just fine though. But something is not right with this passage under
> gtk/xboard.c:
>
>
> 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);
> #endif
> }
>
>
> Of course this works in Xaw version of xboard, so I wonder if the #ifdef
> TODO_GTK is where it’s getting hung up.
> _______________________________________________
> Bug-XBoard mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-xboard
>
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]