summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXXStubs.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-24 21:01:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-24 21:01:04 (GMT)
commitc2eaef98e73b309df7c2e262fc0c982a634d0f9d (patch)
tree358e45d71a9f62548cc8770fb3f2bb2a6bf30b81 /macosx/tkMacOSXXStubs.c
parentc1d2b9d95856fe913236eec23533b0bd522726d3 (diff)
downloadtk-c2eaef98e73b309df7c2e262fc0c982a634d0f9d.zip
tk-c2eaef98e73b309df7c2e262fc0c982a634d0f9d.tar.gz
tk-c2eaef98e73b309df7c2e262fc0c982a634d0f9d.tar.bz2
Add 7 X11 functions to the aqua stub table, which makes them accessable to stubbed extensions.
They were defined in tkMacOSXPort.h as macro's, which is not 'right'
Diffstat (limited to 'macosx/tkMacOSXXStubs.c')
-rw-r--r--macosx/tkMacOSXXStubs.c63
1 files changed, 62 insertions, 1 deletions
diff --git a/macosx/tkMacOSXXStubs.c b/macosx/tkMacOSXXStubs.c
index 63f5dba..d60c012 100644
--- a/macosx/tkMacOSXXStubs.c
+++ b/macosx/tkMacOSXXStubs.c
@@ -696,7 +696,7 @@ Tk_FreeXId(
int
XSync(
Display *display,
- Bool flag)
+ Bool discard)
{
TkMacOSXFlushWindows();
display->request++;
@@ -877,6 +877,67 @@ XCreateIC(XIM xim, ...)
return (XIC) 0;
}
+#undef XVisualIDFromVisual
+VisualID
+XVisualIDFromVisual(
+ Visual *visual)
+{
+ return visual->visualid;
+}
+
+#undef XSynchronize
+XAfterFunction
+XSynchronize(
+ Display *display,
+ Bool onoff)
+{
+ display->request++;
+ return NULL;
+}
+
+#undef XUngrabServer
+int
+XUngrabServer(
+ Display *display)
+{
+ return 0;
+}
+
+#undef XNoOp
+int
+XNoOp(
+ Display *display)
+{
+ display->request++;
+ return 0;
+}
+
+#undef XGrabServer
+int
+XGrabServer(
+ Display *display)
+{
+ return 0;
+}
+
+#undef XFree
+int
+XFree(
+ void *data)
+{
+ if ((data) != NULL) {
+ ckfree(data);
+ }
+ return 0;
+}
+#undef XFlush
+int
+XFlush(
+ Display *display)
+{
+ return 0;
+}
+
/*
*----------------------------------------------------------------------
*