diff options
author | dgp <dgp@users.sourceforge.net> | 2006-01-25 18:22:04 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2006-01-25 18:22:04 (GMT) |
commit | 339966aea87195faf678c05a06895a0a2f9c65af (patch) | |
tree | 80bb0c008e169df663722d227f5f24bc18665bac /library/focus.tcl | |
parent | f59975d6eb39f7419c93e45392bab264f83ac352 (diff) | |
download | tk-339966aea87195faf678c05a06895a0a2f9c65af.zip tk-339966aea87195faf678c05a06895a0a2f9c65af.tar.gz tk-339966aea87195faf678c05a06895a0a2f9c65af.tar.bz2 |
* library/bgerror.tcl: Updates to use Tcl 8.4 features. [Patch 1237759] * library/choosedir.tcl:
* library/comdlg.tcl:
* library/console.tcl:
* library/dialog.tcl:
* library/focus.tcl:
* library/msgbox.tcl:
* library/palette.tcl:
* library/tk.tcl:
* library/tkfbox.tcl:
* library/xmfbox.tcl:
Diffstat (limited to 'library/focus.tcl')
-rw-r--r-- | library/focus.tcl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/focus.tcl b/library/focus.tcl index 5894e94..609a803 100644 --- a/library/focus.tcl +++ b/library/focus.tcl @@ -3,7 +3,7 @@ # This file defines several procedures for managing the input # focus. # -# RCS: @(#) $Id: focus.tcl,v 1.10 2005/07/25 09:06:00 dkf Exp $ +# RCS: @(#) $Id: focus.tcl,v 1.11 2006/01/25 18:22:04 dgp Exp $ # # Copyright (c) 1994-1995 Sun Microsystems, Inc. # @@ -130,14 +130,14 @@ proc ::tk_focusPrev w { proc ::tk::FocusOK w { set code [catch {$w cget -takefocus} value] - if {($code == 0) && ($value != "")} { + if {($code == 0) && ($value ne "")} { if {$value == 0} { return 0 } elseif {$value == 1} { return [winfo viewable $w] } else { set value [uplevel #0 $value [list $w]] - if {$value != ""} { + if {$value ne ""} { return $value } } |