summaryrefslogtreecommitdiffstats
path: root/generic/tkListbox.c
Commit message (Collapse)AuthorAgeFilesLines
* 3607326 Stop segfault from [listbox .l -listvariable $array].dgp2013-03-111-3/+0
|
* SetOptions.3: minor doc fixjan.nijtmans2012-06-191-2/+2
|\ | | | | | | 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
| |
| * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-1/+1
| |
* | 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/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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()).
| * * generic/tkListbox.c (ConfigureListboxItem): ListboxWorldChangedhobbs2006-12-041-5/+10
| | | | | | | | not needed - just call EventuallyRedrawRange. [Bug 1608046] (rezic)
| * * tests/entry.test (entry-22.1):hobbs2006-05-291-24/+22
| | | | | | | | | | | | | | * tests/listbox.test (listbox-6.15): * generic/tkListbox.c (ListboxInsertSubCmd, ListboxDeleteSubCmd): Ignore Tcl_SetVar2Ex failure of listVarName, similar to entry widget handling. [Bug 1424513]
| * silence compiler warningdgp2004-06-081-3/+2
| |
| * * generic/tkListbox.c (ListboxDeleteSubCmd, ListboxListVarProc):hobbs2003-11-111-3/+4
| | | | | | | | free itemconfig data when removing it from table. [Bug #836483]
* | Fix various gcc-4.4 warnings and formatting, allnijtmans2010-01-291-10/+10
| | | | | | | | backported from HEAD.
* | Backported some fixes for uninitialized variables identified by das using ↵patthoyts2009-03-031-3/+4
| | | | | | | | clang analysis.
* | * generic/tkListbox.c: Make literal return values consistent withdgp2008-10-091-3/+3
| | | | | | | | | | | | | | | | those generated by Tcl_PrintDouble(). * tests/canvText.test: Backport test updates in light of the * tests/entry.test: 2008-10-05 commit. * tests/listbox.test:
* | Backport of fix for [Bug 2112563]dkf2008-10-051-21/+32
| |
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tkArgv.c: Fix gcc warnings about 'cast to/fromdas2007-10-151-21/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkCanvUtil.c: pointer from/to integer of different * generic/tkCanvas.c: size' on 64-bit platforms by casting * generic/tkCursor.c: to intermediate types * generic/tkInt.h: intptr_t/uintptr_t via new PTR2INT(), * generic/tkListbox.c: INT2PTR(), PTR2UINT() and UINT2PTR() * generic/tkObj.c: macros. * generic/tkStyle.c: * generic/tkTextIndex.c: * generic/tkUtil.c: * generic/ttk/ttkTheme.h: * generic/ttk/ttkTreeview.c: * unix/tkUnixMenu.c: * unix/configure.in: * unix/configure: autoconf-2.59 * unix/tkConfig.h.in: autoheader-2.59
* | Assorted minor cleanups.dkf2007-09-081-13/+19
| |
* | header cleanupdgp2007-09-071-2/+1
| |
* | * generic/tkCanvas.c: allow -selectforeground option to be None; adddas2007-04-231-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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()).
* | Standardize function definition format.dkf2007-04-171-185/+172
| |
* | More warning squelching (mostly uninit variable warnings)dkf2007-01-121-2/+4
| |
* | various "const" additions, in line with TIP #27nijtmans2007-01-031-3/+3
| |
* | * generic/tkListbox.c (ConfigureListboxItem): ListboxWorldChangedhobbs2006-12-041-5/+10
| | | | | | | | not needed - just call EventuallyRedrawRange. [Bug 1608046] (rezic)
* | * tests/entry.test (entry-22.1):hobbs2006-05-291-39/+17
| | | | | | | | | | | | | | * tests/listbox.test (listbox-6.15): * generic/tkListbox.c (ListboxInsertSubCmd, ListboxDeleteSubCmd): Ignore Tcl_SetVar2Ex failure of listVarName, similar to entry widget handling. [Bug 1424513]
* | ANSIfy and reduce casting of NULL to promote readabilitydkf2005-11-171-55/+58
| |
* | Lots of ANSIfying of function decls.dkf2005-11-171-10/+12
| | | | | | | | Also a few spots where code has been cleaned up more completely.
* | Whitespace/style improvementsdkf2005-09-081-1007/+1103
| |
* | * generic/tkListbox.c (ListboxDeleteSubCmd, ListboxListVarProc):hobbs2003-11-111-3/+4
| | | | | | | | free itemconfig data when removing it from table. [Bug #836483]
* | Removed unused variable [Bug 664783]dkf2003-08-271-3/+2
|/
* * generic/tkListbox.c (ListboxSelectionSubCmd):hobbs2003-02-251-11/+15
| | | | | * tests/listbox.test: Allow 'selection includes' to respond when disabled (but only 'includes'). [Bug #632514]
* 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)
* * doc/listbox.n:hobbs2002-06-211-28/+108
| | | | | | | | * generic/tkListbox.c (DisplayListbox): * mac/tkMacDefault.h: TIP #94 implementation adding -activestyle * tests/listbox.test: option to the listbox. This adds the ability * unix/tkUnixDefault.h: to have listboxes look native on Windows, and * win/tkWinDefault.h: "nicer" elsewhere using the 'dotbox' style.
* * Updates to handle change in type of part2 argument ofdgp2002-03-201-3/+3
| | | | Tcl_VarTraceProc typedef. [TIP 27] [Patch 532644].
* * tests/listbox.test:hobbs2002-02-261-80/+100
| | | | | * generic/tkListbox.c: corrected error handling when setting to an invalid listvar value. [Bug #503613]
* * generic/tkListbox.c (ChangeListboxOffset): improved trackinghobbs2002-01-181-1/+5
| | | | when scrolling on x axis with entry/text. [Bug #225025] (voskuil)
* * Updates to handle change in type of tablePtrdgp2002-01-171-5/+5
| | | | | argument of Tcl_GetIndexFromObj(Struct) from (char **) to (CONST char **). [TIP 27] [Patch 504705]
* * tests/config.test: added config-14.1 to test namespace importhobbs2001-08-291-59/+20
| | | | | | | | | | | | | | 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-6/+20
| | | | | | 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.
* * tests/listbox.test: added test listbox-27.1, delete duringhobbs2001-04-031-14/+17
| | | | | | | scrollbar update * generic/tkListbox.c (DestroyListbox, ListboxEventProc): corrected listbox to make proper use of Tcl_EventuallyFree and protect against unusual listbox deletion.
* Overall change: Implemented TIP 5, which exportsericm2000-11-221-6/+5
| | | | | | | | | 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.
* * doc/label.n: Added -disabledforeground to list of options [Bug: 6053].ericm2000-07-281-4/+3
| | | | | * generic/tkListbox.c: Changed resource class for disabledforeground to "DisabledForeground".
* * mac/tkMacDefault.h:ericm2000-07-281-93/+183
| | | | | | | | | | | | | | | | | * unix/tkUnixDefault.h: Added default values for listbox disabledforeground and state. * win/tkWinDefault.h: Changed default listbox background color to white and listbox selection borderwidth to 0, in keeping with the "Microsoft Windows User Experience"; added default values for listbox disabledforeground and listbox state. * doc/listbox.n: Added documentation for -state option. * generic/tkListbox.c: Added support for -state to listbox. [RFE: 6052]. * tests/listbox.test: Tests for listbox disabled state.
* * generic/tkListbox.c (DestroyListbox): fixed crash inhobbs2000-03-021-21/+19
| | | | | | | | | | | | | | DestroyListbox due to null tkwin. [Bug: 4207] * tests/entry.test: added test suite for entry validation * doc/entry.n: improved docs discussing caveats and gotchas when mixing textvar with widget validation * generic/tkEntry.c (EntryValidateChange): improved handling of validation with relation to -textvariable. Previously, it would turn off whenever the textvar was set. Now it will it will turn off only when the textvar is set and validation returns 0. Added %V (type of validation occuring) to %-subs to help work with trickier validation.
* * generic/tkInt.h: moved new TkDisplay useInputMethods structurehobbs2000-01-211-9/+9
| | | | | | | | | | | | | | | | | | element to end to not disturb position of previous elements in the structure (as compared to Tk <=8.2). * generic/tkCanvLine.c (LineCoords): fixed segfault when too few coords were passed to a line with certain options set (it should always have thrown an error anyway). [Bug: 4042] * tests/text.test: * generic/tkText.c: fixed missing " in error case and missing 'dump' in subcommand listing [Bug: 4036] * generic/tkListbox.c: adjusted use of basic string concatenation in (non-K&R behavior) [Bug: 4027] Swapped bg/fg class for -select(bg|fg) for listbox and their items [Bug: 4039]
* * generic/tkListbox.c: fixed 'get' of listbox to return a stringhobbs1999-11-291-3/+10
| | | | when only one item is requested.
* * tests/listbox.test: Added a test to check that the topIndex isericm1999-11-241-1/+7
| | | | | | | update when items are removed from the listvar variable. * generic/tkListbox.c: Added a check the updates the topIndex when items are removed from the listvar variable.
* Additions to update vertical scrollbar info for listboxes when listvar changes.ericm1999-11-241-1/+5
|