+2001-08-20 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * tkcon.tcl (EvalNamespace): fixed to work when attached to a
+ foreign interpreter. [Bug #453431]
+ Added fix that allows access to Tk privates in 8.4. Still needs
+ a long-term fix. [Bug #450865] (porter)
+
+2001-08-03 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * tkcon.tcl (EvalCmd): protected against non-existent
+ tkPriv(mouseMoved) variable
+
2001-07-05 Jeff Hobbs <jeffh@ActiveState.com>
* tkcon.tcl (RetrieveFilter, RetrieveAuthentication): added
}
catch {unset pkg file name version}
+# Tk 8.4 makes previously exposed stuff private.
+# FIX: Update tkcon to not rely on tje private Tk code.
+#
+if {![llength [info globals tkPriv]]} {
+ ::tk::unsupported::ExposePrivateVariable tkPriv
+}
+foreach cmd {SetCursor UpDownLine Transpose ScrollPages} {
+ if {![llength [info commands tkText$cmd]]} {
+ ::tk::unsupported::ExposePrivateCommand tkText$cmd
+ }
+}
+
# Initialize the ::tkcon namespace
#
namespace eval ::tkcon {
$w tag bind $tag <Leave> \
[list $w tag configure $tag -under 0]
$w tag bind $tag <ButtonRelease-1> \
- "if {!\$tkPriv(mouseMoved)} \
+ "if {!\[info exists tkPriv(mouseMoved)\] || !\$tkPriv(mouseMoved)} \
{[list edit -attach [Attach] -type error -- $PRIV(errorInfo)]}"
} else {
$w insert output $res\n stderr
##
proc ::tkcon::EvalNamespace { attached namespace args } {
if {[llength $args]} {
- uplevel \#0 $attached namespace eval [list $namespace $args]
+ uplevel \#0 $attached \
+ [list [concat [list namespace eval $namespace] $args]]
}
}