summaryrefslogtreecommitdiffstats
path: root/library/console.tcl
diff options
context:
space:
mode:
authorpatthoyts@users.sourceforge.net <patthoyts>2007-10-20 09:02:40 (GMT)
committerpatthoyts@users.sourceforge.net <patthoyts>2007-10-20 09:02:40 (GMT)
commit3846466c208f7e74170a51d82159bd552d0b5b07 (patch)
treeff869c77da2768bdb27961707e43cc8a70164b22 /library/console.tcl
parentf2be5c58a06101d1fe686821ad101fe0e2d49f28 (diff)
downloadtk-3846466c208f7e74170a51d82159bd552d0b5b07.zip
tk-3846466c208f7e74170a51d82159bd552d0b5b07.tar.gz
tk-3846466c208f7e74170a51d82159bd552d0b5b07.tar.bz2
On aqua, use tk scrollbar
Diffstat (limited to 'library/console.tcl')
-rw-r--r--library/console.tcl8
1 files changed, 6 insertions, 2 deletions
diff --git a/library/console.tcl b/library/console.tcl
index 9b9615b..3951c5a 100644
--- a/library/console.tcl
+++ b/library/console.tcl
@@ -4,7 +4,7 @@
# can be used by non-unix systems that do not have built-in support
# for shells.
#
-# RCS: @(#) $Id: console.tcl,v 1.32 2007/10/12 09:28:29 patthoyts Exp $
+# RCS: @(#) $Id: console.tcl,v 1.33 2007/10/20 09:02:40 patthoyts Exp $
#
# Copyright (c) 1995-1997 Sun Microsystems, Inc.
# Copyright (c) 1998-2000 Ajuba Solutions.
@@ -123,7 +123,11 @@ proc ::tk::ConsoleInit {} {
set con [text .console -yscrollcommand [list .sb set] -setgrid true \
-borderwidth 0 -highlightthickness 0 -font TkConsoleFont]
- ::ttk::scrollbar .sb -command [list $con yview]
+ if {[tk windowingsystem] eq "aqua"} {
+ scrollbar .sb -command [list $con yview]
+ } else {
+ ::ttk::scrollbar .sb -command [list $con yview]
+ }
pack .sb -in .consoleframe -fill both -side right -padx 1 -pady 1
pack $con -in .consoleframe -fill both -expand 1 -side left -padx 1 -pady 1
pack .consoleframe -fill both -expand 1 -side left