Fix some warnings and header-file improvement
[xboard.git] / xevalgraph.c
index 5c8f1f0..79e38d6 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Copyright 2005 Alessandro Scotti
  *
- * Enhancements Copyright 2009, 2010 Free Software Foundation, Inc.
+ * Enhancements Copyright 2009, 2010, 2011 Free Software Foundation, Inc.
  *
  * ------------------------------------------------------------------------
  *
@@ -90,23 +90,9 @@ extern char *getenv();
 
 #define _LL_ 100
 
-// imports from xboard.c
-extern Widget formWidget, shellWidget, boardWidget, menuBarWidget;
-extern Display *xDisplay;
-extern Window xBoardWindow;
-extern int squareSize;
-extern Pixmap xMarkPixmap, wIconPixmap, bIconPixmap;
-extern char *layoutName;
-
 Pixmap icons[8]; // [HGM] this front-end array translates back-end icon indicator to handle
 Widget outputField[2][7]; // [HGM] front-end array to translate output field to window handle
 
-/* Imports from backend.c */
-
-/* Imports from xboard.c */
-extern Arg layoutArgs[2], formArgs[2], messageArgs[4];
-extern GC coordGC;
-
 //extern WindowPlacement wpEvalGraph;
 
 Position evalGraphX = -1, evalGraphY = -1;
@@ -357,12 +343,12 @@ EvalGraphPopUp()
     Arg args[16];
     int j;
     static int  needInit = TRUE;
-    static char *title = _("Evaluation graph");
+    static char *title = N_("Evaluation graph");
 
     if (evalGraphShell == NULL) {
 
        evalGraphShell =
-         EvalGraphCreate(title);
+         EvalGraphCreate(_(title));
        XtRealizeWidget(evalGraphShell);
        CatchDeleteWindow(evalGraphShell, "EvalGraphPopDown");
        if( needInit ) {
@@ -371,8 +357,8 @@ EvalGraphPopUp()
        }
     } else {
        j = 0;
-       XtSetArg(args[j], XtNiconName, (XtArgVal) title);   j++;
-       XtSetArg(args[j], XtNtitle, (XtArgVal) title);      j++;
+       XtSetArg(args[j], XtNiconName, (XtArgVal) _(title));   j++;
+       XtSetArg(args[j], XtNtitle, (XtArgVal) _(title));      j++;
        XtSetValues(evalGraphShell, args, j);
     }