summaryrefslogtreecommitdiffstats
path: root/generic/tkListbox.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * | * 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
| | |
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-14/+11
| | | | | | | | | using useful casts internally.
* | | Formattingnijtmans2010-04-231-2/+2
| | | | | | | | | | | | | | | | | | typo fixes remove not existing tkDisplayList; Useless re-definitions of TCL_STORAGE_CLASS
* | | 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-47/+45
| | |
* | | Fix gcc warning: ignoring return value of ‘strtol’,nijtmans2009-12-161-2/+2
| | | | | | | | | | | | | | | | | | declared with attribute warn_unused_result Fix gcc warning: dereferencing pointer ‘xgePtr’ does break strict-aliasing rules
* | | - eliminate some unnessary type castsnijtmans2009-02-031-11/+12
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | TIP 337dgp2008-12-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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:
* | | Fix potential use of uninitialized variable flagged by clang static analyzerdas2008-12-071-3/+4
| | |
* | | More small changes to use C89 better and manage the result more efficiently.dkf2008-11-081-23/+16
| | |
* | | more internal -Wwrite-strings warning fixesnijtmans2008-10-301-4/+4
| | |
* | | Add "const" to many internalnijtmans2008-10-171-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | * generic/tkListbox.c: Make literal return values consistent withdgp2008-10-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | those generated by Tcl_PrintDouble(). * tests/entry.test: Restore test naming consistency with Tk 8.5. * tests/listbox.test: Remove some more dependency on precision in test results.
* | | Greatly clean up Tk's handling of the writability of the Tcl result object.dkf2008-10-051-3/+3
| | |
* | | typodkf2008-10-031-2/+2
| | |
* | | Convert %g to Tcl_PrintDouble to avoid locale trouble. [Bug 2112563]dkf2008-10-031-18/+26
| | |
* | | fix [2021443] inconsistant "wrong # args" messages (for Tk)nijtmans2008-07-231-5/+5
|/ /
* | 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.