{
gchar *text=NULL;
GtkClipboard *cb;
- guint len=0;
+ guint len=0; int flip = appData.flipView;
FILE* f;
// get game from clipboard
fclose(f);
// load from file
+ if(!appData.autoFlipView) appData.flipView = flipView;
LoadGameFromFile(gamePasteFilename, 0, gamePasteFilename, TRUE);
+ appData.flipView = flip;
return;
}
{\r
FILE *f;\r
size_t len;\r
+ int flip = appData.flipView;\r
if (!pasteTemp) {\r
pasteTemp = tempnam(NULL, "wbpt");\r
}\r
free(buf); /* [AS] */\r
return;\r
}\r
+ if(!appData.auto\r
+ if(!appData.autoFlipView) appData.flipView = flipView;\r
LoadGameFromFile(pasteTemp, 0, "Clipboard", TRUE);\r
+ appData.flipView = flip;\r
free( buf ); /* [AS] */\r
}\r
\r
Atom *type, XtPointer value, unsigned long *len, int *format)
{
FILE* f;
+ int flip = appData.flipView;
if (value == NULL || *len == 0) {
return; /* nothing had been selected to copy */
}
fwrite(value, 1, *len, f);
fclose(f);
XtFree(value);
+ if(!appData.autoFlipView) appData.flipView = flipView;
LoadGameFromFile(gamePasteFilename, 0, gamePasteFilename, TRUE);
+ appData.flipView = flip;
}
/* called when Paste Game button is pressed,