From 0ddd7518115e5c1fd63e8b56a674493a4d89a065 Mon Sep 17 00:00:00 2001 From: jenglish Date: Tue, 19 Aug 2003 21:00:11 +0000 Subject: * generic/tkPanedWindow.c(PanedWindowWorldChanged): Set window background from the -background resource. Fixes [BUG #791500 "PanedWindow refresh glitches on X"] --- ChangeLog | 5 +++++ generic/tkPanedWindow.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a9f58f9..1536d67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-08-19 Joe English + * generic/tkPanedWindow.c(PanedWindowWorldChanged): + Set window background from the -background resource. + Fixes [BUG #791500 "PanedWindow refresh glitches on X"] + 2003-08-13 Pat Thoyts * library/scale.tcl: Fix for bug #787065 for Button-2 press. diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c index c0385af..07000c3 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.13.2.3 2003/07/18 09:53:16 dkf Exp $ + * RCS: @(#) $Id: tkPanedWindow.c,v 1.13.2.4 2003/08/19 21:00:13 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. -- cgit v0.12