diff options
author | csaba <csaba> | 2024-04-25 17:12:50 (GMT) |
---|---|---|
committer | csaba <csaba> | 2024-04-25 17:12:50 (GMT) |
commit | cd36bc9bce33caf13401d72a8b8a29f67d125b2c (patch) | |
tree | 73d52a7c480a701bed27aae38e5a4c5f306f06f3 /generic | |
parent | 3b2e4549129a865722e1b2bf316406d860f0b679 (diff) | |
download | tk-cd36bc9bce33caf13401d72a8b8a29f67d125b2c.zip tk-cd36bc9bce33caf13401d72a8b8a29f67d125b2c.tar.gz tk-cd36bc9bce33caf13401d72a8b8a29f67d125b2c.tar.bz2 |
Minor cosmetic improvements in ttkDefaultTheme.c.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/ttk/ttkDefaultTheme.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/ttk/ttkDefaultTheme.c b/generic/ttk/ttkDefaultTheme.c index cfbe1f1..44fffa1 100644 --- a/generic/ttk/ttkDefaultTheme.c +++ b/generic/ttk/ttkDefaultTheme.c @@ -253,7 +253,7 @@ static const Ttk_ElementOptionSpec BorderElementOptions[] = { STRINGIFY(BORDERWIDTH) }, { "-relief", TK_OPTION_RELIEF, offsetof(BorderElement,reliefObj), "flat" }, - { NULL, TK_OPTION_BOOLEAN, 0, NULL } + { NULL, TK_OPTION_BOOLEAN, 0, NULL } }; static void BorderElementSize( @@ -1135,12 +1135,12 @@ static const Ttk_ElementOptionSpec SliderElementOptions[] = { "15" }, { "-sliderrelief", TK_OPTION_RELIEF, offsetof(SliderElement,reliefObj), "raised" }, - { "-borderwidth", TK_OPTION_PIXELS, offsetof(SliderElement,borderWidthObj), - STRINGIFY(BORDERWIDTH) }, { "-background", TK_OPTION_BORDER, offsetof(SliderElement,borderObj), DEFAULT_BACKGROUND }, { "-bordercolor", TK_OPTION_COLOR, offsetof(SliderElement,borderColorObj), "black" }, + { "-borderwidth", TK_OPTION_PIXELS, offsetof(SliderElement,borderWidthObj), + STRINGIFY(BORDERWIDTH) }, { "-orient", TK_OPTION_ANY, offsetof(SliderElement,orientObj), "horizontal" }, { NULL, TK_OPTION_BOOLEAN, 0, NULL } @@ -1159,8 +1159,8 @@ static void SliderElementSize( int thickness, borderWidth; TtkGetOrientFromObj(NULL, slider->orientObj, &orient); - Tk_GetPixelsFromObj(NULL, tkwin, slider->borderWidthObj, &borderWidth); Tk_GetPixelsFromObj(NULL, tkwin, slider->thicknessObj, &thickness); + Tk_GetPixelsFromObj(NULL, tkwin, slider->borderWidthObj, &borderWidth); switch (orient) { case TTK_ORIENT_VERTICAL: @@ -1239,8 +1239,8 @@ static void TreeitemIndicatorSize( int diameter = 0; Ttk_Padding margins; - Ttk_GetPaddingFromObj(NULL, tkwin, indicator->marginObj, &margins); Tk_GetPixelsFromObj(NULL, tkwin, indicator->sizeObj, &diameter); + Ttk_GetPaddingFromObj(NULL, tkwin, indicator->marginObj, &margins); *widthPtr = diameter + Ttk_PaddingWidth(margins); *heightPtr = diameter + Ttk_PaddingHeight(margins); } |