X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/31528cd3cac75558beef4bce0ba21fd182a808ab..eb4642a989aca1aa6c1291a73d43d1247961a234:/src/motif/utils.cpp diff --git a/src/motif/utils.cpp b/src/motif/utils.cpp index e4cdc74fea..094a3e8699 100644 --- a/src/motif/utils.cpp +++ b/src/motif/utils.cpp @@ -727,6 +727,10 @@ char wxFindMnemonic (const char *s) char * wxFindAccelerator (const char *s) { + // VZ: this function returns incorrect keysym which completely breaks kbd + // handling + return NULL; + // The accelerator text is after the \t char. while (*s && *s != '\t') s++; @@ -778,6 +782,10 @@ char * wxFindAccelerator (const char *s) XmString wxFindAcceleratorText (const char *s) { + // VZ: this function returns incorrect keysym which completely breaks kbd + // handling + return NULL; + // The accelerator text is after the \t char. while (*s && *s != '\t') s++; @@ -1126,8 +1134,11 @@ void wxAllocNearestColor(Display *d,Colormap cmp,XColor *xc) xc -> green = color_defs[pixel].green; xc -> blue = color_defs[pixel].blue; xc -> flags = DoRed | DoGreen | DoBlue; + +/* FIXME, TODO if (!XAllocColor(d,cmp,xc)) cout << "wxAllocNearestColor : Warning : Cannot find nearest color !\n"; +*/ delete[] color_defs; }