summaryrefslogtreecommitdiffstats
path: root/generic/tkFrame.c
diff options
context:
space:
mode:
authorpspjuth <peter.spjuth@gmail.com>2011-04-04 19:40:21 (GMT)
committerpspjuth <peter.spjuth@gmail.com>2011-04-04 19:40:21 (GMT)
commit257f68b64daa01121d80bf4bdf9bfdadd30f997d (patch)
treead6c79725ba28c2253738259a18b9de2399834c6 /generic/tkFrame.c
parent2ddbd4ef22b8a849feab79bef67301fa85f2c5ea (diff)
downloadtk-257f68b64daa01121d80bf4bdf9bfdadd30f997d.zip
tk-257f68b64daa01121d80bf4bdf9bfdadd30f997d.tar.gz
tk-257f68b64daa01121d80bf4bdf9bfdadd30f997d.tar.bz2
[Bug 2997657]: Removed -container from labelframe
documentation since it does not work as expected and does not make sense as a container. Added note to frame about restrictions when used as a container.
Diffstat (limited to 'generic/tkFrame.c')
-rw-r--r--generic/tkFrame.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tkFrame.c b/generic/tkFrame.c
index ddf0b5a..da4e242 100644
--- a/generic/tkFrame.c
+++ b/generic/tkFrame.c
@@ -183,6 +183,10 @@ static const Tk_OptionSpec commonOptSpec[] = {
{TK_OPTION_STRING, "-colormap", "colormap", "Colormap",
DEF_FRAME_COLORMAP, -1, Tk_Offset(Frame, colormapName),
TK_OPTION_NULL_OK, 0, 0},
+ /*
+ * Having -container is useless in a labelframe since a container has
+ * no border. It should be deprecated.
+ */
{TK_OPTION_BOOLEAN, "-container", "container", "Container",
DEF_FRAME_CONTAINER, -1, Tk_Offset(Frame, isContainer), 0, 0, 0},
{TK_OPTION_CURSOR, "-cursor", "cursor", "Cursor",