summaryrefslogtreecommitdiffstats
path: root/library/bgerror.tcl
diff options
context:
space:
mode:
authordas <das>2007-04-23 21:16:43 (GMT)
committerdas <das>2007-04-23 21:16:43 (GMT)
commit08dc1834b60a5b4659f48104a59a3b76608d6a61 (patch)
tree7e60574cc69f8e080f34339f6432bbe514851cde /library/bgerror.tcl
parent4ce60a28f8f98a1769b3324b231a20c4a125b99c (diff)
downloadtk-08dc1834b60a5b4659f48104a59a3b76608d6a61.zip
tk-08dc1834b60a5b4659f48104a59a3b76608d6a61.tar.gz
tk-08dc1834b60a5b4659f48104a59a3b76608d6a61.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/bgerror.tcl')
-rw-r--r--library/bgerror.tcl16
1 files changed, 13 insertions, 3 deletions
diff --git a/library/bgerror.tcl b/library/bgerror.tcl
index 30f0573..dcece7e 100644
--- a/library/bgerror.tcl
+++ b/library/bgerror.tcl
@@ -9,8 +9,8 @@
# Copyright (c) 1998-2000 by Ajuba Solutions.
# All rights reserved.
#
-# RCS: @(#) $Id: bgerror.tcl,v 1.32 2006/06/22 00:38:16 hobbs Exp $
-# $Id: bgerror.tcl,v 1.32 2006/06/22 00:38:16 hobbs Exp $
+# RCS: @(#) $Id: bgerror.tcl,v 1.33 2007/04/23 21:16:43 das Exp $
+# $Id: bgerror.tcl,v 1.33 2007/04/23 21:16:43 das Exp $
namespace eval ::tk::dialog::error {
namespace import -force ::tk::msgcat::*
@@ -18,6 +18,12 @@ namespace eval ::tk::dialog::error {
option add *ErrorDialog.function.text [mc "Save To Log"] \
widgetDefault
option add *ErrorDialog.function.command [namespace code SaveToLog]
+ if {[tk windowingsystem] eq "aqua"} {
+ option add *ErrorDialog*background systemAlertBackgroundActive \
+ widgetDefault
+ option add *ErrorDialog*Button.highlightBackground \
+ systemAlertBackgroundActive widgetDefault
+ }
}
proc ::tk::dialog::error::Return {} {
@@ -139,7 +145,7 @@ proc ::tk::dialog::error::bgerror err {
wm protocol .bgerrorDialog WM_DELETE_WINDOW { }
if {$windowingsystem eq "aqua"} {
- ::tk::unsupported::MacWindowStyle style .bgerrorDialog zoomDocProc
+ ::tk::unsupported::MacWindowStyle style .bgerrorDialog moveableAlert {}
}
frame .bgerrorDialog.bot
@@ -161,6 +167,9 @@ proc ::tk::dialog::error::bgerror err {
-relief $textRelief \
-highlightthickness $textHilight \
-wrap char
+ if {$windowingsystem eq "aqua"} {
+ $W.text configure -width 80 -background white
+ }
scrollbar $W.scroll -command [list $W.text yview]
pack $W.scroll -side right -fill y
@@ -218,6 +227,7 @@ proc ::tk::dialog::error::bgerror err {
if {($name eq "ok") || ($name eq "dismiss")} {
grid columnconfigure .bgerrorDialog.bot $i -minsize 79
}
+ grid configure .bgerrorDialog.$name -pady 7
}
incr i
}