diff options
author | jenglish <jenglish@flightlab.com> | 2008-02-23 17:35:27 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2008-02-23 17:35:27 (GMT) |
commit | 0c1706a93153b2af96989598d81c96c8ad692fb9 (patch) | |
tree | 430302e4141f7b2b894b2bf9d9d9a4cd71c48083 /generic | |
parent | 074cfc1ee76cbf657b93529afe7949fa231440c8 (diff) | |
download | tk-0c1706a93153b2af96989598d81c96c8ad692fb9.zip tk-0c1706a93153b2af96989598d81c96c8ad692fb9.tar.gz tk-0c1706a93153b2af96989598d81c96c8ad692fb9.tar.bz2 |
Don't enforce minimum sash thickness of 5 pixels, just use 5 as a default
[FR 1898288]
Diffstat (limited to 'generic')
-rw-r--r-- | generic/ttk/ttkPanedwindow.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/generic/ttk/ttkPanedwindow.c b/generic/ttk/ttkPanedwindow.c index 8c0244c..cac3d20 100644 --- a/generic/ttk/ttkPanedwindow.c +++ b/generic/ttk/ttkPanedwindow.c @@ -1,4 +1,4 @@ -/* $Id: ttkPanedwindow.c,v 1.13 2007/12/13 15:26:26 dgp Exp $ +/* $Id: ttkPanedwindow.c,v 1.14 2008/02/23 17:35:28 jenglish Exp $ * * Copyright (c) 2005, Joe English. Freely redistributable. * @@ -13,8 +13,6 @@ #include "ttkTheme.h" #include "ttkWidget.h" -#define MIN_SASH_THICKNESS 5 - /*------------------------------------------------------------------------ * +++ Layout algorithm. * @@ -570,11 +568,6 @@ static Ttk_Layout PanedGetLayout( } } - /* Sanity-check: - */ - if (pw->paned.sashThickness < MIN_SASH_THICKNESS) - pw->paned.sashThickness = MIN_SASH_THICKNESS; - return panedLayout; } @@ -899,6 +892,8 @@ static WidgetSpec PanedWidgetSpec = * +++ Elements and layouts. */ +static const int DEFAULT_SASH_THICKNESS = 5; + typedef struct { Tcl_Obj *thicknessObj; } SashElement; @@ -914,7 +909,7 @@ static void SashElementSize( int *widthPtr, int *heightPtr, Ttk_Padding *paddingPtr) { SashElement *sash = elementRecord; - int thickness = MIN_SASH_THICKNESS; + int thickness = DEFAULT_SASH_THICKNESS; Tcl_GetIntFromObj(NULL, sash->thicknessObj, &thickness); *widthPtr = *heightPtr = thickness; } |