summaryrefslogtreecommitdiffstats
path: root/generic/tkListbox.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed [b362182e45] - Generation of virtual events through Tk_HandleEvent is ↵fvogel2016-04-211-10/+1
| | | | unsafe
* Reverted [5f396dacdc].fvogel2016-01-181-0/+1
|
* Removed attempt of adjustment of the startup xview according to the -justify ↵fvogel2016-01-181-11/+0
| | | | option. Anyway this does not work.
* Use GetMaxOffset when possible to reduce code duplication. The change in ↵fvogel2016-01-181-6/+2
| | | | ListboxScanTo is not exactly equivalent but I believe the previous version was a bug.
* Fixed bug with the listbox justify patch: with large borders, when moving ↵fvogel2016-01-181-1/+0
| | | | | | | | | | | | | | | | | the horizontal scrollbar fully to the right the edge of the border could not be seen, one needed to push once on the right arrow of the scrollbar to see it. Test case: package require Tk destroy .top toplevel .top listbox .top.l -justify right -borderwidth 17 -highlightthickness 19 -selectborderwidth 22 scrollbar .top.hs -command ".top.l xview" -orient horizontal .top.l configure -xscrollcommand ".top.hs set" set huge [concat "START -" [string repeat "Huge Item... " 20] "- END"] .top.l insert end $huge pack .top.l -expand 1 -fill both pack .top.hs -expand 1 -fill x
* Addressed question 4 (see artifact [9d48a9c212] of ticket [3f456a5bb9]).fvogel2016-01-171-1/+7
|
* Addressed questions 3 and 5 (see artifact [9d48a9c212] of ticket ↵fvogel2016-01-171-61/+0
| | | | [3f456a5bb9]). It is not desirable to make the listbox xview jump on resizing.
* Addressed issue B (see artifact [9d48a9c212] of ticket [3f456a5bb9])fvogel2016-01-161-1/+10
|
* Addressed issue A and question 6 (see artifact [9d48a9c212] of ticket ↵fvogel2016-01-161-9/+7
| | | | | | | | | | | | | | | [3f456a5bb9]). Issue A is fixed. Test case: package req Tk listbox .l .l insert end M M M M M M M M M pack .l .l conf -just center ; # or right .l conf -highlightthickness 40 .l selection set 4 Regarding question 6, Tk_TextWidth is a bit lower level function in the API, which must be slightly beneficial regarding performance. Tk_TextWidth is therefore preferred.
* Addressed question 2 (see artifact [9d48a9c212] of ticket [3f456a5bb9]). fvogel2016-01-161-0/+4
| | | | This code arranges for the correct xview when creating the listbox with non-default justification. It is correctly placed in Tk_ListboxObjCmd. When changing justification later, i.e. in ConfigureListbox, there is no reason to change the xview, it would not be desired that the listbox xview jumps when configuring -justify.
* Addressed question 1 (see artifact [9d48a9c212] of ticket [3f456a5bb9])fvogel2016-01-161-1/+2
|
* Rebased to latest trunkfvogel2016-01-131-6/+5
|\
| * Rebase to 8.6, getting rid of DEF_TEXT_SPACING[123]jan.nijtmans2016-01-101-6/+5
| |\
| | * Removed unused flags argument in Configure function since Tk_ConfigureWidget ↵fvogel2016-01-081-5/+4
| | | | | | | | | | | | is no longer used there since last century
| | * Use TK_OPTION_NULL_OK instead of TK_CONFIG_NULL_OKfvogel2016-01-081-1/+1
| | |
* | | More typos fixedfvogel2016-01-131-10/+14
| | |
* | | Typo fixedfvogel2016-01-131-1/+1
| | |
* | | Improved patch formatting. No functional changefvogel2016-01-111-26/+44
| | |
* | | merged trunkfvogel2016-01-111-0/+35
|\ \ \ | |/ /
| * | Fixed bug [3102228] - <<ListboxSelect>> doesn't fire when selection lostfvogel2016-01-061-0/+35
| |\ \ | | |/
| | * Fixed bug [3102228] - <<ListboxSelect>> doesn't fire when selection lostbug_3102228ffffvogel2015-12-311-0/+35
| | |
* | | [3f456a5bb9]: Patches for listbox right justifyjan.nijtmans2014-02-111-4/+104
|/ /
* | Eliminate all usage of WIN32 macro as well: _WIN32 is the portable macro.jan.nijtmans2014-02-101-4/+4
| |
* | 3607326 Stop segfault from [listbox .l -listvariable $array].dgp2013-03-111-3/+0
|\ \ | |/
| * 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
| | |
* | | Eliminate all usage of functions Tcl_VarEval (deprecated) and Tcl_Eval (to ↵jan.nijtmans2013-03-071-4/+18
| | | | | | | | | | | | the prefered Tcl_EvalEx).
* | | Revert [ac229dabaa]. There is a reason the Tcl_GetIndexFromObj wrapper jenglish2013-02-271-8/+7
| | | | | | | | | exists and is used.
* | | Eliminate all Tcl_GetIndexFromObj calls, which is only a thin wrapper around ↵jan.nijtmans2013-02-271-7/+8
| | | | | | | | | | | | Tcl_GetIndexFromObjStruct.
* | | Replace all Tcl_TraceVar/Tcl_UntraceVar with Tcl_TraceVar2/Tcl_UntraceVar2 ↵jan.nijtmans2013-02-221-2/+2
| | | | | | | | | | | | calls: The former are just thin wrappers around the latter.
* | | 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-4/+4
| | | | | | | | | | | | around other functions, to call the wrapped function directly.
* | | Working towards making the error codes more consistent.dkf2012-07-301-2/+2
| | |
* | | Much more cleaning up of result handling.dkf2012-07-231-16/+15
| | |
* | | Working towards adding all the Tcl_SetErrorCode calls that should be there.dkf2012-07-161-78/+78
| | | | | | | | | ** WORK IN PROGRESS **
* | | frq-3536507: clientData field in Tk_OptionSpec should be "const void *"frq_3536507jan.nijtmans2012-06-201-13/+13
| | |
* | | 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/+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.