diff options
author | das <das> | 2007-04-23 21:16:43 (GMT) |
---|---|---|
committer | das <das> | 2007-04-23 21:16:43 (GMT) |
commit | 621a481580aa29b835a6bde3b6f83469140f1f57 (patch) | |
tree | 7e60574cc69f8e080f34339f6432bbe514851cde /library/dialog.tcl | |
parent | 97873b5cca440eeaaf3787bc7d4fa5188b2510d3 (diff) | |
download | tk-621a481580aa29b835a6bde3b6f83469140f1f57.zip tk-621a481580aa29b835a6bde3b6f83469140f1f57.tar.gz tk-621a481580aa29b835a6bde3b6f83469140f1f57.tar.bz2 |
* library/bgerror.tcl: on aqua, use moveable alert resp. modal dialog
* library/dialog.tcl: window class and corresponding system
background pattern; fix button padding.
* library/tearoff.tcl: correct aqua menu bar height; vertically offset
* library/tk.tcl: aqua tearoff floating window to match menu.
Diffstat (limited to 'library/dialog.tcl')
-rw-r--r-- | library/dialog.tcl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/library/dialog.tcl b/library/dialog.tcl index e4a1ec5..44b89ec 100644 --- a/library/dialog.tcl +++ b/library/dialog.tcl @@ -3,7 +3,7 @@ # This file defines the procedure tk_dialog, which creates a dialog # box containing a bitmap, a message, and one or more buttons. # -# RCS: @(#) $Id: dialog.tcl,v 1.20 2006/01/25 18:22:04 dgp Exp $ +# RCS: @(#) $Id: dialog.tcl,v 1.21 2007/04/23 21:16:43 das Exp $ # # Copyright (c) 1992-1993 The Regents of the University of California. # Copyright (c) 1994-1997 Sun Microsystems, Inc. @@ -67,7 +67,10 @@ proc ::tk_dialog {w title text bitmap default args} { set windowingsystem [tk windowingsystem] if {$windowingsystem eq "aqua"} { - ::tk::unsupported::MacWindowStyle style $w dBoxProc + ::tk::unsupported::MacWindowStyle style $w moveableModal {} + option add *Dialog*background systemDialogBackgroundActive widgetDefault + option add *Dialog*Button.highlightBackground \ + systemDialogBackgroundActive widgetDefault } frame $w.bot @@ -120,6 +123,7 @@ proc ::tk_dialog {w title text bitmap default args} { if {$tmp eq "ok" || $tmp eq "cancel"} { grid columnconfigure $w.bot $i -minsize [expr {59 + 20}] } + grid configure $w.button$i -pady 7 } incr i } |