summaryrefslogtreecommitdiffstats
path: root/generic/tkPanedWindow.c
diff options
context:
space:
mode:
authorjenglish <jenglish@noemail.net>2003-08-19 21:00:42 (GMT)
committerjenglish <jenglish@noemail.net>2003-08-19 21:00:42 (GMT)
commitd2f61c13f622c5f8c6e2f5ac2249d48ffdbd316a (patch)
treeeb81c84c913746fcf02e2073ea561c04209838df /generic/tkPanedWindow.c
parent3b2c7785bca90bb7850c78f71a9176f8348a7f33 (diff)
downloadtk-d2f61c13f622c5f8c6e2f5ac2249d48ffdbd316a.zip
tk-d2f61c13f622c5f8c6e2f5ac2249d48ffdbd316a.tar.gz
tk-d2f61c13f622c5f8c6e2f5ac2249d48ffdbd316a.tar.bz2
* generic/tkPanedWindow.c(PanedWindowWorldChanged):
Set window background from the -background resource. Fixes [BUG #791500 "PanedWindow refresh glitches on X"] FossilOrigin-Name: d62683ea57dd77fcc75cec96b888c26dc0aee458
Diffstat (limited to 'generic/tkPanedWindow.c')
-rw-r--r--generic/tkPanedWindow.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c
index 873243c..a95514b 100644
--- a/generic/tkPanedWindow.c
+++ b/generic/tkPanedWindow.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkPanedWindow.c,v 1.16 2003/07/18 10:02:03 dkf Exp $
+ * RCS: @(#) $Id: tkPanedWindow.c,v 1.17 2003/08/19 21:00:43 jenglish Exp $
*/
#include "tkPort.h"
@@ -1224,7 +1224,7 @@ PanedWindowWorldChanged(instanceData)
/*
* Allocated a graphics context for drawing the paned window widget
- * elements (background, sashes, etc.).
+ * elements (background, sashes, etc.) and set the window background.
*/
gcValues.background = Tk_3DBorderColor(pwPtr->background)->pixel;
@@ -1233,6 +1233,7 @@ PanedWindowWorldChanged(instanceData)
Tk_FreeGC(pwPtr->display, pwPtr->gc);
}
pwPtr->gc = newGC;
+ Tk_SetWindowBackground(pwPtr->tkwin, gcValues.background);
/*
* Issue geometry size requests to Tk.