8.3 is need for the file channels call.
be displayed when input is expected.
(GetSelection) new command to handle getting selection, this
supports the new UTF8_STRING type.
+ (InitMenus) added version check around Attach to Socket menu, as
+ 8.3 is need for the file channels call.
2001-05-28 Jeff Hobbs <jeffh@ActiveState.com>
menu $sub.name -disabledforeground $COLOR(disabled) -tearoff 0 \
-postcommand [list ::tkcon::NamespaceMenu $sub.name]
- ## Attach Socket Menu
- ##
- menu $sub.sock -disabledforeground $COLOR(disabled) -tearoff 0 \
- -postcommand [list ::tkcon::SocketMenu $sub.sock]
+ if {$::tcl_version >= 8.3} {
+ # This uses [file channels] to create the menu, so we only
+ # want it for newer versions of Tcl.
+
+ ## Attach Socket Menu
+ ##
+ menu $sub.sock -disabledforeground $COLOR(disabled) -tearoff 0 \
+ -postcommand [list ::tkcon::SocketMenu $sub.sock]
+ }
## Attach Display Menu
##