summaryrefslogtreecommitdiffstats
path: root/generic/tkConfig.c
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tkConfig.c: Added another dimension of refCounting to thedgp2009-12-151-6/+49
| | | | | | | | | | * generic/tkInt.c: "option" Tcl_ObjType to improve memory troubles * generic/tkObj.c: detailed in [Bug 2492179]. Also removed registration of the "option" Tcl_ObjType. *** POTENTIAL INCOMPATIBILITY *** for callers of Tcl_GetObjType("option") which must now handle a NULL return. FossilOrigin-Name: 1b6f84f687e8810cd418910039a414eec932f3c3
* * generic/tkInt.h: add assert macros for clang staticdas2009-06-301-1/+2
| | | | | | | | | | | | | | analyzer and redefine Tcl_Panic to assert after panic in clang PURIFY builds. * generic/tkImgPhInstance.c: small fixes to make clang static * generic/tkTextDisp.c: analyzer happier. * generic/tkConfig.c: add clang assert for false positives * generic/tkUndo.c: from static analyzer. FossilOrigin-Name: 96416799b4809776126b367d1f4f0b409dd37b96
* - eliminate some unnessary type castsnijtmans2009-02-031-3/+4
| | | | | | | - some internal const decorations - spacing FossilOrigin-Name: 02ca10b00f1aed5c76ff8149fdbac48018e8bfa0
* Add "const" to many internalnijtmans2008-10-151-2/+2
| | | | | | | | | | 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. FossilOrigin-Name: 7702e3f7a3d0133733e965183538a53dffbeba1c
* Greatly clean up Tk's handling of the writability of the Tcl result object.dkf2008-10-051-6/+5
| | | FossilOrigin-Name: a83341a36174d2059bc339dea19260a38eda5a01
* Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-21/+21
| | | FossilOrigin-Name: ddfd8bb6f7ecfa71a218a5dc88075a419e3e1d5c
* merge stable branch onto HEADdgp2007-12-131-1/+1
| | | FossilOrigin-Name: e7868b44c1e7bffc63a053b87a96a4499757f80d
* header cleanupdgp2007-09-071-3/+1
| | | FossilOrigin-Name: 04ffea40ef0b3c0cad59a3e1576275019f29e913
* Missed a place (or rather not all versions of GCC catch it.)dkf2007-05-031-36/+21
| | | FossilOrigin-Name: 2bbd44fdaaff2f7fcb072d76862b335e7fa9a167
* Fix minor K&R-ismdkf2007-02-121-85/+84
| | | FossilOrigin-Name: bc30be67cbf03ed50deb003e63666db3cc90f250
* ANSIfy and reduce casting of NULL to promote readabilitydkf2005-11-171-24/+23
| | | FossilOrigin-Name: b6c2c77cac3cacef0e58af5c6be63af4359a2949
* * generic/tkConfig.c (Tk_DeleteOptionTable, Tk_CreateOptionTable):hobbs2005-10-101-3/+3
| | | | | | properly alloc/delete one more option. [Bug 1319720] (melbardis) FossilOrigin-Name: 032fbec4d450e7793849cf4e4e80aa9174d11697
* Getting more systematic about styledkf2005-08-101-938/+892
| | | | | | | Also start removing _ANSI_ARGS_; the core's required ANSI C for a while now Also fix [Bug 1252702]; size_t doesn't mix with Tcl_GetStringFromObj FossilOrigin-Name: 95ed0f915e157968e866e731484ea64d379250ec
* * generic/tk3d.c: All uses of 'panic' (the macro) changeddavygrvy2004-01-131-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkBind.c: to 'Tcl_Panic' (the function). The #define * generic/tkBitmap.c: of panic in tcl.h clearly states it is * generic/tkCanvArc.c: deprecated in the comments. * generic/tkCanvBmap.c: [Tcl Patch 865264] * generic/tkCanvImg.c: * generic/tkCanvLine.c: * generic/tkCanvPoly.c: * generic/tkCanvText.c: * generic/tkCanvWind.c: * generic/tkColor.c: * generic/tkConfig.c: * generic/tkCursor.c: * generic/tkError.c: * generic/tkEvent.c: * generic/tkFocus.c: * generic/tkFont.c: * generic/tkFrame.c: * generic/tkGC.c: * generic/tkGrid.c: * generic/tkImgBmap.c: * generic/tkImgPhoto.c: * generic/tkImgUtil.c: * generic/tkMenu.c: * generic/tkObj.c: * generic/tkPack.c: * generic/tkPlace.c: * generic/tkRectOval.c: * generic/tkSelect.c: * generic/tkText.c: * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkTextMark.c: * generic/tkTextWind.c: * generic/tkVisual.c: * generic/tkWindow.c: * mac/tkMacAppInit.c: * mac/tkMacAppearanceStubs.c: * mac/tkMacButton.c: * mac/tkMacDraw.c: * mac/tkMacEmbed.c: * mac/tkMacFont.c: * mac/tkMacInit.c: * mac/tkMacMenus.c: * mac/tkMacPort.h: * mac/tkMacSubwindows.c: * mac/tkMacWm.c: * mac/tkMacXStubs.c: * macosx/tkMacOSXEmbed.c: * macosx/tkMacOSXFont.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXNotify.c: * macosx/tkMacOSXPort.h: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXXStubs.c: * unix/tkUnix3d.c: * unix/tkUnixColor.c: * unix/tkUnixEmbed.c: * unix/tkUnixEvent.c: * unix/tkUnixFocus.c: * unix/tkUnixFont.c: * unix/tkUnixSelect.c: * unix/tkUnixSend.c: * unix/tkUnixWm.c: * win/tkWin3d.c: * win/tkWinButton.c: * win/tkWinColor.c: * win/tkWinDialog.c: * win/tkWinDraw.c: * win/tkWinEmbed.c: * win/tkWinFont.c: * win/tkWinPixmap.c: * win/tkWinPointer.c: * win/tkWinScrlbr.c: * win/tkWinWm.c: * win/tkWinX.c: FossilOrigin-Name: a08e5aacfc9f6c5a344c2d05454773dac90710c2
* Applied companion patch for Tcl Patch 585105,dgp2002-08-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | 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) FossilOrigin-Name: 5603f01aa35a127f83db9bb68f3b1ff9e5bb64de
* Added TIP#48 style engine implementationdkf2002-06-181-28/+148
| | | | | | Frederic Bonnet to supply docs+tests as soon as possible. FossilOrigin-Name: 11b699666df157085f2e86bb3f89b9042dc481cf
* * 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] FossilOrigin-Name: 85e5c7aa1baa3bd2b7bdb971f3cf83f4f5573723
* Register Tk's object types with Tcl (Tcl Bug 450545)dkf2001-08-151-4/+4
| | | FossilOrigin-Name: 04f99fd0ff4d4a4cd5f360ae3d26fbd1efbd4647
* * generic/tkConfig.c (Tk_InitOptions): Addedericm2000-10-121-1/+10
| | | | | | | | Tcl_IncrRefCount/Tcl_DecrRefCount calls on valuePtr, to prevent memory leaks when the value object comes from the option database. [Bug: 6275]. FossilOrigin-Name: 82cff3a21c654d5dfe8166d744c8475afd2a52a6
* * doc/SetOptions.3: Added note that restoreProc and freeProc mayericm2000-10-011-4/+6
| | | | | | | | | | be NULL. * generic/tkConfig.c (Tk_RestoreSavedOptions): For custom options, added test that the restoreProc is not NULL, to allow for custom options that don't care about supporting Tk_RestoreSavedOptions. FossilOrigin-Name: 6032025460a72bbd2c54d805646f324f4973acef
* * generic/tkTest.c: Fixed tests to use updated API.ericm2000-09-291-3/+5
| | | | | | | | | | | | | * doc/SetOptions.3: * generic/tk.h: * generic/tkConfig.c: Changed interface for Tk_CustomOptionSetProc and Tk_CustomOptionGetProc; these now take a pointer to the start of the widget record, and an integer offset to the slot for the option value, instead of just a pointer to the slot. This allows more sophisticated options to do interesting things based on other data in the widget record. FossilOrigin-Name: ec369c24d18e5de8d10ac7c7932338a0ed1267d0
* * generic/tk.h: Added declaration of Tk_ObjCustomOption structure,ericm2000-09-171-2/+41
| | | | | | | | | | | | | | | | | | | | | | | | | used for TK_OPTION_CUSTOM, and typedef's of the functions Tk_CustomOptionSetProc, Tk_CustomOptionGetProc, Tk_CustomOptionRestoreProc, and Tk_CustomOptionFreeProc, used for TK_OPTION_CUSTOM. * doc/SetOptions.3: Added documentation of TK_OPTION_CUSTOM, and section "CUSTOM OPTION TYPES" explaining how to create and use custom options. * tests/config.test: Added tests for custom option type. * generic/tkTest.c: Added test support for TK_OPTION_CUSTOM to TestobjconfigObjCmd. Added CustomOption* functions to implement a test custom option. * generic/tkConfig.c: Added new option type TK_OPTION_CUSTOM, which allows the definition of custom option types by creating parsing, printing, freeing, and restoring procedures for a custom option. This is needed by the text and canvas widgets if they are to be fully objectified. FossilOrigin-Name: cfd325633d1045b55de2e1b5cfae2dda6e88ea7b
* * doc/SetOptions.3: Updated documentation to reflect support forericm2000-08-101-8/+18
| | | | | | | | | | | | | | | | | | | | TK_OPTION_NULL_OK for TK_OPTION_DOUBLE and TK_OPTION_PIXELS. * generic/tkConfig.c: Added for TK_OPTION_NULL_OK support for TK_OPTION_DOUBLE and TK_OPTION_PIXELS. * doc/place.n: Updated, reformatted manual entry. * tests/place.test: Added many tests. * generic/tkPlace.c (Tk_PlaceObjCmd): Updated to use Tk widget-option management facilities to manage place options (-x, -y, etc.), which simplifies the placer code. Added support for [place configure pathName] and [place configure pathName -option], similar to the behavior of the configure subcommand supported by widgets. FossilOrigin-Name: 375354145259dc80ebd6b9e71d049edc3000944e
* * doc/SetOptions.3: Added information about TK_OPTION_NULL_OK withericm2000-05-171-26/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. FossilOrigin-Name: 107c0be19713ca6aedb57383ae53c62d430c9280
* * doc/button.n: Added documentation for link relief.ericm2000-05-101-3/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/button.test: Added tests for link relief for buttons. * generic/tk.h (TK_CONFIG_LINK_OK): Added definition of TK_RELIEF_LINK, TK_OPTION_LINK_OK and TK_CONFIG_LINK_OK. [RFE: 4348] * generic/tk3d.c: Added support for link relief. [RFE: 4348] * mac/tkMacButton.c (TkpDisplayButton): * unix/tkUnixButton.c (TkpDisplayButton): Added support for link relief. [RFE: 4348] * generic/tkOldConfig.c (Tk_ConfigureWidget): * generic/tkConfig.c (DoObjConfig): Added understanding of link relief, which is allowed only for widgets that have TK_OPTION_LINK_OK or TK_CONFIG_LINK_OK set for the "-relief" option. [RFE: 4348] * generic/tkButton.c: Added TK_OPTION_LINK_OK to "-relief" option for buttons. [RFE: 4348] * win/tkWinWm.c (EX_TRANSIENT_STYLE): Removed WS_EX_TOOLWINDOW style bit, so that transient windows have full-size titlebars (like the tk_getOpenFile dialog). * win/tkWinMenu.c (GetMenuSeparatorGeometry): Tweaked height requested for separator bars to be (linespace - (2*descent)) instead of just (linespace); this makes the separator occupy a more correct amount of vertical space. [Bug: 5303]. FossilOrigin-Name: 4194a8ac77bf8dfeaa5e9522117ac35c829e9897
* * generic/tkConfig.c (DoObjConfig): removed direct setting ofhobbs2000-04-251-2/+4
| | | | | | interp->result. FossilOrigin-Name: 16ebd2716c25dc2d2a5ec36fd55a75c881802cb1
* * generic/tk.h:hobbs1999-11-231-3/+7
| | | | | | | | | * generic/tkConfig.c: added support for TK_OPTION_DONT_SET_DEFAULT as equiv for TK_CONFIG_DONT_SET_DEFAULT * generic/tkListbox.c: added TK_OPTION_DONT_SET_DEFAULT to the item specs FossilOrigin-Name: 017386d45f83dce3583efada3dfbc9519df1322e
* Merged 8-1-0 into mainline.rjohnson1999-04-211-1/+1
| | | FossilOrigin-Name: 0447cf267ea555fcba90be565b63fc310b3d0afb
* fixed Tk comment errorssurles1999-04-161-2/+2
| | | FossilOrigin-Name: 1eb99ab13b42e37ca5c220def4ad02e7f05e5718
* * Merged 8.1 branch into the main trunkstanton1999-04-161-692/+1726
| | | FossilOrigin-Name: 1120dc4257448ed1955333e682de48e2940cc741
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
| | | FossilOrigin-Name: fb58b663f313796e8ed3115f92d657f0cae1d575
* Initial revisionrjohnson1998-04-011-0/+990
FossilOrigin-Name: 2bf55ca9aa942b581137b9f474da5ad9c1480de4