summaryrefslogtreecommitdiffstats
path: root/generic/tkUtil.c
diff options
context:
space:
mode:
authorericm <ericm>2000-04-19 23:11:23 (GMT)
committerericm <ericm>2000-04-19 23:11:23 (GMT)
commit442d04988d260a0d338a53d0a81b0f17e9a5c3e8 (patch)
tree481483144079a54f8c17455ab1c9b9efa085f46e /generic/tkUtil.c
parent981af3eaf3d7d2aac6fc833575521e05a925811c (diff)
downloadtk-442d04988d260a0d338a53d0a81b0f17e9a5c3e8.zip
tk-442d04988d260a0d338a53d0a81b0f17e9a5c3e8.tar.gz
tk-442d04988d260a0d338a53d0a81b0f17e9a5c3e8.tar.bz2
* doc/WinViewable.3:
* unix/mkLinks: Removed docs for Tk_IsViewable. * win/tkWinDialog.c: Removed calls to Tk_IsViewable. * generic/tkUtil.c: * generic/tkStubInit.c: * generic/tkDecls.h: * generic/tkCmds.c: * generic/tk.decls: Removed Tk_IsViewable function (it was not actually needed).
Diffstat (limited to 'generic/tkUtil.c')
-rw-r--r--generic/tkUtil.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/generic/tkUtil.c b/generic/tkUtil.c
index b677e03..99d1235 100644
--- a/generic/tkUtil.c
+++ b/generic/tkUtil.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkUtil.c,v 1.8 2000/04/18 02:18:33 ericm Exp $
+ * RCS: @(#) $Id: tkUtil.c,v 1.9 2000/04/19 23:11:24 ericm Exp $
*/
#include "tkInt.h"
@@ -951,37 +951,3 @@ TkFindStateNumObj(interp, optionPtr, mapPtr, keyPtr)
}
return mPtr->numKey;
}
-
-/*
- *----------------------------------------------------------------------
- *
- * Tk_IsViewable --
- *
- * Given a Tk_Window pointer, determine if that window is viewable.
- *
- * Results:
- * 1 if the window is viewable, 0 otherwise.
- *
- * Side effects:
- * None.
- *
- *----------------------------------------------------------------------
- */
-
-int
-Tk_IsViewable(tkwin)
- Tk_Window tkwin; /* Pointer to the window to examine */
-{
- TkWindow *winPtr = (TkWindow *)tkwin;
- int viewable = 0;
- for ( ; ; winPtr = winPtr->parentPtr) {
- if ((winPtr == NULL) || !(winPtr->flags & TK_MAPPED)) {
- break;
- }
- if (winPtr->flags & TK_TOP_LEVEL) {
- viewable = 1;
- break;
- }
- }
- return viewable;
-}