summaryrefslogtreecommitdiffstats
path: root/generic/tkPanedWindow.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-09-30 06:23:19 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-09-30 06:23:19 (GMT)
commitf3daa2b6bd7157f5b49e33c196f976baf649a3e2 (patch)
tree104c57a893077e5a0fc97d364236f3fa95e04f9f /generic/tkPanedWindow.c
parent7f3366e5e9ea3a96cb0efb0b6c9d3f5b70d97d5b (diff)
downloadtk-f3daa2b6bd7157f5b49e33c196f976baf649a3e2.zip
tk-f3daa2b6bd7157f5b49e33c196f976baf649a3e2.tar.gz
tk-f3daa2b6bd7157f5b49e33c196f976baf649a3e2.tar.bz2
Added -proxyborderwidth option
Diffstat (limited to 'generic/tkPanedWindow.c')
-rw-r--r--generic/tkPanedWindow.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c
index 96a4441..244eb09 100644
--- a/generic/tkPanedWindow.c
+++ b/generic/tkPanedWindow.c
@@ -148,6 +148,7 @@ typedef struct PanedWindow {
* off-screen pixmap onto screen. */
int proxyx, proxyy; /* Proxy x,y coordinates. */
Tk_3DBorder proxyBackground;/* Background color used to draw proxy. */
+ int proxyBorderWidth; /* Borderwidth used to draw proxy. */
int proxyRelief; /* Relief used to draw proxy. */
Slave **slaves; /* Pointer to array of Slaves. */
int numSlaves; /* Number of slaves. */
@@ -303,6 +304,9 @@ static const Tk_OptionSpec optionSpecs[] = {
{TK_OPTION_BORDER, "-proxybackground", "proxyBackground", "ProxyBackground",
DEF_PANEDWINDOW_BG_COLOR, -1, Tk_Offset(PanedWindow, proxyBackground), 0,
(ClientData) DEF_PANEDWINDOW_BG_MONO},
+ {TK_OPTION_PIXELS, "-proxyborderwidth", "proxyBorderWidth", "ProxyBorderWidth",
+ DEF_PANEDWINDOW_PROXYBORDERWIDTH, -1, Tk_Offset(PanedWindow, proxyBorderWidth),
+ 0, 0, GEOMETRY},
{TK_OPTION_RELIEF, "-proxyrelief", "proxyRelief", "Relief",
DEF_PANEDWINDOW_PROXYRELIEF, -1, Tk_Offset(PanedWindow, proxyRelief),
0, 0, 0},
@@ -2778,7 +2782,8 @@ DisplayProxyWindow(
*/
Tk_Fill3DRectangle(tkwin, pixmap, pwPtr->proxyBackground, 0, 0,
- Tk_Width(tkwin), Tk_Height(tkwin), 2, pwPtr->proxyRelief);
+ Tk_Width(tkwin), Tk_Height(tkwin), pwPtr->proxyBorderWidth,
+ pwPtr->proxyRelief);
#ifndef TK_NO_DOUBLE_BUFFERING
/*