diff options
author | ericm <ericm@noemail.net> | 2000-04-19 23:11:23 (GMT) |
---|---|---|
committer | ericm <ericm@noemail.net> | 2000-04-19 23:11:23 (GMT) |
commit | a074f4d1d5a5b5fcd565a039022a421465242ce2 (patch) | |
tree | 481483144079a54f8c17455ab1c9b9efa085f46e /win/tkWinDialog.c | |
parent | d59489bdac532e0b71027d192419cd0be358e617 (diff) | |
download | tk-a074f4d1d5a5b5fcd565a039022a421465242ce2.zip tk-a074f4d1d5a5b5fcd565a039022a421465242ce2.tar.gz tk-a074f4d1d5a5b5fcd565a039022a421465242ce2.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).
FossilOrigin-Name: e6573914e2482a3c4a9f0cdfc307d2412ee6c8ee
Diffstat (limited to 'win/tkWinDialog.c')
-rw-r--r-- | win/tkWinDialog.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c index c4a2bd8..a378313 100644 --- a/win/tkWinDialog.c +++ b/win/tkWinDialog.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinDialog.c,v 1.9 2000/04/18 02:18:34 ericm Exp $ + * RCS: @(#) $Id: tkWinDialog.c,v 1.10 2000/04/19 23:11:24 ericm Exp $ * */ @@ -270,11 +270,8 @@ Tk_ChooseColorObjCmd(clientData, interp, objc, objv) Tk_MakeWindowExist(parent); chooseColor.hwndOwner = NULL; - hWnd = NULL; - if (Tk_IsViewable(parent)) { - hWnd = Tk_GetHWND(Tk_WindowId(parent)); - chooseColor.hwndOwner = hWnd; - } + hWnd = Tk_GetHWND(Tk_WindowId(parent)); + chooseColor.hwndOwner = hWnd; oldMode = Tcl_SetServiceMode(TCL_SERVICE_ALL); winCode = ChooseColor(&chooseColor); @@ -1706,10 +1703,7 @@ Tk_MessageBoxObjCmd(clientData, interp, objc, objv) } Tk_MakeWindowExist(parent); - hWnd = NULL; - if ( Tk_IsViewable(parent) ) { - hWnd = Tk_GetHWND(Tk_WindowId(parent)); - } + hWnd = Tk_GetHWND(Tk_WindowId(parent)); flags = 0; if (defaultBtn >= 0) { |