Xgospel

    Keywords: Software

Xgospel (latest release: 1.12d, release date: 27 Oct 1999) is a Go client for IGS/NNGS. It was written by Ton Hospel. He developed it until version 1.10d and he stopped maintaining it due to lack of time. In 1999, Jean-Loup Gailly released version 1.12d with fixes and improvements with Hospel's permission.

Table of contents

Guest login

Once it connects to the server it will display the Enter user window. Type guest and press the Enter key to login as a guest user.

Compilation on newer systems with GCC

Apply the below patch[1] (cd xgospel-1.12d, patch -lp0, ./configure, and make -j1).

--- configure   1995-12-03 16:08:18.000000000 +0200
+++ configure   2024-03-05 00:51:46.372070606 +0200
@@ -2938,7 +2938,7 @@
     fi
 fi
   echo "$ac_t""$ac_cv_x_version" 1>&6
-  X_VERSION=$ac_cv_x_version
+  X_VERSION=9

     if test "$ac_cv_header_x11_xlib_h" = no; then
       { echo "configure: error: It looked like I found your X, but now I can't find <X11/Xlib.h>.
@@ -2981,7 +2981,7 @@
     fi
 fi
   echo "$ac_t""$ac_cv_xt_version" 1>&6
-  XT_VERSION=$ac_cv_xt_version
+  XT_VERSION=9

     if test "$ac_cv_header_x11_intrinsic_h" = no; then
       { echo "configure: error: It looked like I found your Xt, but now I can't find <X11/Intrinsic.h>.

--- xgospel.c   2009-04-05 11:36:50.000000000 +0200
+++ xgospel.c   2009-04-05 11:39:59.000000000 +0200
@@ -64,7 +64,7 @@
 "xgospel*version: %s\n"

 /* #define SITE    "igs.joyjoy.net" */
-#define SITE "210.134.78.91"
+#define SITE "igs.joyjoy.net"

 /* We measure the roundtrip time (to the X server) every RETRIP seconds */
 #define RETRIP    5

--- my/TearofMenu.c     1994-12-17 14:42:12 +0900
+++ my/TearofMenu.c     2007-11-25 00:52:19 +0900
@@ -84,6 +84,21 @@

 WidgetClass tearofMenuWidgetClass = (WidgetClass) &tearofMenuClassRec;

+/* Call an action in the simpleMenu class */
+static void smCallActionProc(Widget w, String action, XEvent *event, String *params, Cardinal *n)
+{
+    XtActionList   Actions;
+    Cardinal       NrActions, i;
+
+    XtGetActionList(simpleMenuWidgetClass, &Actions, &NrActions);
+    for (i = 0; i < NrActions; i++) {
+       if (strcmp(Actions[i].string, action) == 0) {
+           (*Actions[i].proc)(w, event, params, n);
+           break;
+       }
+    }
+}
+
 static void Highlight(Widget w, XEvent *event, String *params, Cardinal *n)
 {
     XtActionList   Actions;
@@ -94,9 +109,13 @@
     switch(tmw->tearof_menu.state) {
       case SIMPLEMENUSTATE:
       case POPUPMENUSTATE:
+#if 0
         XtGetActionList(simpleMenuWidgetClass, &Actions, &NrActions);
         /* We really should look up if offset 0 is highlight --Ton */
         (*Actions[0].proc)(w, event, params, n);
+#else
+       smCallActionProc(w, "highlight", event, params, n);
+#endif
         break;
       case BEINGTEAREDSTATE:
         XtVaSetValues(w,
@@ -169,9 +188,14 @@
           case SIMPLEMENUSTATE:
             XtPopdown(popup_shell);
           case POPUPMENUSTATE:
+#if 0
             XtGetActionList(simpleMenuWidgetClass, &Actions, &NrActions);
             (*Actions[1].proc)(w, event, params, n); /* notify      */
             (*Actions[2].proc)(w, event, params, n); /* unhighlight */
+#else
+           smCallActionProc(w, "notify", event, params, n);
+           smCallActionProc(w, "unhighlight", event, params, n);
+#endif
             break;
           case BEINGTEAREDSTATE:
             Highlight(popup_shell, event, NULL, &m);

External links


[1] [ext] https://abf.io/import/xgospel/tree/rosa2014.1 ([ext] menu-crash-fix.diff, [ext] xgospel-1.12d-new-server.patch)


This is a copy of the living page "Xgospel" at Sensei's Library.
(OC) 2024 the Authors, published under the OpenContent License V1.0.
[Welcome to Sensei's Library!]
StartingPoints
ReferenceSection
About