summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-17 15:36:49 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-17 15:36:49 (GMT)
commit250217d618d22baf0222a0f7fa837f0aab916608 (patch)
treef084dccfdab8c3bd2904d1ea4add015f7150b00f /generic
parent862f1a276482cc4ca6bf3d1f03709ab1e270c349 (diff)
downloadtk-250217d618d22baf0222a0f7fa837f0aab916608.zip
tk-250217d618d22baf0222a0f7fa837f0aab916608.tar.gz
tk-250217d618d22baf0222a0f7fa837f0aab916608.tar.bz2
(minor) Add missing initializer, and two /* FALLTHRU */ markers.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkPanedWindow.c2
-rw-r--r--generic/ttk/ttkFrame.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c
index 80ddb33..ac61ba8 100644
--- a/generic/tkPanedWindow.c
+++ b/generic/tkPanedWindow.c
@@ -304,7 +304,7 @@ static const Tk_OptionSpec optionSpecs[] = {
0, orientStrings, GEOMETRY},
{TK_OPTION_BORDER, "-proxybackground", "proxyBackground", "ProxyBackground",
0, -1, Tk_Offset(PanedWindow, proxyBackground), TK_OPTION_NULL_OK,
- (ClientData) DEF_PANEDWINDOW_BG_MONO},
+ (ClientData) DEF_PANEDWINDOW_BG_MONO, 0},
{TK_OPTION_PIXELS, "-proxyborderwidth", "proxyBorderWidth", "ProxyBorderWidth",
DEF_PANEDWINDOW_PROXYBORDER, Tk_Offset(PanedWindow, proxyBorderWidthPtr),
Tk_Offset(PanedWindow, proxyBorderWidth), 0, 0, GEOMETRY},
diff --git a/generic/ttk/ttkFrame.c b/generic/ttk/ttkFrame.c
index 3e50a7f..8a15e5b 100644
--- a/generic/ttk/ttkFrame.c
+++ b/generic/ttk/ttkFrame.c
@@ -440,8 +440,10 @@ static void LabelframeDoLayout(void *recordPtr)
*/
switch (LabelAnchorSide(style.labelAnchor)) {
case TTK_SIDE_LEFT: borderParcel.x -= lw / 2;
+ /* FALLTHRU */
case TTK_SIDE_RIGHT: borderParcel.width += lw/2; break;
case TTK_SIDE_TOP: borderParcel.y -= lh / 2;
+ /* FALLTHRU */
case TTK_SIDE_BOTTOM: borderParcel.height += lh / 2; break;
}
}