summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-09-29 20:26:29 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-09-29 20:26:29 (GMT)
commit7f3366e5e9ea3a96cb0efb0b6c9d3f5b70d97d5b (patch)
treef61b48345499222426e1ffafb67510298b94acd9 /generic
parent939adaec382ce7257869e18efa3ab353edda0ed5 (diff)
downloadtk-7f3366e5e9ea3a96cb0efb0b6c9d3f5b70d97d5b.zip
tk-7f3366e5e9ea3a96cb0efb0b6c9d3f5b70d97d5b.tar.gz
tk-7f3366e5e9ea3a96cb0efb0b6c9d3f5b70d97d5b.tar.bz2
Added -proxybackground option
Diffstat (limited to 'generic')
-rw-r--r--generic/tkPanedWindow.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c
index c7d5339..96a4441 100644
--- a/generic/tkPanedWindow.c
+++ b/generic/tkPanedWindow.c
@@ -147,6 +147,7 @@ typedef struct PanedWindow {
GC gc; /* Graphics context for copying from
* off-screen pixmap onto screen. */
int proxyx, proxyy; /* Proxy x,y coordinates. */
+ Tk_3DBorder proxyBackground;/* Background color used to draw proxy. */
int proxyRelief; /* Relief used to draw proxy. */
Slave **slaves; /* Pointer to array of Slaves. */
int numSlaves; /* Number of slaves. */
@@ -299,6 +300,9 @@ static const Tk_OptionSpec optionSpecs[] = {
{TK_OPTION_STRING_TABLE, "-orient", "orient", "Orient",
DEF_PANEDWINDOW_ORIENT, -1, Tk_Offset(PanedWindow, orient),
0, (ClientData) orientStrings, GEOMETRY},
+ {TK_OPTION_BORDER, "-proxybackground", "proxyBackground", "ProxyBackground",
+ DEF_PANEDWINDOW_BG_COLOR, -1, Tk_Offset(PanedWindow, proxyBackground), 0,
+ (ClientData) DEF_PANEDWINDOW_BG_MONO},
{TK_OPTION_RELIEF, "-proxyrelief", "proxyRelief", "Relief",
DEF_PANEDWINDOW_PROXYRELIEF, -1, Tk_Offset(PanedWindow, proxyRelief),
0, 0, 0},
@@ -2773,7 +2777,7 @@ DisplayProxyWindow(
* Redraw the widget's background and border.
*/
- Tk_Fill3DRectangle(tkwin, pixmap, pwPtr->background, 0, 0,
+ Tk_Fill3DRectangle(tkwin, pixmap, pwPtr->proxyBackground, 0, 0,
Tk_Width(tkwin), Tk_Height(tkwin), 2, pwPtr->proxyRelief);
#ifndef TK_NO_DOUBLE_BUFFERING