summaryrefslogtreecommitdiffstats
path: root/generic/tkFrame.c
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2016-06-21 20:31:52 (GMT)
committerdgp@users.sourceforge.net <dgp>2016-06-21 20:31:52 (GMT)
commit10decae54035cd0bcb09f6e4bbf85a07f34b531e (patch)
tree82d3e32bcd659b76ac1ffc916de230baa73eaea3 /generic/tkFrame.c
parentf2faf766333327161c2092660b6f61e700eeff20 (diff)
downloadtk-10decae54035cd0bcb09f6e4bbf85a07f34b531e.zip
tk-10decae54035cd0bcb09f6e4bbf85a07f34b531e.tar.gz
tk-10decae54035cd0bcb09f6e4bbf85a07f34b531e.tar.bz2
work in progress
Diffstat (limited to 'generic/tkFrame.c')
-rw-r--r--generic/tkFrame.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/generic/tkFrame.c b/generic/tkFrame.c
index 057b4b8..f6edfb0 100644
--- a/generic/tkFrame.c
+++ b/generic/tkFrame.c
@@ -447,6 +447,30 @@ TkCreateFrame(
return result;
}
+int
+TkListCreateFrame(
+ ClientData clientData, /* Either NULL or pointer to option table. */
+ Tcl_Interp *interp, /* Current interpreter. */
+ Tcl_Obj *listObj, /* List of arguments. */
+ int toplevel, /* Non-zero means create a toplevel window,
+ * zero means create a frame. */
+ Tcl_Obj *nameObj) /* Should only be non-NULL if there is no main
+ * window associated with the interpreter.
+ * Gives the base name to use for the new
+ * application. */
+
+{
+ int objc;
+ Tcl_Obj **objv;
+
+ if (TCL_OK != Tcl_ListObjGetElements(interp, listObj, &objc, &objv)) {
+ return TCL_ERROR;
+ }
+ return CreateFrame(clientData, interp, objc, objv,
+ toplevel ? TYPE_TOPLEVEL : TYPE_FRAME,
+ nameObj ? Tcl_GetString(nameObj) : NULL);
+}
+
static int
CreateFrame(
ClientData clientData, /* NULL. */