summaryrefslogtreecommitdiffstats
path: root/generic/tkEntry.c
Commit message (Collapse)AuthorAgeFilesLines
* (cherry-pick) Fix [2049429]: Some options aren't picked up from the options ↵jan.nijtmans2016-01-121-13/+12
| | | | database.
* Fixed bug [793909] - Problem with nonexistent namespacesbug_793909ffffvogel2015-12-121-6/+32
|
* Updated header comments of EntryValueChanged, InsertChars and DeleteChars ↵bug_1700065ffffvogel2015-12-121-3/+6
| | | | since they now return a Tcl result
* Fixed bug [1700065] - error in trace proc on textvariable doesn't trigger ↵fvogel2015-12-101-26/+62
| | | | bgerror
* Fixed bug [1414025] - Thin insertion cursor not visible in entrybug_1414025fvogel2015-10-201-1/+1
|
* [2b6778efe8] handle sscanf() EOF errors.dgp2015-02-061-2/+2
|
* Fix [2100430]: ttk::entry widget index must be integerjan.nijtmans2013-06-051-9/+2
|
* 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
| |
* | 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.
* | * 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
| |
* | 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:
* | Lots of ANSIfying of function decls.dkf2005-11-171-265/+239
| | | | | | | | Also a few spots where code has been cleaned up more completely.
* | Getting more systematic about styledkf2005-08-101-1500/+1473
| | | | | | | | | | Also start removing _ANSI_ARGS_; the core's required ANSI C for a while now Also fix [Bug 1252702]; size_t doesn't mix with Tcl_GetStringFromObj
* | Syntax/Style Guide fixesdgp2005-03-241-3/+8
| |
* | Get the Entry and Spinbox widgets to draw with the native look & feel onwolfsuit2005-03-241-348/+152
|/ | | | | | Mac OS X. Also contains some more work on tkMacOSXScale.c, but this doesn't work all the way yet, so it's not currently built.
* * generic/tkEntry.c (SpinboxWidgetObjCmd, EntryWidgetObjCmd):hobbs2003-02-251-13/+14
| | | | | | | * tests/entry.test: return 1 if selection is present even if * tests/spinbox.test: entry/spinbox is disabled, as selection get will still return the selection (although selection still ignore modify requests when entry/spinbox is disabled). [Bug #637828]
* (EntrySetValue): removed unused code var. [Bug #664781]hobbs2003-02-181-3/+3
|
* * generic/tkEntry.c (ConfigureEntry): keep a flag to indicate whenhobbs2002-12-091-8/+16
| | | | | a var is traced to prevent double-traces caused by configuring the widget in traces with validation on. (dejong)
* * tests/entry.test: added entry-20.7hobbs2002-10-021-1/+8
| | | | | | * generic/tkEntry.c (EntryTextVarProc): check if the entry if being deleted before handling an associated textvariable. [Bug #607390 #617446]
* Applied companion patch for Tcl Patch 585105,dgp2002-08-051-4/+4
| | | | | | | | | | | | | | | | | | | | | 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)
* * tests/spinbox.test: added spinbox-22.[1-3]hobbs2002-07-251-15/+24
| | | | | | * generic/tkEntry.c (ConfigureEntry): made the textvariable value take precedence over changed -from/-to values, unless it must be constrained. [Bug #559078]
* * generic/tkEntry.c (DisplayEntry): correct cursor position beforehobbs2002-07-241-3/+3
| | | | calling Tk_SetCaretPos. (yamamoto)
* * win/tkWinButton.c (TkpDisplayButton):hobbs2002-04-051-16/+19
| | | | | | * generic/tkTextMark.c (TkTextInsertDisplayProc): * generic/tkCanvText.c (DisplayCanvText): * generic/tkEntry.c (DisplayEntry): added Tk_SetCaretPos calls.
* * Updates to handle change in type of part2 argument ofdgp2002-03-201-3/+3
| | | | Tcl_VarTraceProc typedef. [TIP 27] [Patch 532644].
* * Updated callers of Tcl_SplitList and Tcl_Merge.dgp2002-01-251-39/+46
| | | | | | | | | * Updated callers of Tcl_GetStringResult. Rewrote PrintScrollFractions to ScrollFractions to stop scribbling directly on interp->result. * Updated callers of Tcl_GetVar, Tcl_GetVar2 * Updated callers of Tcl_SplitPath, Tcl_JoinPath, and Tcl_TranslateFileName.
* * Updates to handle change in type of tablePtrdgp2002-01-171-10/+10
| | | | | argument of Tcl_GetIndexFromObj(Struct) from (char **) to (CONST char **). [TIP 27] [Patch 504705]
* * Updated callers of Tcl_Utf* and Tcl_Regexp* APIs to reflect TIP 27dgp2002-01-171-5/+7
| | | | API changes (see Tcl Patch 471509). [Patch 471513]
* * generic/tkWindow.c (Tk_CreateAnonymousWindow):hobbs2001-09-211-3/+1
| | | | * generic/tkEntry.c (GetSpinboxElement): fixed unreachable returns.
* * tests/config.test: added config-14.1 to test namespace importhobbs2001-08-291-41/+17
| | | | | | | | | | | | | | evaluation of widgets. * generic/tkButton.c (ButtonCreate): * generic/tkFrame.c (CreateFrame): * generic/tkMenubutton.c (Tk_MenubuttonObjCmd): * generic/tkPlace.c (Tk_PlaceObjCmd): * generic/tkScale.c (Tk_ScaleObjCmd): * generic/tkMessage.c (Tk_MessageObjCmd): * generic/tkEntry.c (Tk_EntryObjCmd, Tk_SpinboxObjCmd): * generic/tkSquare.c (SquareObjCmd): redid the handling of optionTables in widgets to allow them to be imported into other namespaces. [Bug #456632]
* * generic/tkEntry.c: corrected missing Tcl_Release that causedhobbs2001-07-031-22/+32
| | | | | | font not freed complaints when trying valid cleanup calls. * generic/tkListbox.c: made use of Tcl_Preserve/Tcl_Release to prevent FMR errors in Display functions.
* * generic/tkEntry.c (DestroyEntry): used Tcl_EventuallyFreehobbs2001-07-021-4/+6
| | | | instead of ckfree for entryPtr to prevent FMRs. [Bug #413904]
* * tests/entry.test: added tests entry-20.*, delete during widgethobbs2001-04-031-11/+53
| | | | | | | activity * generic/tkEntry.c (DestroyEntry, EntryEventProc): fixed the entry widget to survive deletion while processing scrollbar updates and validation.
* Overall change: Implemented TIP 5, which exportsericm2000-11-221-7/+6
| | | | | | | | | TkClassProcs/TkSetClassProcs as Tk_ClassProcs/Tk_SetClassProcs, adding a size field to Tk_ClassProcs to allow for future expansion, and renaming the geometryProc to worldChangedProc, which is more in keeping with the actual use of the callback. See ChangeLog for details.