summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Added type cast to (ClientData) for &CustomOption in option tests.ericm2000-10-301-3/+3
|
* * win/tkWinDraw.c (RenderObject): Applied patch from [Bug: 6368],ericm2000-10-241-6/+6
| | | | | | | | | | | which corrects rendering of 1-pixel wide stippled lines on Windows. * generic/tkCanvLine.c (DisplayLine): Applied patch from [Bug: 6368], corrects bugs relating to use of active- and disabledwidth values for displaying lines (disabledwidth was never used, and activewidth/disablewidths would only possibly be used when greater than default width, rather than when simply not equal to default width).
* Added comment marking "new in 8.4a2" declsericm2000-10-211-1/+3
|
* * 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].
* * generic/tkCmds.c (Tk_WinfoObjCmd): Added check forericm2000-10-056-17/+133
| | | | | | | | | | | | | | | | | | | | | | | | TK_ANONYMOUS_WINDOW flag in the [winfo children] subcommand; if set, the window will not be printed in the list of children. * doc/CrtWindow.3: Added entry for Tk_CreateAnonymousWindow. * generic/tkWindow.c (Tk_CreateAnonymousWindow): New API for creating anonymous windows. These windows are manipulable from C, but not from Tcl, because they have no pathname associated with them. They are used initially by widgets that do rubber-band resizing (panedwindow, multi-column listbox, etc.), and may be useful for other widgets as well (dropbox, combobox). (Tk_DestroyWindow): Added check for TK_ANONYMOUS_WINDOW flag when determining whether to generate a DestroyNotify event. * generic/tkStubInit.c: * generic/tkDecls.h: Regen'd from tk.decls. * generic/tk.decls: Added Tk_CreateAnonymousWindow declaration. * generic/tk.h: Added TK_ANONYMOUS_WINDOW flag for Tk_Window's.
* * doc/MaintGeom.3: Noted that Tk_MaintainGeometry handles directericm2000-10-051-1/+30
| | | | | | | | | | | | | | | | | descendants properly. * generic/tkGeometry.c (Tk_MaintainGeometry): Added a check for the case in which the slave window is a direct descendant of the master window. In this case, we need not set up the additional infrastructure normally provide by Tk_MaintainGeometry, because we can rely on the parent/child relationship to handle it for us implicitly. In this case, Tk_MaintainGeometry just calls directly to Tk_MoveResizeWindow. This allows geometry managers to simply always use Tk_MaintainGeometry to maintain geometry for slaves, and avoid doing the direct descendant check themselves. (Tk_UnmaintainGeometry): Added a matching check for the direct descendant case; in this case, Tk_UnmaintainGeometry simply returns immediately.
* * 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.
* * 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.
* Fix bitmaps so that the same bitmap will not be useddrh2000-09-301-7/+12
| | | | | | on two difference screens of the same display. Without this fix you get a BadMatch error from the X-server when you try to use a bitmap on two screens at once.
* * generic/tkTest.c: Fixed tests to use updated API.ericm2000-09-293-21/+28
| | | | | | | | | | | * 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.
* * generic/tk.h: Added declaration of Tk_ObjCustomOption structure,ericm2000-09-173-5/+226
| | | | | | | | | | | | | | | | | | | | | | | 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.
* * doc/HWNDToWindow.3:ericm2000-09-072-14/+2
| | | | | | | | | | | | | | | | * doc/GetHWND.3: Changed synopsis to indicate the tkPlatDecls.h should be included, not tk.h. * generic/tkPlatDecls.h: Removed #include <windows.h> for Windows, a better solution for now is to update the docs and have extension authors #include <tkPlatDecls.h>. * generic/tk.h: Removed '#include "tkPlatDecls.h"', as the incorrect inclusion order between windows.h/tkPlatDecls.h causes build conflicts on Windows. * generic/tkPlatDecls.h: Added #include <windows.h> for Windows, so that HWND, etc., are defined properly.
* * generic/tkPlatDecls.h: Added #include <windows.h> for Windows,ericm2000-09-061-1/+6
| | | | so that HWND, etc., are defined properly.
* * README:hobbs2000-09-061-3/+3
| | | | | | | * generic/tk.h: * unix/configure.in: * unix/tk.spec: * win/configure.in: updated to patchlevel 8.4a2
* * generic/tkGrab.c (Tk_GrabObjCmd): changed len arg from size_t tohobbs2000-09-061-2/+2
| | | | int to fix pedantic warning.
* * generic/tkMessage.c (MessageWidgetObjCmd): initialized result tohobbs2000-09-061-2/+3
| | | | avoid pedantic warning.
* * win/makefile.vc (install-libraries):ericm2000-09-021-2/+8
| | | | | | | | | * win/Makefile.in (install-libraries): * unix/Makefile.in (install-libraries): Added tkPlatDecls.h to list of header files to install. * generic/tk.h: Added #include "tkPlatDecls.h", which declares the platform specific component of the public Tk stubs API's.
* * 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.
* Comment correction.ericm2000-08-211-3/+3
|
* Removed unused variable left behind from previous check-in.ericm2000-08-191-2/+1
|
* * generic/tkImgPhoto.c (ImgPhotoGet): Removed redundant call toericm2000-08-181-11/+2
| | | | | | DitherInstance; this call was formerly being made from ImgPhotoGet->ImgPhotoConfigureInstance->DitherInstance, and ImgPhotoGet->DitherInstance. The second call was removed.
* * doc/SetOptions.3: Updated documentation to reflect support forericm2000-08-103-334/+346
| | | | | | | | | | | | | | | | | | 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.
* * tests/place.test: Extended test suite to test error returns fromericm2000-08-083-266/+370
| | | | | | | | | | | | [place]. * generic/tkInt.h: Replaced Tk_PlaceCmd prototype with Tk_PlaceObjCmd prototype. * generic/tkWindow.c: Updated [place] command entry to use new Tcl_Obj interface. * generic/tkPlace.c (Tk_PlaceObjCmd): Tcl_Obj'ified [place] command.
* * generic/tkWindow.c: Updated [selection] command entry to useericm2000-08-073-259/+304
| | | | | | | | | | | | | new Tcl_Obj interface. * generic/tkInt.h: Replaced Tk_SelectionCmd prototype with Tk_SelectionObjCmd prototype. * tests/select.test: Updated test suite to recognize standardized error messages. * generic/tkSelect.c (Tk_SelectionObjCmd): Tcl_Obj'ified [selection] command.
* * generic/tkWindow.c: Updated "grab" command entry to useericm2000-08-044-114/+175
| | | | | | | | | | | | | Tcl_Obj'ified command. * generic/tkInt.h: Replaced Tk_GrabCmd prototype with Tk_GrabObjCmd prototype. * tests/grab.test: Initial suite of tests for [grab] command. * generic/tkGrab.c (Tk_GrabObjCmd): Tcl_Obj'ified [grab] command. * generic/tkCmds.c: Fixed casting problem in Tk_BindtagsObjCmd.
* * generic/tkInt.h: Removed Tk_AfterCmd function prototype; theericm2000-08-032-5/+2
| | | | | | | | function does not exist (since 7.4p3). * generic/tk.h: Removed Tk_AfterCmd => Tcl_AfterCmd #define; nothing in the core uses it, and Tcl_AfterCmd doesn't exist anymore anyway.
* * generic/tkInt.h: Replace Tk_BindCmd prototype withericm2000-08-033-25/+54
| | | | | | | | | Tk_BindObjCmd prototype. * generic/tkWindow.c: Updated "bind" command entry to use Tcl_Obj'ified command. * generic/tkCmds.c (Tk_BindObjCmd): Tcl_Obj'ified [bind] command.
* * tests/bind.test: Tweaked expected error messages for [bindtags]ericm2000-08-034-45/+59
| | | | | | | | | | | | | | | | to comply with updated error messages. * generic/tkMenu.c (CloneMenu): Replaced calls to Tk_BindtagsCmd with equivalent calls to Tk_BindtagsObjCmd. * generic/tkInt.h: Replace Tk_BindtagsCmd prototype with Tk_BindtagsObjCmd prototype. * generic/tkWindow.c: Updated "bindtags" command entry to use Tcl_Obj'ified command. * generic/tkCmds.c (Tk_BindtagsObjCmd): Tcl_Obj'ified [bindtags] command.
* * generic/tkCmds.c (Tk_TkwaitObjCmd): Tcl_Obj'ified [tkwait] command.ericm2000-08-023-74/+85
| | | | | | | | * generic/tkWindow.c: Updated "tkwait" command entry to use Tcl_Obj'ified command. * generic/tkInt.h: Replace Tk_TkwaitCmd prototype with Tk_TkwaitObjCmd prototype.
* * generic/tkGrid.c (Tk_GridCmd): Split [grid] subcommands intoericm2000-08-021-535/+794
| | | | separate functions instead of inlining them all in Tk_GridCmd.
* * generic/tkInt.h: Replaced prototype for Tk_MessageCmd withericm2000-08-023-165/+207
| | | | | | | | | | | | | | | | | prototype for Tk_MessageObjCmd. * generic/tkWindow.c: Marked message command as using the new MessageObjCmd instead of the old MessageCmd. * tests/message.test: Added tests for the message widget. * generic/tkMessage.c: Obj'ified the message widget. * generic/tkInt.h: Removed prototype for Tk_ClipboardCmd, added prototype for Tk_ClipboardObjCmd. * generic/tkWindow.c: Updated function pointers for clipboard command to use Tcl_Obj version.
* * generic/tkInt.h: Removed prototype for Tk_ClipboardCmd, addedericm2000-08-012-147/+169
| | | | | | | | | | | | | prototype for Tk_ClipboardObjCmd. * generic/tkWindow.c: Updated function pointers for clipboard command to use Tcl_Obj version. * tests/clipboard.test: Updated tests to expect standard error messages. * generic/tkClipboard.c (Tk_ClipboardObjCmd): Obj'ified Tk_ClipboardCmd -> Tk_ClipboardObjCmd.
* * doc/label.n: Added -disabledforeground to list of options [Bug: 6053].ericm2000-07-281-4/+3
| | | | | * generic/tkListbox.c: Changed resource class for disabledforeground to "DisabledForeground".
* * mac/tkMacDefault.h:ericm2000-07-281-93/+183
| | | | | | | | | | | | | | | | | * unix/tkUnixDefault.h: Added default values for listbox disabledforeground and state. * win/tkWinDefault.h: Changed default listbox background color to white and listbox selection borderwidth to 0, in keeping with the "Microsoft Windows User Experience"; added default values for listbox disabledforeground and listbox state. * doc/listbox.n: Added documentation for -state option. * generic/tkListbox.c: Added support for -state to listbox. [RFE: 6052]. * tests/listbox.test: Tests for listbox disabled state.
* * tests/text.test: Added tests for -regexp -nocase searches withericm2000-07-251-4/+11
| | | | | | | | | | backslash character classes. * generic/tkText.c (TextSearchCmd): Text search did not work properly when -regexp and -nocase were used, in combination with backslash character classes represented by capital letters (ie, \W, \M); altered implementation of -regexp -nocase searches to use new regexp interfaces to fix this problem. [Bug: 5988].
* * tests/text.test: Added tests for searching when text is elided.ericm2000-07-211-5/+9
| | | | | | | | * generic/tkText.c (TextSearchCmd): Text search was not returning the correct index when the search covered (but did not search) elided characters; corrected this by adjusting the match index by the number of elided characters preceeding the start of the match, just as is done with embedded windows, etc. [Bug: 5470].
* * generic/tkText.c (TextSearchCmd): Added a test for a NULLericm2000-07-191-2/+6
| | | | | segment pointer when doing backwards searches for "" on an empty text widget. [Bug: 6007].
* Just added comments about a Win2K OS bug with GetStdHandle(STD_OUTPUT_HANDLE).davidg2000-07-181-1/+18
| | | | No change was made to the code.
* * generic/tkStubImg.c (Tk_InitImageArgs): Applied patch from [Bug:ericm2000-07-171-1/+3
| | | | | | | 5990], from Anselm Lingnau, which correctly sets the value of useNewImage to 0 when the new image system is not to be used, instead of leaving it at -1, which causes the check to be performed more times than is really necessary.
* Applied patch from Nijtmans/Howlett to intialize nextPtr field of TkCursorericm2000-07-061-1/+2
| | | | structure when it is created, to prevent possible core dumps.
* * generic/tkFileFilter.c (AddClause): Cast to match function prototype.mo2000-07-061-4/+4
| | | | | | | | | | | | | | | * win/stubs.c (_XInitImageFuncPtrs): Add return value for function. * win/tkWinButton.c (buttonStyles, ButtonBindProc, ComputeStyle): Remove unused declarations. * win/tkWinColor.c (GetColorByName, GetColorByValue): Remove unused function declarations. * win/tkWinDialog.c (TrySetDirectory): Remove unused function declaration. * win/tkWinEmbed.c (TkWinEmbeddedEventProc): Cast to match function prototype. * win/tkWinMenu.c (winMenuMutex, MenuExitProc): Remove unused declaration. * win/tkWinWindow.c (StackWindow): Remove unused declaration. * win/tkWinWm.c (ConfigureEvent): Remove unused declaration. * win/tkWinX.c (winXMutex): Remove unused declaration. * xlib/ximage.c (XCreateBitmapFromData): Cast to match function prototype.
* * tests/imgPhoto.test: Added test for GIF writing code [Bug: 5823].ericm2000-07-051-47/+28
| | | | | * generic/tkImgGIF.c: Applied patch from Jan Nijtmans to fix a problem with the GIF writing code [Bug: 5823].
* * generic/tkMenu.c (DeleteMenuCloneEntries): Applied fix fromericm2000-06-271-2/+2
| | | | | [Bug: 5275], which corrected a segfault-causing indexing problem when deleting entries from torn-off menus.
* * generic/tk.h: added typdef for Tk_ClientMessageProchobbs2000-06-035-41/+198
| | | | | | | | | | | * generic/tkStubInit.c: * generic/tkDecls.h: * generic/tk.decls: Added Tk_CreateClientMessageHandler and Tk_DeleteClientMessageHandler declarations. * generic/tkEvent.c (Tk_HandleEvent): Added Tk_CreateClientMessageHandler and Tk_DeleteClientMessageHandler to allow adding event handlers that invoke for ClientMessage events. This is necessary to support unix dnd protocols.
* * canvas.test: added test for 5783.hobbs2000-06-031-3/+4
| | | | | * generic/tkCanvPoly.c (DisplayPolygon): added checks for the polygon fillGC not being empty to prevent segfault. [Bug: 5783]
* * generic/tkImgGIF.c: Changed defines for GIF87a/GIF89a to beericm2000-05-301-6/+8
| | | | | | static char arrays with integer initialization, to address EBCIDIC vs. ASCII encoding issues and to handle compilers that don't deal with "\xAB" syntax for specifying hex values in strings.
* Added additional comments regarding the internal representation of theericm2000-05-301-1/+30
| | | | option database.
* * doc/spinbox.n: (new file) docs for spinbox widgethobbs2000-05-293-198/+1703
| | | | | | | | | | | * generic/tkInt.h: added Tk_SpinboxObjCmd declaration * generic/tkEntry.c: added 'spinbox' widget - an extension of the entry widget type. * generic/tkWindow.c: added 'spinbox' to core Tk commands * library/spinbox.tcl: (new file) binding and helper procs for spinbox * library/tk.tcl: added spinbox.tcl to list of files to source * tests/entry.test: updated changed error messages * tests/spinbox.test: (new file) test suite for spinbox
* * generic/tk.h: added comments ot Tk_FakeWin structurehobbs2000-05-291-21/+21
|