diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-20 12:23:56 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-20 12:23:56 (GMT) |
commit | 72dea207ae279d05cfa07445b767e0efb4bb6702 (patch) | |
tree | ab880bbfe157359df231d47bd8a411c4f405cc03 /library/bgerror.tcl | |
parent | 851c442b53473d494521a4633e8d764cb5d5e45a (diff) | |
parent | 8077dd948e9d7c758be18837a1cc637007e50084 (diff) | |
download | tk-72dea207ae279d05cfa07445b767e0efb4bb6702.zip tk-72dea207ae279d05cfa07445b767e0efb4bb6702.tar.gz tk-72dea207ae279d05cfa07445b767e0efb4bb6702.tar.bz2 |
Use vroot size in stead of screen size for clipping window coordinates in ::tk::PlaceWindow.
Use ::tk::PlaceWindow in dialog.tcl, in stead of dumplicating the code there.
Diffstat (limited to 'library/bgerror.tcl')
-rw-r--r-- | library/bgerror.tcl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/bgerror.tcl b/library/bgerror.tcl index a9e7d30..0dc70cf 100644 --- a/library/bgerror.tcl +++ b/library/bgerror.tcl @@ -214,7 +214,9 @@ proc ::tk::dialog::error::bgerror err { bind $dlg <Destroy> [namespace code [list Destroy %W]] $dlg.function configure -command [namespace code Details] - # 6. Place the window (centered in the display) and deiconify it. + # 6. Withdraw the window, then update all the geometry information + # so we know how big it wants to be, then center the window in the + # display (Motif style) and de-iconify it. ::tk::PlaceWindow $dlg |