diff options
author | vincentdarley <vincentdarley> | 2004-12-20 10:34:19 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2004-12-20 10:34:19 (GMT) |
commit | 305b4b22eef2f33fc2f65c97556123af3efdde37 (patch) | |
tree | f51e7f5db8a417f505089b9d7c91bafc34386c83 /macosx/tkMacOSXDialog.c | |
parent | ad8a25f00a1b5b9df12360a878f56a50d20c712e (diff) | |
download | tk-305b4b22eef2f33fc2f65c97556123af3efdde37.zip tk-305b4b22eef2f33fc2f65c97556123af3efdde37.tar.gz tk-305b4b22eef2f33fc2f65c97556123af3efdde37.tar.bz2 |
Corrected handling of MacOS filetypes in tk_*file dialogs
Diffstat (limited to 'macosx/tkMacOSXDialog.c')
-rw-r--r-- | macosx/tkMacOSXDialog.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/macosx/tkMacOSXDialog.c b/macosx/tkMacOSXDialog.c index 5845e4a..ebf66b2 100644 --- a/macosx/tkMacOSXDialog.c +++ b/macosx/tkMacOSXDialog.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXDialog.c,v 1.10 2004/05/24 21:21:50 dkf Exp $ + * RCS: @(#) $Id: tkMacOSXDialog.c,v 1.11 2004/12/20 10:34:20 vincentdarley Exp $ */ #include <Carbon/Carbon.h> @@ -323,8 +323,7 @@ Tk_GetOpenFileObjCmd( case OPEN_DEFAULT: break; case OPEN_FILETYPES: - choice = Tcl_GetStringFromObj(objv[i + 1], NULL); - if (TkGetFileFilters(interp, &ofd.fl, choice, 0) + if (TkGetFileFilters(interp, &ofd.fl, objv[i + 1], 0) != TCL_OK) { result = TCL_ERROR; goto end; |