summaryrefslogtreecommitdiffstats
path: root/generic/tkScale.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug [2262543] - Scale widget unexpectedly fires command callbackbug_2262543ffffvogel2016-02-241-1/+14
|
* [3417012] Stop [scale] segfault when -digits too big. Thanks fvogel.dgp2014-10-301-2/+5
|\
| * Pushing the fix out to more files.dgp2014-10-301-6/+4
| |
| * Fixed bug [3417012fff]fvogel2014-10-291-3/+8
| |
| * SetOptions.3: minor doc fixjan.nijtmans2012-06-191-12/+12
| |\ | | | | | | | | | make various other tables const (all backported from Tk 8.6)
| | * SetOptions.3: minor doc fixjan.nijtmans2012-06-191-3/+3
| | | | | | | | | | | | 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
| | |
* | | Replace all Tcl_TraceVar/Tcl_UntraceVar with Tcl_TraceVar2/Tcl_UntraceVar2 ↵jan.nijtmans2013-02-221-4/+4
| | | | | | | | | | | | calls: The former are just thin wrappers around the latter.
* | | more places convertedjan.nijtmans2013-01-241-2/+2
| | |
* | | 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.
* | | Much more cleaning up of result handling.dkf2012-07-231-13/+11
| | |
* | | frq-3536507: clientData field in Tk_OptionSpec should be "const void *"frq_3536507jan.nijtmans2012-06-201-9/+9
| | |
* | | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * * generic/tkScale.c: Revised variable writing logic to accountdgp2006-06-141-5/+12
| | | | | | | | | | | | | | | for [scale]'s design that it deals with its value as a formatted string, and not as a double. [Bug 891141].
* | | 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-2/+2
| | |
* | | More small changes to use C89 better and manage the result more efficiently.dkf2008-11-081-13/+7
| | |
* | | more internal -Wwrite-strings warning fixesnijtmans2008-10-301-3/+3
| | |
* | | Add "const" to many internalnijtmans2008-10-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | fix [2021443] inconsistant "wrong # args" messages (for Tk)nijtmans2008-07-231-3/+3
| | |
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-32/+30
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | Tidy up some variable types.patthoyts2007-11-171-2/+2
| |
* | header cleanupdgp2007-09-071-2/+1
| |
* | Cleaning up whitespace, comments, declarations. No functional changes.dkf2007-06-241-44/+43
| |
* | various "const" additions, in line with TIP #27nijtmans2007-01-031-2/+2
| |
* | * generic/tkScale.c: Revised variable writing logic to accountdgp2006-06-141-5/+12
| | | | | | | | | | for [scale]'s design that it deals with its value as a formatted string, and not as a double. [Bug 891141].
* | ANSIfy and reduce casting of NULL to promote readabilitydkf2005-11-171-17/+16
| |
* | Lots of ANSIfying of function decls.dkf2005-11-171-7/+7
| | | | | | | | Also a few spots where code has been cleaned up more completely.
* | whitespace cleaningdkf2005-10-171-5/+5
| |
* | Format for style and remove non-ANSI declsdkf2005-10-171-345/+335
| |
* | * generic/tkImgPhoto.c: Removed outdated #include's of the tclMath.hdgp2004-03-311-2/+1
|/ | | | | | * generic/tkScale.c: header file. All tk*Port.h files have long had a #include <math.h>, and other parts of Tk routinely make use of libm-supplied math routines.
* 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)
* * Updates to handle change in type of part2 argument ofdgp2002-03-201-3/+3
| | | | Tcl_VarTraceProc typedef. [TIP 27] [Patch 532644].
* * Updates to handle change in type of tablePtrdgp2002-01-171-2/+2
| | | | | 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-21/+9
| | | | | | | | | | | | | | 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]
* 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.
* * generic/tkCanvas.c (CanvasEventProc:2451): corrected casthobbs2000-04-141-118/+313
| | | | | | | | | | | | | * generic/tkEntry.c (Tk_EntryObjCmd): adjusted finishing error cases and changed TK_CONFIG_NULL_OK to TK_OPTION_NULL_OK * tests/scale.test: * generic/tkScale.c: * generic/tkScale.h: * unix/tkUnixScale.c: * mac/tkMacScale.c: moved (PixelToValue|ValueToPixel|SetScaleValue) to tkScale.c. Caused an associated variable to be immediately set [Bug: 4833]
* * generic/tkRectOval.c (ConfigureRectOval):hobbs2000-02-011-6/+7
| | | | | | | | | | | | | * generic/tkCanvLine.c (ConfigureLine): * generic/tkCanvPoly.c (ConfigurePoly): * generic/tkCanvArc.c (Configure/DisplayArc): fixed handling for negative dash values [Bug: 4104] * generic/tkScale.c (TkRoundToResolution): fixed incorrect assumption that (N+1)*delta = N*delta + delta with floating point math [Bug: 3689, 4099] (DestroyScale) Fixed check for cancelling TkpDisplayScale (was REDRAW_ALL, is now REDRAW_PENDING)
* * generic/tkScale.c:hobbs1999-12-221-3/+4
| | | | | | * generic/tkScale.h: * mac/tkMacScale.c: * unix/tkUnixScale.c: fixed potential segv from patch in 3897
* * generic/tk.h:hobbs1999-12-211-11/+12
| | | | | | | | | | | | | | | | | * README: updated for patch level 8.3b1 * generic/tkScale.c: * generic/tkScale.h: fixed possible core when freeing options (cursor) associated with scale widget [Bug: 3897] * generic/tk3d.c: added extra calculations to ensure that thin frames get refreshed too [Bug: 3596] * generic/tkCanvText.c: * generic/tkEntry.c: * generic/tkFont.c: * generic/tkImgPPM.c: removed extranneous vars that were set but never used.
* Merged 8-1-0 into mainline.rjohnson1999-04-211-1/+1
|
* Rearranged parens for Tcl style conventions.rjohnson1999-04-201-3/+3
|
* Improved patch for scale widget.rjohnson1999-04-191-4/+6
|
* Fixed bug 1768 - core dump in scale widget.rjohnson1999-04-171-2/+3
|
* Fixed bug 1840rjohnson1999-04-171-2/+2
|
* * Merged 8.1 branch into the main trunkstanton1999-04-161-354/+458
|