summaryrefslogtreecommitdiffstats
path: root/library/tk.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-14 15:45:33 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-14 15:45:33 (GMT)
commit83514ebcf9336a0ee9330bdfa93a39de39ac6b54 (patch)
treee6d4a3cdd8f88d2e908e0c42ece5a667d218773f /library/tk.tcl
parent7cfd623dc5324f153717a00faa7c3e080811bcbb (diff)
downloadtk-83514ebcf9336a0ee9330bdfa93a39de39ac6b54.zip
tk-83514ebcf9336a0ee9330bdfa93a39de39ac6b54.tar.gz
tk-83514ebcf9336a0ee9330bdfa93a39de39ac6b54.tar.bz2
Add quotes to the "processing * option" error-messages, for consistancy. Some indenting fixes
Diffstat (limited to 'library/tk.tcl')
-rw-r--r--library/tk.tcl50
1 files changed, 25 insertions, 25 deletions
diff --git a/library/tk.tcl b/library/tk.tcl
index 27fa1de..7153974 100644
--- a/library/tk.tcl
+++ b/library/tk.tcl
@@ -18,28 +18,28 @@ namespace eval ::tk {
# Set up the msgcat commands
namespace eval msgcat {
namespace export mc mcmax
- if {[interp issafe] || [catch {package require msgcat}]} {
- # The msgcat package is not available. Supply our own
- # minimal replacement.
- proc mc {src args} {
- return [format $src {*}$args]
- }
- proc mcmax {args} {
- set max 0
- foreach string $args {
- set len [string length $string]
- if {$len>$max} {
- set max $len
- }
- }
- return $max
- }
- } else {
- # Get the commands from the msgcat package that Tk uses.
- namespace import ::msgcat::mc
- namespace import ::msgcat::mcmax
- ::msgcat::mcload [file join $::tk_library msgs]
- }
+ if {[interp issafe] || [catch {package require msgcat}]} {
+ # The msgcat package is not available. Supply our own
+ # minimal replacement.
+ proc mc {src args} {
+ return [format $src {*}$args]
+ }
+ proc mcmax {args} {
+ set max 0
+ foreach string $args {
+ set len [string length $string]
+ if {$len>$max} {
+ set max $len
+ }
+ }
+ return $max
+ }
+ } else {
+ # Get the commands from the msgcat package that Tk uses.
+ namespace import ::msgcat::mc
+ namespace import ::msgcat::mcmax
+ ::msgcat::mcload [file join $::tk_library msgs]
+ }
}
namespace import ::tk::msgcat::*
}
@@ -498,7 +498,7 @@ switch -exact -- [tk windowingsystem] {
if {$::tk_library ne ""} {
proc ::tk::SourceLibFile {file} {
- namespace eval :: [list source -encoding utf-8 [file join $::tk_library $file.tcl]]
+ namespace eval :: [list source -encoding utf-8 [file join $::tk_library $file.tcl]]
}
namespace eval ::tk {
SourceLibFile icons
@@ -724,8 +724,8 @@ if {[tk windowingsystem] eq "aqua"} {
#This procedure is required to silence warnings generated
#by inline AppleScript execution.
proc ::tk::mac::GetDynamicSdef {} {
- puts ""
- }
+ puts ""
+ }
}
if {[info commands ::tk::endOfWord] eq ""} {