summaryrefslogtreecommitdiffstats
path: root/generic/tkOption.c
Commit message (Collapse)AuthorAgeFilesLines
* 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