summaryrefslogtreecommitdiffstats
path: root/library/dialog.tcl
diff options
context:
space:
mode:
authormdejong <mdejong@noemail.net>2002-06-12 23:08:11 (GMT)
committermdejong <mdejong@noemail.net>2002-06-12 23:08:11 (GMT)
commitcc209eb341bb8bd722785684980184cc5d1eafcc (patch)
tree63c9432dfc34ae837dc633748cf0a09e8dcef2ea /library/dialog.tcl
parent78abb33b06046f81f7e55a3ce12c065240ead8d7 (diff)
downloadtk-cc209eb341bb8bd722785684980184cc5d1eafcc.zip
tk-cc209eb341bb8bd722785684980184cc5d1eafcc.tar.gz
tk-cc209eb341bb8bd722785684980184cc5d1eafcc.tar.bz2
* library/choosedir.tcl (tk::dialog::file::chooseDir):
* library/clrpick.tcl (tk::dialog::color): * library/dialog.tcl (tk_dialog): * library/msgbox.tcl (tk::MessageBox): * library/tkfbox.tcl (tk::dialog::file): * library/xmfbox.tcl (tk::MotifFDialog_Create): Only make the dialog window a transient if the master is visible. This check already appeared in some of the dialogs. This patch just copies the check into those that were lacking. FossilOrigin-Name: 627fc4dfc42deeb3dc0a7098e4b91919e6ba543d
Diffstat (limited to 'library/dialog.tcl')
-rw-r--r--library/dialog.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/dialog.tcl b/library/dialog.tcl
index db47e83..8afcdfb 100644
--- a/library/dialog.tcl
+++ b/library/dialog.tcl
@@ -3,7 +3,7 @@
# This file defines the procedure tk_dialog, which creates a dialog
# box containing a bitmap, a message, and one or more buttons.
#
-# RCS: @(#) $Id: dialog.tcl,v 1.12 2001/08/22 01:25:33 hobbs Exp $
+# RCS: @(#) $Id: dialog.tcl,v 1.13 2002/06/12 23:08:12 mdejong Exp $
#
# Copyright (c) 1992-1993 The Regents of the University of California.
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
@@ -61,7 +61,7 @@ proc ::tk_dialog {w title text bitmap default args} {
# window, this can hang the entire application. Therefore we only make
# the dialog transient if the parent is viewable.
#
- if { [winfo viewable [winfo toplevel [winfo parent $w]]] } {
+ if {[winfo viewable [winfo toplevel [winfo parent $w]]] } {
wm transient $w [winfo toplevel [winfo parent $w]]
}