X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gtk%2Fxboard.c;h=77eef841bda8421672363bb03c25bada33368b8e;hb=cddb5c485a52d0444e81b4df49e1fe921c78b53c;hp=44c998430e1d196cf06b7bc0dc9749969acbd15f;hpb=0d88b7c20af19de163b648898ec8d3ed4c31d796;p=xboard.git diff --git a/gtk/xboard.c b/gtk/xboard.c index 44c9984..77eef84 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -195,6 +195,7 @@ char *FindFont P((char *pattern, int targetPxlSize)); #endif void DelayedDrag P((void)); void ICSInputBoxPopUp P((void)); +void MoveTypeInProc P((GdkEventKey *eventkey)); gboolean KeyPressProc P((GtkWindow *window, GdkEventKey *eventkey, gpointer data)); Boolean TempBackwardActive = False; void DisplayMove P((int moveNumber)); @@ -368,12 +369,6 @@ String xboardResources[] = { }; #endif -/* Max possible square size */ -#define MAXSQSIZE 256 - -static int xpm_avail[MAXSQSIZE]; - - void BoardToTop () { @@ -793,7 +788,6 @@ main (int argc, char **argv) int boardWidth, boardHeight, w, h; char *p; int forceMono = False; - GError *gtkerror=NULL; srandom(time(0)); // [HGM] book: make random truly random @@ -1441,7 +1435,7 @@ static WindowPlacement wpNew; void CoDrag (GtkWidget *sh, WindowPlacement *wp) { - int j=0, touch=0, fudge = 2; + int touch=0, fudge = 2; GetActualPlacement(sh, wp); if(abs(wpMain.x + wpMain.width + 2*frameX - wp->x) < fudge) touch = 1; else // right touch if(abs(wp->x + wp->width + 2*frameX - wpMain.x) < fudge) touch = 2; else // left touch @@ -1807,12 +1801,6 @@ SetWindowTitle (char *text, char *title, char *icon) } -static int -NullXErrorCheck (Display *dpy, XErrorEvent *error_event) -{ - return 0; -} - void DisplayIcsInteractionTitle (String message) {