summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixScale.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix [2790615]: "update" performs Tk callbacks in its own stack frame.jan.nijtmans2020-06-081-1/+1
| | | by adding TCL_EVAL_GLOBAL in a lot of places.
* Minor tinkering (style, efficiency, etc.)dkf2019-03-241-33/+34
|
* Eliminate trailing zeros from scale tick values. This is done byjal_frezie2019-02-201-12/+16
| | | | | | | | | | | calculating a separate format string for these values, rather than using the same format string as for the current value. The basis is the same, i.e., enough digits are displayed to distinguish any pair of adjacent tick values, and all tick values have the same number of decimals so some may still have trailing zeros. Code for laying out vertical scales has been adjusted to take account of the fact that the tick column may now be narrower than the value column.
* Fix [3003895fff] and [1899040fff]: TkRoundToResolution doesn't account for -fromfvogel2019-01-051-4/+4
|
* Fix more issues with sprintf in the scale widget.fvogel2017-10-071-4/+18
|
* [3417012] Stop [scale] segfault when -digits too big. Thanks fvogel.dgp2014-10-301-4/+4
|\
| * Pushing the fix out to more files.dgp2014-10-301-4/+4
| |
* | Eliminate all usage of functions Tcl_VarEval (deprecated) and Tcl_Eval (to ↵jan.nijtmans2013-03-071-2/+7
| | | | | | | | the prefered Tcl_EvalEx).
* | 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-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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()).
| | * * unix/tkUnixScale.c (DisplayHorizontalValue): Backport fix forpatthoyts2004-10-281-2/+6
| | | | | | | | | | | | #220927 by Michael Schlenker to keep the labels within the window.
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-1/+1
| | | | | | | | | using useful casts internally.
* | | Eliminate many unnecessary (ClientData) type casts.nijtmans2010-06-151-7/+7
| | |
* | | TIP 337dgp2008-12-091-2/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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:
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | header cleanupdgp2007-09-071-2/+2
| |
* | * generic/tkCanvas.c: allow -selectforeground option to be None; adddas2007-04-231-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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()).
* | ANSIfydkf2005-11-141-122/+128
| |
* | * unix/tkUnixScale.c (DisplayHorizontalValue): Fix for #220927 bypatthoyts2004-10-281-2/+6
|/ | | | Michael Schlenker to keep the labels within the window.
* minor cast fixes to prevent 64bit warningshobbs2001-09-211-3/+3
|
* * unix/tkUnixScale.c (TkpDisplayScale): corrected FMR when scalehobbs2001-07-031-2/+2
| | | | was deleted while calling its command.
* * unix/tkUnixScale.c:hobbs2000-04-141-187/+49
| | | | | | | | | | * mac/tkMacScale.c: moved (PixelToValue|ValueToPixel|SetScaleValue) to tkScale.c. Caused an associated variable to be immediately set [Bug: 4833] * unix/aclocal.m4 (SC_ENABLE_THREADS): enhanced the detection of pthread_mutex_init [Bug: 4359] and (SC_CONFIG_CFLAGS) added --enable-64bit-vis switch for Sparc VIS compilation [Bug: 4995]
* * unix/tkUnixScale.c (TkpDestroyScale): changed ckfree tohobbs2000-02-051-6/+7
| | | | | Tcl_EventuallyFree to behave with Tcl_Preserve in TkpDisplayScale (prevents possible segfault).
* * unix/tkUnixScale.c: fixed potential segv from patch in 3897hobbs1999-12-221-2/+3
|
* * Merged 8.1 branch into the main trunkstanton1999-04-161-18/+24
|
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-04-011-0/+828