summaryrefslogtreecommitdiffstats
path: root/library/choosedir.tcl
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-11-25 15:58:15 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-11-25 15:58:15 (GMT)
commitc0223b885cb724c64ed47ceefc90b7f883a6b4df (patch)
tree94e28f5e7c4bfec4e5fc385c63c76afcf8b4c39a /library/choosedir.tcl
parent6eb066dce3cf16c8549b77e4ef664550bec72b33 (diff)
downloadtk-c0223b885cb724c64ed47ceefc90b7f883a6b4df.zip
tk-c0223b885cb724c64ed47ceefc90b7f883a6b4df.tar.gz
tk-c0223b885cb724c64ed47ceefc90b7f883a6b4df.tar.bz2
Fix bits that (should, and now do) refer to tk::IconList_CurSelection
Diffstat (limited to 'library/choosedir.tcl')
-rw-r--r--library/choosedir.tcl6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/choosedir.tcl b/library/choosedir.tcl
index 1a054bd..8403d97 100644
--- a/library/choosedir.tcl
+++ b/library/choosedir.tcl
@@ -5,7 +5,7 @@
# Copyright (c) 1998-2000 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: choosedir.tcl,v 1.17 2005/07/25 09:06:01 dkf Exp $
+# RCS: @(#) $Id: choosedir.tcl,v 1.18 2005/11/25 15:58:15 dkf Exp $
# Make sure the tk::dialog namespace, in which all dialogs should live, exists
namespace eval ::tk::dialog {}
@@ -201,7 +201,7 @@ proc ::tk::dialog::file::chooseDir::OkCmd {w} {
# 4b. If the value is different from the current directory, change to
# that directory.
- set selection [tk::IconList_Curselection $data(icons)]
+ set selection [tk::IconList_CurSelection $data(icons)]
if {[llength $selection] != 0} {
set iconText [tk::IconList_Get $data(icons) [lindex $selection 0]]
set iconText [file join $data(selectPath) $iconText]
@@ -239,7 +239,7 @@ proc ::tk::dialog::file::chooseDir::OkCmd {w} {
proc ::tk::dialog::file::chooseDir::DblClick {w} {
upvar ::tk::dialog::file::[winfo name $w] data
- set selection [tk::IconList_Curselection $data(icons)]
+ set selection [tk::IconList_CurSelection $data(icons)]
if {[llength $selection] != 0} {
set filenameFragment \
[tk::IconList_Get $data(icons) [lindex $selection 0]]