window = XtWindow( (Widget) wxTheApp->GetTopWindow()->GetTopWidget() );
int success = XmClipboardRetrieve((Display*) wxGetDisplay(),
- window, "TEXT", (XtPointer) 0, 0, & numBytes, & privateId) ;
+ window, "TEXT(", (XtPointer) 0, 0, & numBytes, & privateId) ;
// Assume only text is supported. If we have anything at all,
// or the clipboard is locked so we're not sure, we say we support it.
XmClipboardCopy((Display*) wxGetDisplay(),
window,
itemId,
- "TEXT",
+ "TEXT(",
(XtPointer) data,
strlen(data) + 1,
0,
}
result = XmClipboardRetrieve((Display*) wxGetDisplay(),
window,
- "TEXT",
+ "TEXT(",
(XtPointer) data,
currentDataSize,
&numBytes,
// Only wxDF_TEXT supported
if (dataFormat == wxDF_TEXT)
{
- strcpy(formatName, "TEXT");
+ strcpy(formatName, "TEXT(");
return TRUE;
}
else
static int FormatStringToID(char *str)
{
- if (!strcmp(str, "TEXT"))
+ if (!strcmp(str, "TEXT("))
return wxDF_TEXT;
return wxRegisterClipboardFormat(str);
char *str;
long length;
- str = GetClipboardData("TEXT", &length, time);
+ str = GetClipboardData("TEXT(", &length, time);
if (!str) {
str = new char[1];
*str = 0;
else
return NULL;
} else if (cbString) {
- if (!strcmp(format, "TEXT"))
+ if (!strcmp(format, "TEXT("))
return copystring(cbString);
else
return NULL;