summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora_kovalenko <a_kovalenko>2002-06-06 01:09:41 (GMT)
committera_kovalenko <a_kovalenko>2002-06-06 01:09:41 (GMT)
commit88b2cdf2b50d1a7fae6ab9f3f1c5d5f46ada0985 (patch)
treeb76e18270154f6987dbbf6e326ca6c6324228fec
parentffa4d901dbca193fb74649d0766f51cc45eda915 (diff)
downloadtk-88b2cdf2b50d1a7fae6ab9f3f1c5d5f46ada0985.zip
tk-88b2cdf2b50d1a7fae6ab9f3f1c5d5f46ada0985.tar.gz
tk-88b2cdf2b50d1a7fae6ab9f3f1c5d5f46ada0985.tar.bz2
Make non-default buttons in messagebox have -default normal
-rw-r--r--ChangeLog8
-rw-r--r--library/msgbox.tcl4
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b8cfa16..1024fce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2002-06-06 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
+
+ * library/msgbox.tcl (MessageBox): Add -default normal
+ when creating non-default buttons for message box.
+ They already get -default normal when they're
+ unfocused, and dialog window size used to change suddenly
+ in such cases.
+
2002-06-05 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
* unix/tkUnixFont.c (Tk_DrawChars): Don't assume that
diff --git a/library/msgbox.tcl b/library/msgbox.tcl
index c40f753..2c6e476 100644
--- a/library/msgbox.tcl
+++ b/library/msgbox.tcl
@@ -3,7 +3,7 @@
# Implements messageboxes for platforms that do not have native
# messagebox support.
#
-# RCS: @(#) $Id: msgbox.tcl,v 1.16 2002/04/29 13:17:44 bagnonm Exp $
+# RCS: @(#) $Id: msgbox.tcl,v 1.17 2002/06/06 01:09:41 a_kovalenko Exp $
#
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
#
@@ -369,6 +369,8 @@ proc ::tk::MessageBox {args} {
if {[string equal $name $data(-default)]} {
$w.$name configure -default active
+ } else {
+ $w.$name configure -default normal
}
pack $w.$name -in $w.bot -side left -expand 1 -padx 3m -pady 2m