summaryrefslogtreecommitdiffstats
path: root/generic/tkOption.c
Commit message (Collapse)AuthorAgeFilesLines
* more places convertedjan.nijtmans2013-01-241-1/+1
|
* Merge core-8-5-branchjan.nijtmans2013-01-241-2/+2
|\ | | | | Various Tcl_GetIndexFromObj -> Tcl_GetIndexFromObjStruct changes.
* | more reorganization of error codes: safety is common failure modedkf2012-07-301-1/+1
| |
* | Much more cleaning up of result handling.dkf2012-07-231-14/+16
| |
* | Working towards adding all the Tcl_SetErrorCode calls that should be there.dkf2012-07-161-17/+14
| | | | | | ** WORK IN PROGRESS **
* | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ | |/
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * * generic/tkWindow.c (DeleteWindowsExitProc): added commentshobbs2006-03-301-2/+6
| | | | | | | | | | | | | | | * generic/tkOption.c (TkOptionDeadWindow): handle OptionThreadExitProc being called before DeleteWindowsExitProc.
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-14/+12
| | | | | | | | | using useful casts internally.
* | | use -pipe for gcc on win32 (mingw/cygwin)nijtmans2010-02-131-5/+7
| | | | | | | | | | | | | | | | | | make sure that TkpCmapStressed is exported clean up unused Tk_CreatePhotoOption Make more internal arrays "const"
* | | - eliminate some unnessary type castsnijtmans2009-02-031-3/+3
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | more internal -Wwrite-strings warning fixesnijtmans2008-10-301-3/+3
| | |
* | | Add "const" to many internalnijtmans2008-10-171-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.
* | | Use ckrealloc to resize arrays...dkf2008-08-211-11/+7
| | |
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-40/+37
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | Tidy up some variable types.patthoyts2007-11-171-2/+3
| |
* | header cleanupdgp2007-09-071-2/+1
| |
* | Cleaning up whitespace, comments, declarations. No functional changes.dkf2007-06-241-30/+30
| |
* | Tackle [Bug 1711985]dkf2007-05-031-6/+5
| |
* | Eliminate use of (VOID*) casts when calling memset or memcpy.dkf2007-04-171-6/+6
| |
* | * generic/tkOption.c (TkOptionDeadWindow): handlehobbs2006-03-301-2/+6
| | | | | | | | OptionThreadExitProc being called before DeleteWindowsExitProc.
* | Lots of ANSIfying of function decls.dkf2005-11-171-74/+74
| | | | | | | | Also a few spots where code has been cleaned up more completely.
* | Getting more systematic about styledkf2005-08-101-395/+371
|/ | | | | 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
* 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)
* * generic/tkBind.c (TkBindDeadWindow):mdejong2002-06-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle case where Tk_DestroyWindow is invoked on clipboard and send windows. * generic/tkClipboard.c (TkClipCleanup): Invoke Tk_DestroyWindow to cleanup the dispPtr->clipWindow. Call Tcl_Preserve and Tcl_Release on the window to avoid an invalid memory ref on shutdown. * generic/tkEvent.c (Tk_HandleEvent): Panic if XCreateIC is invoked twice for the same window. This should never happen, the check were just added to make sure it does not since this could lead to crashes in XCloseIM. * generic/tkFocus.c (TkFocusDeadWindow): Handle case where Tk_DestroyWindow is invoked on clipboard and send windows. * generic/tkOption.c (TkOptionDeadWindow): Ditto. * generic/tkWindow.c (TkCloseDisplay): Move deletion of dispPtr->winTable after TkpCloseDisplay call since Tk_DestroyWindow uses it and could be called by TkpCloseDisplay for clipboard/send windows. Also invoke ckfree for the dispPtr instead of doing it in TkpCloseDisplay. (Tk_DestroyWindow): Check for a null winPtr->mainPtr before doing certain cleanup tasks so the we can invoke Tk_DestroyWindow on clipboard and send windows. We need to do this so that XDestroyIC will get invoked for the input contexts of each window. * mac/tkMacXStubs.c (TkpCloseDisplay): Don't free the displayPtr since this is now done in TkCloseDisplay. * unix/tkUnixEvent.c (TkpCloseDisplay, OpenIM): Remove conditional compilation around calls to XCloseIM since I am confident that the crashes related to input contexts has been fixed. Don't free the displayPtr since this is now done in TkCloseDisplay. * unix/tkUnixSend.c (TkSendCleanup): Invoke the Tk_DestroyWindow method to cleanup the special send window. This will call XDestroyIC and thereby avoid a crash in XCloseIM. The send window needs to be Tcl_Preserve and Tcl_Release to avoid an invalid memory ref on shutdown. * win/tkWinX.c (TkpCloseDisplay): Don't free the displayPtr since this is now done in TkCloseDisplay.
* * generic/tkOption.c (Tk_GetOption): Allocatemdejong2002-06-151-2/+2
| | | | | | memory with ckalloc not malloc. This keeps Tk from erroring out when built with TCL_MEM_DEBUG.
* * generic/tkOption.c (OptionThreadExitProc): freed tsd optionhobbs2002-04-121-1/+38
| | | | | stacks on thread exit. (Tk_GetOption): free mem used to get Tk_Uid
* * generic/tkOption.c (ReadOptionFile): fixed Tcl_Seek casting tohobbs2002-02-221-3/+3
| | | | remove warnings (we expect no option files with be > 2GB).
* * Updated callers of Tcl_SplitList and Tcl_Merge.dgp2002-01-251-6/+7
| | | | | | | | | * Updated callers of Tcl_GetStringResult. Rewrote PrintScrollFractions to ScrollFractions to stop scribbling directly on interp->result. * Updated callers of Tcl_GetVar, Tcl_GetVar2 * Updated callers of Tcl_SplitPath, Tcl_JoinPath, and Tcl_TranslateFileName.
* * 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]
* Added additional comments regarding the internal representation of theericm2000-05-301-1/+30
| | | | option database.
* Added initializer for classId variable in Tk_GetOption.ericm2000-05-271-2/+2
|
* Comment fixup.ericm2000-05-271-4/+4
|
* * generic/tkOption.c (Tk_GetOption): Extended Tk_GetOption toericm2000-05-271-28/+141
| | | | | | | | | | | support a new syntax for option names in option tables. If the option name has an embedded ".", it indicates that the name field contains both an option name and an overriding widget class, in the form "class.option". The lookup for the option value will be performed as though the widget class is that specified, rather than the actual widget class. (SetupStacks): Replaced several lines of array element copying with a for loop for conciseness.
* * tests/xmfbox.test: Updated tests.ericm2000-03-241-76/+93
| | | | | | | * generic/tkWindow.c: * generic/tkInt.h: Updated Tcl_OptionCmd -> Tcl_OptionObjCmd * generic/tkOption.c: Tcl_Obj'ectified the "option" command.
* * Merged 8.1 branch into the main trunkstanton1999-04-161-114/+154
|
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-04-011-0/+1397