summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXButton.c
diff options
context:
space:
mode:
authorwolfsuit <wolfsuit@noemail.net>2003-09-30 23:26:08 (GMT)
committerwolfsuit <wolfsuit@noemail.net>2003-09-30 23:26:08 (GMT)
commit0e3c9ec58956d75ff4142c308baa32de917ee1b4 (patch)
tree2bf36229932f41809c5d2fa5e9d3ca06f4818d08 /macosx/tkMacOSXButton.c
parent8e617f3ad128cc97ad6bb91391fab1dbe2de4bd8 (diff)
downloadtk-0e3c9ec58956d75ff4142c308baa32de917ee1b4.zip
tk-0e3c9ec58956d75ff4142c308baa32de917ee1b4.tar.gz
tk-0e3c9ec58956d75ff4142c308baa32de917ee1b4.tar.bz2
Add an implementation of XSync that flushes the window buffers. This fixes 814810.
Also use tk text drawing for checkbutton & radiobutton labels. FossilOrigin-Name: d65fbe42b3353601615ae304e20fa1dd4c77c802
Diffstat (limited to 'macosx/tkMacOSXButton.c')
-rw-r--r--macosx/tkMacOSXButton.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c
index b84fa44..9c442bd 100644
--- a/macosx/tkMacOSXButton.c
+++ b/macosx/tkMacOSXButton.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXButton.c,v 1.5 2003/09/25 05:37:00 das Exp $
+ * RCS: @(#) $Id: tkMacOSXButton.c,v 1.6 2003/09/30 23:26:09 wolfsuit Exp $
*/
#include "tkButton.h"
@@ -223,7 +223,11 @@ TkpDisplayButton(
if (TkMacOSXComputeDrawParams(butPtr, &drawParams) ) {
macButtonPtr->usingControl=1;
- macButtonPtr->useTkText=DEFAULT_USE_TK_TEXT;
+ if (butPtr->type == TYPE_BUTTON) {
+ macButtonPtr->useTkText = 0;
+ } else {
+ macButtonPtr->useTkText = 1;
+ }
} else {
macButtonPtr->usingControl=0;
macButtonPtr->useTkText=1;