summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authordas <das>2007-03-07 23:49:38 (GMT)
committerdas <das>2007-03-07 23:49:38 (GMT)
commitd250337943e05b2476890c7855fa428fb12a29b4 (patch)
tree002fdaf1f1d1e38612d2e1dcc8ea54218e1f1aac /generic/ttk
parent3288ca4931072f874190455b686106df2d756cbd (diff)
downloadtk-d250337943e05b2476890c7855fa428fb12a29b4.zip
tk-d250337943e05b2476890c7855fa428fb12a29b4.tar.gz
tk-d250337943e05b2476890c7855fa428fb12a29b4.tar.bz2
revert premature commit
Diffstat (limited to 'generic/ttk')
-rw-r--r--generic/ttk/ttkWidget.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/generic/ttk/ttkWidget.c b/generic/ttk/ttkWidget.c
index 4562973..98992ce 100644
--- a/generic/ttk/ttkWidget.c
+++ b/generic/ttk/ttkWidget.c
@@ -1,4 +1,4 @@
-/* $Id: ttkWidget.c,v 1.5 2007/03/07 23:46:34 das Exp $
+/* $Id: ttkWidget.c,v 1.6 2007/03/07 23:49:38 das Exp $
* Copyright (c) 2003, Joe English
*
* Ttk widget implementation, core widget utilities.
@@ -10,10 +10,6 @@
#include "ttkTheme.h"
#include "ttkWidget.h"
-#ifdef MAC_OSX_TK
-#define TK_NO_DOUBLE_BUFFERING 1
-#endif
-
/*------------------------------------------------------------------------
* +++ Internal helper routines.
*/
@@ -62,17 +58,14 @@ static void RedisplayWidget(ClientData recordPtr)
WidgetCore *corePtr = (WidgetCore *)recordPtr;
Tk_Window tkwin = corePtr->tkwin;
Drawable d;
-#ifndef TK_NO_DOUBLE_BUFFERING
XGCValues gcValues;
GC gc;
-#endif
corePtr->flags &= ~REDISPLAY_PENDING;
if (!Tk_IsMapped(tkwin)) {
return;
}
-#ifndef TK_NO_DOUBLE_BUFFERING
/*
* Get a Pixmap for drawing in the background:
*/
@@ -86,9 +79,6 @@ static void RedisplayWidget(ClientData recordPtr)
gcValues.function = GXcopy;
gcValues.graphics_exposures = False;
gc = Tk_GetGC(corePtr->tkwin, GCFunction|GCGraphicsExposures, &gcValues);
-#else
- d = Tk_WindowId(tkwin);
-#endif
/*
* Recompute layout and draw widget contents:
@@ -96,7 +86,6 @@ static void RedisplayWidget(ClientData recordPtr)
corePtr->widgetSpec->layoutProc(recordPtr);
corePtr->widgetSpec->displayProc(recordPtr, d);
-#ifndef TK_NO_DOUBLE_BUFFERING
/*
* Copy to the screen.
*/
@@ -109,7 +98,6 @@ static void RedisplayWidget(ClientData recordPtr)
*/
Tk_FreePixmap(Tk_Display(tkwin), d);
Tk_FreeGC(Tk_Display(tkwin), gc);
-#endif
}
/* TtkRedisplayWidget --