summaryrefslogtreecommitdiffstats
path: root/library/bgerror.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-20 12:27:15 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-20 12:27:15 (GMT)
commit48618f68cf19963ba025756c77672298c47b804c (patch)
tree67282c401e49141494e4c57d279601278e19b21c /library/bgerror.tcl
parent29090f7e122f08f970ad2970f6fedb5fd681192c (diff)
parent72dea207ae279d05cfa07445b767e0efb4bb6702 (diff)
downloadtk-48618f68cf19963ba025756c77672298c47b804c.zip
tk-48618f68cf19963ba025756c77672298c47b804c.tar.gz
tk-48618f68cf19963ba025756c77672298c47b804c.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.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/bgerror.tcl b/library/bgerror.tcl
index 65e7209..3b21d4c 100644
--- a/library/bgerror.tcl
+++ b/library/bgerror.tcl
@@ -220,7 +220,9 @@ proc ::tk::dialog::error::bgerror err {
bind $dlg.function <Return> [namespace code {ReturnInDetails %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