summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* NotebookAddCommand: fix off-by-one error counting objc/objvjenglish2016-01-251-1/+1
| | | | | when readding an already-managed window with arguments. Bug reported on tcl-core by Sam Bromley (22 Jan 2016)
* Implement TIP #441: Add -justify Configuration Option to the listbox Widgetjan.nijtmans2016-01-221-23/+87
|\
| * 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-137-35/+225
| |\
| * | 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-1142-796/+1424
| |\ \
| * | | [3f456a5bb9]: Patches for listbox right justifyjan.nijtmans2014-02-111-4/+104
| | | |
* | | | Fixed bug [9e606527af] - && instead of & used in generic/tkOption.cfvogel2016-01-201-1/+1
| |_|/ |/| |
* | | TIP #438 (Ensure Line Metrics are Up-to-Date) accepted by votefvogel2016-01-133-6/+198
|\ \ \
| * \ \ rebase "tip-438" branch to latest trunk.tip_438jan.nijtmans2016-01-073-6/+198
| |\ \ \
| | * | | Harmonized use of NULL for textPtr->afterSyncCmdfvogel2016-01-051-2/+2
| | | | |
| | * | | Moved RunAfterSyncCmd procedurefvogel2016-01-051-47/+47
| | | | |
| | * | | Typo fixed in commentfvogel2016-01-051-1/+1
| | | | |
| | * | | Merged core-8-5-branchfvogel2015-12-261-1/+8
| | |\ \ \
| | * | | | [.text sync -command $cmd] schedules execution of $cmd by the event loop at ↵fvogel2015-12-263-14/+62
| | | | | | | | | | | | | | | | | | | | | | | | idle time
| | * | | | Merged core-8-5-branchfvogel2015-12-211-32/+97
| | |\ \ \ \
| | * | | | | There could be false negatives with [.text pendingsync] when line metrics ↵fvogel2015-12-201-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | calculation is in the middle of a long line.
| | * | | | | Merged core-8-5-branchfvogel2015-12-131-13/+14
| | |\ \ \ \ \
| | * \ \ \ \ \ Merged core-8-5-branchfvogel2015-12-091-24/+47
| | |\ \ \ \ \ \
| | * | | | | | | Fixed indentationfvogel2015-11-281-8/+8
| | | | | | | | |
| | * | | | | | | Merged core-8-5-branchfvogel2015-11-281-1/+5
| | |\ \ \ \ \ \ \
| | * | | | | | | | [.text pendingsync] returns a booleanfvogel2015-11-283-11/+10
| | | | | | | | | |
| | * | | | | | | | Respect alphabetical orderfvogel2015-11-211-9/+9
| | | | | | | | | |
| | * | | | | | | | Adjusted when <<WidgetViewSync>> fires. Also %d now only has boolean value. ↵fvogel2015-11-211-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementation in sync with TIP #438 rev. 1.10
| | * | | | | | | | Rename "yupdate" to "sync" and fix various test-casesjan.nijtmans2015-11-193-38/+38
| | | | | | | | | |
| | * | | | | | | | Tcl_Preserve should be first I guessfvogel2015-11-191-1/+2
| | | | | | | | | |
| | * | | | | | | | Make it compile with Visual 2008fvogel2015-11-191-1/+1
| | | | | | | | | |
| | * | | | | | | | Code Formattingjan.nijtmans2015-11-193-34/+36
| | | | | | | | | |
| | * | | | | | | | better argument checkingjan.nijtmans2015-11-191-1/+7
| | | | | | | | | |
| | * | | | | | | | First test-implementation of "$t yupdate -command <command>". TODO: more ↵jan.nijtmans2015-11-193-9/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | testcases and documentation
| | * | | | | | | | Merge core-8-5-branchjan.nijtmans2015-11-161-8/+12
| | |\ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ \ TIP #438 - <<TextLineHeightsInvalid>> event added, with corresponding new testsfvogel2015-11-141-0/+40
| | |\ \ \ \ \ \ \ \ \
| | | * | | | | | | | | Implementation of TIP #438 - Solution using virtual eventstip_438_eventsfvogel2015-11-101-0/+50
| | | | | | | | | | | |
| | * | | | | | | | | | TIP #438 - [.text pendingyupdate] command added, with corresponding new testsfvogel2015-11-143-5/+47
| | | | | | | | | | | |
| | * | | | | | | | | | TIP #438 - [.text yupdate] command added, with corresponding new testsfvogel2015-11-141-2/+12
| | |/ / / / / / / / /
* | | | | | | | | | | Bring back DEF_TEXT_SPACING[123], since "0" is not exactly equal to NULL ↵bug_2049429fffjan.nijtmans2016-01-122-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (just to be 100% sure there will not be a behavioral change)
* | | | | | | | | | | Merge trunk. jan.nijtmans2016-01-112-4/+4
|\ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | ttkButton.c: Invalid use of TK_OPTION_DONT_SET_DEFAULT, should have been TK_OPTION_NULL_OK as in normal button. tkTextTag.c: Use of TK_OPTION_DONT_SET_DEFAULT means that the default value "0" is ignored, so better use NULL.
* | | | | | | | | | | Rebase to 8.6, getting rid of DEF_TEXT_SPACING[123]jan.nijtmans2016-01-103-26/+24
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / |/| | | | | | | | | |
| * | | | | | | | | | -spacing[123] use TK_OPTION_NULL_OK instead of TK_OPTION_DONT_SET_DEFAULTfvogel2016-01-091-3/+3
| | | | | | | | | | |