summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-03-12 16:00:54 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-03-12 16:00:54 (GMT)
commit7d023718139986d6a52228299d1c68a78b09dab4 (patch)
tree4e2c504b2e84f99c60942932502499bbedb596ab
parent413da068905437f950c4f16ac5f0c699724fb5b4 (diff)
downloadtk-7d023718139986d6a52228299d1c68a78b09dab4.zip
tk-7d023718139986d6a52228299d1c68a78b09dab4.tar.gz
tk-7d023718139986d6a52228299d1c68a78b09dab4.tar.bz2
Better aesthetics for the messageBox. [Bug #701812]
-rw-r--r--ChangeLog6
-rw-r--r--library/msgbox.tcl6
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 3903402..21027ac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-03-12 Donal K. Fellows <fellowsd@cs.man.ac.uk>
+
+ * library/msgbox.tcl (tk::MessageBox): Stopped message box buttons
+ from getting very wide, and added some compensatory space so that
+ the smaller buttons still look nice (well, to me). [Bug #701812]
+
2003-03-11 Jim Ingham <jingham@apple.com>
* macosx/tkMacOSXMenu.c (EventuallyInvokeMenu): New function,
diff --git a/library/msgbox.tcl b/library/msgbox.tcl
index b943fb4..a9d895e 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.24 2003/02/21 14:40:26 dkf Exp $
+# RCS: @(#) $Id: msgbox.tcl,v 1.25 2003/03/12 16:01:02 dkf Exp $
#
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
#
@@ -342,7 +342,7 @@ proc ::tk::MessageBox {args} {
set opts [list -text $capName]
}
- eval [list tk::AmpWidget button $w.$name] $opts \
+ eval [list tk::AmpWidget button $w.$name -padx 3m] $opts \
[list -command [list set tk::Priv(button) $name]]
if {[string equal $name $data(-default)]} {
@@ -351,7 +351,7 @@ proc ::tk::MessageBox {args} {
$w.$name configure -default normal
}
grid $w.$name -in $w.bot -row 0 -column $i -padx 3m -pady 2m -sticky ew
- grid columnconfigure $w.bot $i -weight 1 -uniform buttons
+ grid columnconfigure $w.bot $i -uniform buttons
incr i
# create the binding for the key accelerator, based on the underline