summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXEvent.c
diff options
context:
space:
mode:
authorwolfsuit <wolfsuit>2003-09-30 23:26:09 (GMT)
committerwolfsuit <wolfsuit>2003-09-30 23:26:09 (GMT)
commit009ece320d1dad3ff4557d55b5859b4512d1660e (patch)
tree2bf36229932f41809c5d2fa5e9d3ca06f4818d08 /macosx/tkMacOSXEvent.c
parent89cb52358e92bd6496cf8068147b904a689dd870 (diff)
downloadtk-009ece320d1dad3ff4557d55b5859b4512d1660e.zip
tk-009ece320d1dad3ff4557d55b5859b4512d1660e.tar.gz
tk-009ece320d1dad3ff4557d55b5859b4512d1660e.tar.bz2
Add an implementation of XSync that flushes the window buffers. This fixes 814810.
Also use tk text drawing for checkbutton & radiobutton labels.
Diffstat (limited to 'macosx/tkMacOSXEvent.c')
-rw-r--r--macosx/tkMacOSXEvent.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/macosx/tkMacOSXEvent.c b/macosx/tkMacOSXEvent.c
index f0448e6..e426a8a 100644
--- a/macosx/tkMacOSXEvent.c
+++ b/macosx/tkMacOSXEvent.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXEvent.c,v 1.3 2003/02/19 19:27:46 wolfsuit Exp $
+ * RCS: @(#) $Id: tkMacOSXEvent.c,v 1.4 2003/09/30 23:26:09 wolfsuit Exp $
*/
#include <stdio.h>
@@ -73,6 +73,16 @@ tkMacOSXFlushWindows ()
}
}
+
+
+int
+XSync (Display *display, Bool flag)
+{
+ tkMacOSXFlushWindows();
+ display->request++;
+ return 0;
+}
+
/*
*----------------------------------------------------------------------
*