summaryrefslogtreecommitdiffstats
path: root/generic/tkEntry.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix [2100430]: ttk::entry widget index must be integerjan.nijtmans2013-06-051-2/+2
|\
| * Fix [2100430]: ttk::entry widget index must be integerjan.nijtmans2013-06-051-9/+2
| |
* | Eliminate all usage of functions Tcl_VarEval (deprecated) and Tcl_Eval (to ↵jan.nijtmans2013-03-071-2/+9
| | | | | | | | the prefered Tcl_EvalEx).
* | Revert [ac229dabaa]. There is a reason the Tcl_GetIndexFromObj wrapper jenglish2013-02-271-12/+12
| | | | | | exists and is used.
* | Eliminate all Tcl_GetIndexFromObj calls, which is only a thin wrapper around ↵jan.nijtmans2013-02-271-12/+12
| | | | | | | | Tcl_GetIndexFromObjStruct.
* | Replace all Tcl_TraceVar/Tcl_UntraceVar with Tcl_TraceVar2/Tcl_UntraceVar2 ↵jan.nijtmans2013-02-221-3/+3
| | | | | | | | calls: The former are just thin wrappers around the latter.
* | Use internalRep.twoPtrValue.ptr1 in stead of internalRep.otherValuePtr ↵jan.nijtmans2013-02-011-7/+7
|\ \ | |/ | | | | | | everywhere. Change some internal "length" variables from type int to type size_t, so it could handle bigger string sizes (for "novem")
| * SetOptions.3: minor doc fixjan.nijtmans2012-06-191-38/+38
| |\ | | | | | | | | | make various other tables const (all backported from Tk 8.6)
| | * SetOptions.3: minor doc fixjan.nijtmans2012-06-191-4/+4
| | | | | | | | | | | | make various other tables CONST (All backported from Tk 8.6)
| * | make some internal tables constjan.nijtmans2012-04-181-2/+2
| |\ \ | | |/
| | * make some more internal tables CONSTjan.nijtmans2012-04-181-2/+2
| | |
* | | Use some more (void *)'s in FreeProc's, a step in the direction getting Tk ↵jan.nijtmans2013-01-261-4/+4
| | | | | | | | | | | | to work with "novem"
* | | Replace various functions calls, for functions which are small wrappers ↵jan.nijtmans2013-01-141-10/+10
| | | | | | | | | | | | around other functions, to call the wrapped function directly.
* | | Much more cleaning up of result handling.dkf2012-07-231-34/+56
| | |
* | | Working towards adding all the Tcl_SetErrorCode calls that should be there.dkf2012-07-161-8/+8
| | | | | | | | | ** WORK IN PROGRESS **
* | | frq-3536507: clientData field in Tk_OptionSpec should be "const void *"frq_3536507jan.nijtmans2012-06-201-24/+24
| | |
* | | [Bug 3315731] Fix [$entry -invcmd].dgp2011-06-131-3/+5
| | |
* | | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * * generic/tkCanvas.c: allow -selectforeground option to be None; adddas2007-04-291-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkCanvText.c: fallback to fgColor when selFgColor is None * generic/tkEntry.c: (new default on aqua to match native L&F). * generic/tkListbox.c: * generic/tkText.c: * generic/tkCanvas.c: add support for bypassing all of Tk's double * generic/tkEntry.c: buffered drawing into intermediate pixmaps * generic/tkFrame.c: (via TK_NO_DOUBLE_BUFFERING #define), it is * generic/tkListbox.c: unnecessary & wasteful on aqua where all * generic/tkPanedWindow.c: drawing is already double-buffered by the * generic/tkTextDisp.c: window server. (Use of this on other * unix/tkUnixScale.c: platforms would only require implementation of TkpClipDrawableToRect()).
| | * * macosx/tkMacOSXColor.c (TkSetMacColor, TkpGetColor): use AppearanceMgrdas2006-09-101-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXDefault.h: to retrieve platform std colors for text * macosx/tkMacOSXPort.h: selections, add "systemHighlightSecondary" color name for standard color of inactive selections. * library/text.tcl (aqua): change focus bindings to implement platform standard look for inactive text selections using this new color. * generic/tkTextBTree.c (TkTextIsElided): on TkAqua, don't show text * generic/tkTextDisp.c (GetStyle): selection when text widget * generic/tkText.c (TextEventProc): is in disabled state. * generic/tkEntry.c (DisplayEntry): change default TkAqua selection * macosx/tkMacOSXDefault.h: relief to "flat" (platform std). * generic/tkText.c (Tk_TextCmd): fix bug leading to default text selection relief string DEF_TEXT_SELECT_RELIEF being ignored. * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): allow mouse event delivery to background windows with kWindowNoActivatesAttribute (e.g. overrideredirect windows), as these never come to the foreground they would not receive any mouse events otherwise. [Bug 1472624] * macosx/tkMacOSXWindowEvent.c (TkMacOSXGenerateFocusEvent): do not send focus events to any windows with kWindowNoActivatesAttribute. * macosx/tkMacOSXXStubs.c (XQueryColor, XQueryColors): implement basic XColor computation from pixel values, enough to make tkImg's window.c happy, fixes img::window failures reported on tcl-mac. * macosx/tkMacOSXMenu.c (DrawMenuEntryLabel): fix leak. [Bug 1554672] * macosx/Makefile: workaround bug in 'cp -pRH' on Darwin 6 and earlier, fixes 'make embedded' failure reported on tcl-mac; fix error from 'make deploy' with same build tree as previous 'make embedded'. * macosx/tkMacOSXEntry.c (TkpDrawEntryBorderAndFocus): fix typo. * unix/tcl.m4: sync with tcl/unix/tcl.m4.
| | * * generic/tkEntry.c: move hard-coded ALWAYS_SHOW_SELECTIONhobbs2006-09-061-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkInt.h: control of entry/text selection display * generic/tkText.c: based on focus to the Tcl level, * generic/tkTextBTree.c: controlled by ::tk::AlwaysShowSelection * generic/tkTextDisp.c: (boolean, private). [Bug 1553691] * generic/tkWindow.c: * library/tk.tcl * unix/tkUnixPort.h:
| | * Add native drawing for Entry and Spinbox widgets.wolfsuit2005-03-251-348/+157
| | |
* | | Bug 2358545: Restore support for values "08" and "09"in a spinbox configureddgp2011-06-071-5/+4
|\ \ \ | |/ / | | | to use -from and -to values.
| * | Bug 2358545: Restore support for values "08" and "09"in a [spinbox] configureddgp2011-06-071-5/+4
| | | | | | | | | to use -from and -to values.
| * | * tests/canvText.test: Backport test updates in light of thedgp2008-10-091-3/+3
| | | | | | | | | | | | | | | | | | | | | 2008-10-05 commit. * generic/tkEntry.c: Fix missing space constructing the scroll command.
| * | Backport of fix for [Bug 2112563]dkf2008-10-051-8/+14
| | |
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-16/+16
| | | | | | | | | using useful casts internally.
* | | Eliminate tkpMenubuttonClassnijtmans2010-01-131-2/+4
| | | | | | | | | | | | | | | make tkpButtonProcs CONST fix gcc warnings: missing initializer
* | | SMALL FIX: Remove useless explicit casts now that we require C89 or later.dkf2010-01-021-2/+2
| | |
* | | - eliminate some unnessary type castsnijtmans2009-02-031-10/+10
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | TIP 337dgp2008-12-091-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkBind.c: Updated callers of Tcl_BackgroundError() * generic/tkCanvas.c: to use the new routine * generic/tkEntry.c: Tcl_BackgroundException() as appropriate. * generic/tkImgBmap.c: * generic/tkListbox.c: * generic/tkSelect.c: * generic/tkTextDisp.c: * generic/tkTextWind.c: * macosx/tkMacOSXHLEvents.c: * macosx/tkMacOSXMenu.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXScale.c: * macosx/tkMacOSXWindowEvent.c: * unix/tkUnixScale.c: * unix/tkUnixWm.c: * win/tkWinButton.c: * win/tkWinMenu.c: * win/tkWinScrlbr.c: * win/tkWinWm.c:
* | | elminate warning: unused variable 'tkwin'nijtmans2008-11-271-6/+6
| | | | | | | | | | | | | | | Replace Tcl_SetResult(interp, NULL, ....) calls with Tcl_ResetResult(interp) everywhere
* | | More small changes to use C89 better and manage the result more efficiently.dkf2008-11-081-57/+43
| | |
* | | CONSTify TkPrintPadAmount, TkCreateFrame, TkCreateMainWindownijtmans2008-10-281-4/+4
| | | | | | | | | | | | | | | and Tk_ParseArgv. move TkSelGetSelection to internal stub table (needed in tkWinTest.c)
* | | Add "const" to many internalnijtmans2008-10-171-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries.
* | | removed bogus commentdkf2008-10-091-3/+3
| | |
* | | Greatly clean up Tk's handling of the writability of the Tcl result object.dkf2008-10-051-12/+8
| | |
* | | Convert %g to Tcl_PrintDouble to avoid locale trouble. [Bug 2112563]dkf2008-10-031-56/+61
| | |
* | | fix [2021443] inconsistant "wrong # args" messages (for Tk)nijtmans2008-07-231-41/+41
| | |
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-107/+109
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | Tidy up some variable types.patthoyts2007-11-171-3/+5
| |
* | Fix comments. (Thanks to Emiliano for spotting)dkf2007-05-241-3/+3
| |
* | * generic/tkCanvas.c: allow -selectforeground option to be None; adddas2007-04-231-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkCanvText.c: fallback to fgColor when selFgColor is None * generic/tkEntry.c: (new default on aqua to match native L&F). * generic/tkListbox.c: * generic/tkText.c: * generic/tkCanvas.c: add support for bypassing all of Tk's double * generic/tkEntry.c: buffered drawing into intermediate pixmaps * generic/tkFrame.c: (via TK_NO_DOUBLE_BUFFERING #define), it is * generic/tkListbox.c: unnecessary & wasteful on aqua where all * generic/tkPanedWindow.c: drawing is already double-buffered by the * generic/tkTextDisp.c: window server. (Use of this on other * generic/ttk/ttkWidget.c: platforms would only require implementation * unix/tkUnixScale.c: of TkpClipDrawableToRect()).
* | Eliminate use of (VOID*) casts when calling memset or memcpy.dkf2007-04-171-3/+3
| |
* | various "const" additions, in line with TIP #27nijtmans2007-01-031-3/+3
| |
* | * macosx/tkMacOSXColor.c (TkSetMacColor, TkpGetColor): use AppearanceMgrdas2006-09-101-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXDefault.h: to retrieve platform std colors for text * macosx/tkMacOSXPort.h: selections, add "systemHighlightSecondary" color name for standard color of inactive selections, use this color as default for text widget -inactiveselectbackground to implement platform standard look for inactive text selections. * library/text.tcl (aqua): remove focus bindings to set selection color. * generic/tkTextBTree.c (TkTextIsElided): on TkAqua, don't show inactive * generic/tkTextDisp.c (GetStyle): text selection when text widget is in disabled state. * generic/tkEntry.c (DisplayEntry): change default TkAqua selection * macosx/tkMacOSXDefault.h: relief to "flat" (platform std). * generic/tkText.c (CreateWidget): fix bug leading to default text selection relief string DEF_TEXT_SELECT_RELIEF being ignored. * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): allow mouse event delivery to background windows with kWindowNoActivatesAttribute (e.g. overrideredirect windows), as these never come to the foreground they would not receive any mouse events otherwise. [Bug 1472624] * macosx/tkMacOSXWindowEvent.c (TkMacOSXGenerateFocusEvent): do not send focus events to any windows with kWindowNoActivatesAttribute. * macosx/tkMacOSXXStubs.c (XQueryColor, XQueryColors): implement basic XColor computation from pixel values, enough to make tkImg's window.c happy, fixes img::window failures reported on tcl-mac. * macosx/tkMacOSXMenu.c (DrawMenuEntryLabel): fix leak. [Bug 1554672] * macosx/GNUmakefile: workaround bug in 'cp -pRH' on Darwin 6 and earlier, fixes 'make embedded' failure reported on tcl-mac; fix error from 'make deploy' with same build tree as previous 'make embedded'. * macosx/Wish.xcodeproj/project.pbxproj: add new tclUnixCompat.c file. * macosx/tkMacOSXEntry.c (TkpDrawEntryBorderAndFocus): fix typo. * unix/tcl.m4: sync with tcl/unix/tcl.m4. * unix/configure: autoconf-2.59
* | * generic/tkEntry.c: move hard-coded ALWAYS_SHOW_SELECTIONhobbs2006-09-061-12/+11
| | | | | | | | | | | | | | | | | | | | | | * generic/tkInt.h: control of entry/text selection display * generic/tkText.c: based on focus to the Tcl level, * generic/tkWindow.c: controlled by ::tk::AlwaysShowSelection * library/tk.tcl: (boolean, private). [Bug 1553691] * macosx/tkMacOSXDefault.h: * unix/tkUnixDefault.h: * unix/tkUnixPort.h: * win/tkWinDefault.h: