diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2003-03-14 21:30:46 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2003-03-14 21:30:46 (GMT) |
commit | 98b37d9985ff3f2d38100fd2a86bc33627f278d9 (patch) | |
tree | a8bde0377917fea5943fec16e2b870ef819d5f9f | |
parent | cb3a46363200816c14cf59c396fd346233a1d50c (diff) | |
download | tk-98b37d9985ff3f2d38100fd2a86bc33627f278d9.zip tk-98b37d9985ff3f2d38100fd2a86bc33627f278d9.tar.gz tk-98b37d9985ff3f2d38100fd2a86bc33627f278d9.tar.bz2 |
Backport of the 'Message box buttons too wide' fix. [Bug #701812]
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | library/msgbox.tcl | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2003-03-14 Donal K. Fellows <fellowsd@cs.man.ac.uk> + + * library/msgbox.tcl (Tk::MessageBox): Stop buttons from being + very wide when a messageBox has a lot of content. [Bug #701812] + 2003-03-13 Don Porter <dgp@users.sourceforge.net> * tests/unixWm.test: Constrained all tests older than revision 1.21 diff --git a/library/msgbox.tcl b/library/msgbox.tcl index b943fb4..eb6fc35 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.24.2.1 2003/03/14 21:30:58 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 |