summaryrefslogtreecommitdiffstats
path: root/generic/tkButton.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace all Tcl_TraceVar/Tcl_UntraceVar with Tcl_TraceVar2/Tcl_UntraceVar2 ↵jan.nijtmans2013-02-221-8/+8
| | | | calls: The former are just thin wrappers around the latter.
* more places convertedjan.nijtmans2013-01-241-1/+1
|
* Merge core-8-5-branchjan.nijtmans2013-01-241-3/+3
|\ | | | | Various Tcl_GetIndexFromObj -> Tcl_GetIndexFromObjStruct changes.
| * Backport of ::tk::mac::useCompatibilityMetrics handling and scrollbar ↵jan.nijtmans2012-10-231-13/+19
| | | | | | | | metrics handling from trunk
| * SetOptions.3: minor doc fixjan.nijtmans2012-06-191-10/+10
| |\ | | | | | | | | | make various other tables const (all backported from Tk 8.6)
| | * SetOptions.3: minor doc fixjan.nijtmans2012-06-191-10/+10
| | | | | | | | | | | | make various other tables CONST (All backported from Tk 8.6)
| | * make some more internal tables CONSTjan.nijtmans2012-04-181-4/+4
| | |
* | | Replace various functions calls, for functions which are small wrappers ↵jan.nijtmans2013-01-141-8/+8
| | | | | | | | | | | | around other functions, to call the wrapped function directly.
* | | frq-3536507: clientData field in Tk_OptionSpec should be "const void *"frq_3536507jan.nijtmans2012-06-201-35/+35
| | |
* | | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * [Bug 2956548] TkpButtonSetDefaults only initializes one button typenijtmans2010-03-121-5/+7
| | | | | | | | | | | | Fix 2 minor gcc warnings in tkWinTest.c
| | * * generic/tkButton.c (ConfigureButton): abort option processing ifhobbs2003-11-121-1/+8
| | | | | | | | | | | | the button was deleted. [Bug #824479]
| | * * generic/tkButton.h: Rewrote the handlinghobbs2003-04-261-11/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkButton.c (TkButtonWorldChanged): of compound *buttons * mac/tkMacButton.c (TkpDisplayButton): to correctly display * macosx/tkMacOSXButton.c (TkpDisplayButton): mixture of disabledfg, * unix/tkUnixButton.c (TkpDisplayButton): selectcolor, indicator, * win/tkWinButton.c (TkpDisplayButton): etc. *buttons will now only stipple the image, unless no disabledfg is given, in which case it will stipple the whole button.
| * | [Bug 2956548] TkpButtonSetDefaults only initializes one button typenijtmans2010-03-121-5/+7
| | | | | | | | | | | | | | | Fix various gcc warnings, all backported from Tk 8.6 VC6++ does not have SPI_SETKEYBOARDCUES
| * | [Bug 1923684]: backported checkbutton fix for confused state when -offvalue ↵patthoyts2009-05-141-6/+23
| | | | | | | | | | | | equals -tristatevalue
* | | Put all Tk_OptionSpec for buttons and labelsnijtmans2010-02-181-23/+31
| | | | | | | | | | | | | | | | | | in const memory. With some changes to win32 and macosx, preventing direct writes to read-only memory.
* | | use -pipe for gcc on win32 (mingw/cygwin)nijtmans2010-02-131-2/+2
| | | | | | | | | | | | | | | | | | make sure that TkpCmapStressed is exported clean up unused Tk_CreatePhotoOption Make more internal arrays "const"
* | | Eliminate tkpMenubuttonClassnijtmans2010-01-131-2/+2
| | | | | | | | | | | | | | | make tkpButtonProcs CONST fix gcc warnings: missing initializer
* | | SMALL FIX: Remove useless explicit casts now that we require C89 or later.dkf2010-01-021-5/+3
| | |
* | | Merge of TkAqua Cocoa portmacosx_cocoa_mergedas2009-06-291-1/+13
| | |
* | | [Bug 1923684]: checkbuttons must prefer off over the indeterminate statepatthoyts2009-05-141-6/+23
| | | | | | | | | | | | | | | If a checkbutton offvalue is the same as the tristate value we should use the off state in preference. (andrey gusev)
* | | More small changes to use C89 better and manage the result more efficiently.dkf2008-11-081-55/+48
| | |
* | | more internal -Wwrite-strings warning fixesnijtmans2008-10-301-2/+3
| | |
* | | Add "const" to many internalnijtmans2008-10-171-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Greatly clean up Tk's handling of the writability of the Tcl result object.dkf2008-10-051-3/+2
| | |
* | | fix [2021443] inconsistant "wrong # args" messages (for Tk)nijtmans2008-07-231-3/+3
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | header cleanupdgp2007-09-071-1/+2
| |
* | various "const" additions, in line with TIP #27nijtmans2007-01-051-25/+25
| | | | | | | | fix bug #1627732
* | various "const" additions in implementationnijtmans2007-01-031-10/+10
| |
* | ANSIfydkf2005-11-041-383/+368
| |
* | * doc/checkbutton.n: TIP#110 implementationhobbs2004-02-181-4/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/radiobutton.n: Tristate Checkbutton and Radiobuttons * generic/tkButton.c: * generic/tkButton.h: * library/demos/check.tcl: * library/demos/radio.tcl: * macosx/tkMacOSXButton.c: * macosx/tkMacOSXDefault.h: * tests/button.test: * unix/tkUnixButton.c: * unix/tkUnixDefault.h: * win/tkWinButton.c: * win/tkWinDefault.h:
* | * generic/tkButton.c (ConfigureButton): abort option processing ifhobbs2003-11-121-1/+8
| | | | | | | | the button was deleted. [Bug #824479]
* | * generic/tkButton.h: Rewrote the handlinghobbs2003-04-261-11/+23
|/ | | | | | | | | | * generic/tkButton.c (TkButtonWorldChanged): of compound *buttons * mac/tkMacButton.c (TkpDisplayButton): to correctly display * macosx/tkMacOSXButton.c (TkpDisplayButton): mixture of disabledfg, * unix/tkUnixButton.c (TkpDisplayButton): selectcolor, indicator, * win/tkWinButton.c (TkpDisplayButton): etc. *buttons will now only stipple the image, unless no disabledfg is given, in which case it will stipple the whole button.
* * generic/tkButton.c (TkButtonWorldChanged): added GCFont handlinghobbs2002-08-081-1/+4
| | | | | to the disabledGc of buttons when compound != none. The drawing appears to be incorrect across platforms still. [Bug #477740]
* Applied companion patch for Tcl Patch 585105,dgp2002-08-051-7/+7
| | | | | | | | | | | | | | | | | | | | | 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)
* Initial implementation of TIP #82: added the -offrelief option todrh2002-06-171-1/+5
| | | | | checkbutton and radiobutton to allow those widgets to have a MS-Office look and feel.
* When creating a radiobutton with -value "" it was not drawn properlypspjuth2002-05-261-1/+11
| | | | if the -variable was created by the radiobutton. [Bug #548765]
* * Updates to handle change in type of part2 argument ofdgp2002-03-201-5/+5
| | | | 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]
* * generic/tkButton.c (ButtonTextVarProc): guard against beinghobbs2001-12-281-2/+6
| | | | called while the *button/label is being deleted. [Bug #490051]
* * tests/config.test: added config-14.1 to test namespace importhobbs2001-08-291-20/+18
| | | | | | | | | | | | | | 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-2/+2
| | | | | | | | | 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/tkButton.c (ConfigureButton): Added tests for -compoundericm2000-10-011-3/+7
| | | | | | option, so that when there is a textvariable and an image, and -compound is not none, the button will display both the textvariable and the image.
* * generic/tkButton.c (ButtonTextVarProc): reversed change below,hobbs2000-08-231-8/+3
| | | | it was not correct.
* * generic/tkButton.c (ButtonTextVarProc): changed order ofhobbs2000-08-231-3/+8
| | | | incr/decr of new value object, in case they are equal.
* * doc/radiobutton.n: Added documentation for -overrelief option.ericm2000-05-251-1/+13
| | | | | | | | | | | | | | | | | * doc/checkbutton.n: Added documentation for -overrelief option. * doc/label.n: Added documentation for -state option. * generic/tkButton.c: Added -overrelief option for checkbuttons, and radiobuttons. * library/button.tcl (tkButtonDown, macintosh version): Added protection against querying the -repeatdelay option from a widget that doesn't support it (ie, checkbuttons, radiobuttons, etc). Other platforms use a different binding script for checkbuttons and radiobuttons, so they don't have this issue. (tkCheckRadioEnter, windows version): Added code to handle -overrelief for check/radiobuttons on windows.
* * doc/SetOptions.3: Added information about TK_OPTION_NULL_OK withericm2000-05-171-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TK_OPTION_RELIEF. * win/tkWinButton.c: Removed bits about TK_RELIEF_LINK. * tests/button.test: Added tests for -overrelief; removed tests for -relief link. * mac/tkMacButton.c: Removed bits about TK_RELIEF_LINK. * generic/tkOldConfig.c: Removed bits about TK_RELIEF_LINK. * generic/tkConfig.c: Removed bits about TK_RELIEF_LINK; added support for TK_OPTION_NULL_OK for TK_OPTION_RELIEF. * library/button.tcl: Added binding support for -overrelief. * generic/tk3d.c (Tk_GetRelief): Added branch for TK_RELIEF_NULL. * generic/tkButton.c: Added -overrelief option; removed Enter/Leave EventProc masks and handlers. * generic/tk.h: Added TK_RELIEF_NULL definition, removed TK_RELIEF_LINK. * mac/tkMacDefault.h (DEF_BUTTON_OVER_RELIEF): * win/tkWinDefault.h (DEF_BUTTON_OVER_RELIEF): * unix/tkUnixDefault.h (DEF_BUTTON_OVER_RELIEF): Added default value for the -overrelief option.