diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-07-24 08:33:36 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-07-24 08:33:36 (GMT) |
commit | 0744c5ec615420dd92bb75eeda9246d0919786c1 (patch) | |
tree | 9e1dfba4bbd2afe24d34c1416d837895e35f818a /macosx/tkMacOSXClipboard.c | |
parent | 22a0b0ed3f7f0da75210a6d854fc4a7703b3c640 (diff) | |
download | tk-0744c5ec615420dd92bb75eeda9246d0919786c1.zip tk-0744c5ec615420dd92bb75eeda9246d0919786c1.tar.gz tk-0744c5ec615420dd92bb75eeda9246d0919786c1.tar.bz2 |
Ttk and Aqua done
Diffstat (limited to 'macosx/tkMacOSXClipboard.c')
-rw-r--r-- | macosx/tkMacOSXClipboard.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/macosx/tkMacOSXClipboard.c b/macosx/tkMacOSXClipboard.c index 92d6590..07a8419 100644 --- a/macosx/tkMacOSXClipboard.c +++ b/macosx/tkMacOSXClipboard.c @@ -137,9 +137,11 @@ TkSelGetSelection( } result = proc(clientData, interp, string ? [string UTF8String] : ""); } else { - Tcl_AppendResult(interp, Tk_GetAtomName(tkwin, selection), - " selection doesn't exist or form \"", - Tk_GetAtomName(tkwin, target), "\" not defined", NULL); + Tcl_SetObjResult(interp, Tcl_ObjPrintf( + "%s selection doesn't exist or form \"%s\" not defined", + Tk_GetAtomName(tkwin, selection), + Tk_GetAtomName(tkwin, target))); + Tcl_SetErrorCode(interp, "TK", "SELECTION", "EXISTS", NULL); } return result; } |