OSDN Git Service

* src/tkTable.tcl: Use "string compare" instead of "string
authorkseitz <kseitz>
Fri, 24 Aug 2001 15:32:08 +0000 (15:32 +0000)
committerkseitz <kseitz>
Fri, 24 Aug 2001 15:32:08 +0000 (15:32 +0000)
equal". The latter is only available in newer versions of
tcl.

libgui/ChangeLog
libgui/src/tkTable.tcl

index f55204d..a4cea2c 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-24  Keith Seitz  <keiths@redhat.com>
+
+       * src/tkTable.tcl: Use "string compare" instead of "string
+       equal". The latter is only available in newer versions of
+       tcl.
+
 2001-08-12  Mo DeJong  <mdejong@redhat.com>
 
        * src/tkCanvEdge.c: Work around Windows gcc problem
index 4083311..14ec7e6 100644 (file)
@@ -189,7 +189,7 @@ if {[string match "macintosh" $tcl_platform(platform)]} {
 # Results:
 #   Returns the selection, or an error if none could be found
 #
-if {[string equal $tcl_platform(platform) "unix"]} {
+if {[string compare $tcl_platform(platform) "unix"] == 0} {
     proc ::tk::table::GetSelection {w {sel PRIMARY}} {
        if {[catch {selection get -displayof $w -selection $sel \
                -type UTF8_STRING} txt] \