summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixSelect.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix use of XMaxTransChars in stead of TCL_UTF_MAX in some places. This ↵jan.nijtmans2016-08-311-2/+2
| | | | | should prevent possible buffer overflow when TCL_UTF_MAX=6 Micro-optimizations in tkEntry and ttkEntry
* Much more cleaning up of result handling.dkf2012-07-231-28/+44
|
* Working towards adding all the Tcl_SetErrorCode calls that should be there.dkf2012-07-161-25/+13
| | | ** WORK IN PROGRESS **
* Purge RCS Keywordsdgp2011-06-081-2/+0
|\
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * Backport of fixes for [Bug 1353414]dkf2005-11-221-98/+68
| | |
| * | Fix the transfer of large binary data. I hate INCR selections transfers...dkf2009-07-181-1/+3
| | |
| * | Apply patch from [Bug 2821962] to make binary byte selection transfers work.dkf2009-07-151-20/+54
| | |
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-7/+6
| | | | | | | | | using useful casts internally.
* | | Eliminate many unnecessary (ClientData) type casts.nijtmans2010-06-151-8/+8
| | |
* | | Fix some gcc strict-aliasing warnings (discovered with "-Wstrict-aliasing=2"nijtmans2010-05-261-29/+31
| | |
* | | A slightly more efficient placingdkf2009-07-181-3/+3
| | |
* | | Fix the transfer of large binary data. I hate INCR selections transfers...dkf2009-07-181-1/+3
| | |
* | | Apply patch from [Bug 2821962] to make binary byte selection transfers work.dkf2009-07-151-20/+54
| | |
* | | Lots of small changes to make code more pretty and C89-like.dkf2008-11-081-17/+17
|/ /
* | Fix more type pun warnings (those not found by my local version of GCC)dkf2007-05-031-3/+3
| |
* | Squelch some warnings from GCC.dkf2007-04-171-6/+6
| |
* | Less of that K&R or wrongly indented function header style!dkf2007-02-221-16/+15
| |
* | Oops! Very stupid typo.dkf2005-11-141-13/+16
| |
* | Quell warningdkf2005-11-131-2/+2
| |
* | Glurk, SelCvtToX was just as broken as SelCvtFromX when atoms contain spaces.dkf2005-11-131-45/+38
| |
* | Fix [Bug 1353414] by doing the list generation using standard Tcl utilities.dkf2005-11-131-54/+31
| | | | | | | | | | Also simplifies the code quite a bit (at the expense of an OUT parameter instead of a return value).
* | Whitespace/style/ANSI improvementsdkf2005-10-211-320/+307
| |
* | fix cast warningshobbs2004-03-161-3/+4
| |
* | * generic/tk3d.c: All uses of 'panic' (the macro) changeddavygrvy2004-01-131-4/+4
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkBind.c: to 'Tcl_Panic' (the function). The #define * generic/tkBitmap.c: of panic in tcl.h clearly states it is * generic/tkCanvArc.c: deprecated in the comments. * generic/tkCanvBmap.c: [Tcl Patch 865264] * generic/tkCanvImg.c: * generic/tkCanvLine.c: * generic/tkCanvPoly.c: * generic/tkCanvText.c: * generic/tkCanvWind.c: * generic/tkColor.c: * generic/tkConfig.c: * generic/tkCursor.c: * generic/tkError.c: * generic/tkEvent.c: * generic/tkFocus.c: * generic/tkFont.c: * generic/tkFrame.c: * generic/tkGC.c: * generic/tkGrid.c: * generic/tkImgBmap.c: * generic/tkImgPhoto.c: * generic/tkImgUtil.c: * generic/tkMenu.c: * generic/tkObj.c: * generic/tkPack.c: * generic/tkPlace.c: * generic/tkRectOval.c: * generic/tkSelect.c: * generic/tkText.c: * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkTextMark.c: * generic/tkTextWind.c: * generic/tkVisual.c: * generic/tkWindow.c: * mac/tkMacAppInit.c: * mac/tkMacAppearanceStubs.c: * mac/tkMacButton.c: * mac/tkMacDraw.c: * mac/tkMacEmbed.c: * mac/tkMacFont.c: * mac/tkMacInit.c: * mac/tkMacMenus.c: * mac/tkMacPort.h: * mac/tkMacSubwindows.c: * mac/tkMacWm.c: * mac/tkMacXStubs.c: * macosx/tkMacOSXEmbed.c: * macosx/tkMacOSXFont.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXNotify.c: * macosx/tkMacOSXPort.h: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXXStubs.c: * unix/tkUnix3d.c: * unix/tkUnixColor.c: * unix/tkUnixEmbed.c: * unix/tkUnixEvent.c: * unix/tkUnixFocus.c: * unix/tkUnixFont.c: * unix/tkUnixSelect.c: * unix/tkUnixSend.c: * unix/tkUnixWm.c: * win/tkWin3d.c: * win/tkWinButton.c: * win/tkWinColor.c: * win/tkWinDialog.c: * win/tkWinDraw.c: * win/tkWinEmbed.c: * win/tkWinFont.c: * win/tkWinPixmap.c: * win/tkWinPointer.c: * win/tkWinScrlbr.c: * win/tkWinWm.c: * win/tkWinX.c:
* Finally dealt with 614650 and with a simpler solution too.dkf2002-10-011-86/+7
|
* Incremental transfers of UTF8_STRING selections should now work; Tk will nowdkf2002-09-301-41/+120
| | | | | | tag them with the right size and only transfer complete UTF8 characters. Previously, things only worked when the transfer could only happen in one go, and even then not always. [Bug 614650, reported by Reinhard Max]
* Applied companion patch for Tcl Patch 585105,dgp2002-08-051-2/+2
| | | | | | | | | | | | | | | | | | | | | updating Tk to use Tcl 8.4's fully CONST-ified interface, and fully CONSTifying Tk at the same time. This patch includes purging Tk of its last direct access to interp->result. [Bug 589853] The substantial changes include copying event sequence strings into Tcl_DStrings in tkBind.c, and copying [text] indices into Tcl_DStrings because parsing them involved overwriting them. If this causes performance trouble, that can be resolved by further converting them to Tcl_Obj's. The #defines USE_NON_CONST and USE_COMPAT_CONST have the same effect for Tk as they do for Tcl. (They actually change tcl.h)
* * unix/tkUnixSelect.c (SelRcvIncrProc): added missing Tcl_Releasehobbs2002-04-121-1/+2
| | | | of interp
* * library/console.tcl:hobbs2001-07-031-3/+41
| | | | | | | | | | | | | | | | | | | | | * library/entry.tcl: * library/spinbox.tcl: * library/text.tcl: * library/tk.tcl: added private ::tk::GetSelection command to handle requesting selection. This is to support requesting UTF8_STRING before generic STRING on Unix. Changed Text, Spinbox, Entry and Console to use this command. * tests/select.test: * generic/tkSelect.c (Tk_CreateSelHandler, Tk_DeleteSelHandler): on Unix, a UTF8_STRING handler will be created when the user requests a STRING handler (in addition to the STRING handler). This provides implicit support for the new UTF8_STRING selection target. * unix/tkUnixSelect.c (TkSelEventProc, ConvertSelection): Added support for UTF8_STRING target. [RFE #418653, Patch #433283] * generic/tkInt.h: added utf8Atom to TkDisplay structure.
* * unix/tkUnixSelect.c:stanton1999-06-031-3/+13
| | | | | | * tests/unixSelect.test: * generic/tkSelect.c: Fixed selection code to handle Unicode data in COMPOUND_TEXT and STRING selections. [Bug: 1791]
* * unix/tkUnixSelect.c: Improved I18N selection support.stanton1999-06-011-94/+271
| | | | | | COMPOUND_TEXT is converted to/from iso2022, and STRING is converted to/from iso8859-1. There are still a few loose ends to tie up before this is completely done.
* First pass at Unicode support in X selection code.stanton1999-05-251-9/+122
|
* * Merged 8.1 branch into the main trunkstanton1999-04-161-34/+51
|
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-04-011-0/+1189