summaryrefslogtreecommitdiffstats
path: root/generic/tkWindow.c
Commit message (Collapse)AuthorAgeFilesLines
* Upgraded frame to use the newer TK_OPTIONpspjuth2001-05-281-3/+3
| | | | | | | style when processing configuration options. Some cleanup of bad comments and bad code. [part of patch #420861] FossilOrigin-Name: 1832807b99bc1a5da1cd0ec94688656e4901cab6
* Overall change: Implemented TIP 5, which exportsericm2000-11-221-8/+8
| | | | | | | | | | | 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. FossilOrigin-Name: df44e48c3137a98d587cec736ae6ffa531369353
* added comments about Tcl_SetMainLoop call effectshobbs2000-11-031-1/+9
| | | FossilOrigin-Name: 3cd8c062167583791cc00969cabf65c2bdc159f3
* * generic/tkWindow.c (Initialize): added call to Tcl_SetMainLoop.hobbs2000-11-031-1/+3
| | | | | | | This only has effect when tclsh is run (not wish), and then Tk is loaded in interactively. FossilOrigin-Name: 332c437389b470e33cffbdf9c89d939df72a6ccf
* * generic/tkCmds.c (Tk_WinfoObjCmd): Added check forericm2000-10-051-10/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | 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. FossilOrigin-Name: bde3bf273a9657cee6bf2b48ef452ad7861327ec
* * tests/place.test: Extended test suite to test error returns fromericm2000-08-081-2/+2
| | | | | | | | | | | | | | [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. FossilOrigin-Name: ceaed590c0da72bd4bb7354335da62e83cffff33
* * generic/tkWindow.c: Updated [selection] command entry to useericm2000-08-071-2/+2
| | | | | | | | | | | | | | | 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. FossilOrigin-Name: 710af28cbcfe1e1df92d60de1e3d19ce0291b1ab
* * generic/tkWindow.c: Updated "grab" command entry to useericm2000-08-041-2/+2
| | | | | | | | | | | | | | | 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. FossilOrigin-Name: 0f65866ab817387cf8132dc5292f80dcbcbdfa5c
* * generic/tkInt.h: Replace Tk_BindCmd prototype withericm2000-08-031-2/+2
| | | | | | | | | | | 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. FossilOrigin-Name: 30698c56dc85982af1fda753f98c2a425a179124
* * tests/bind.test: Tweaked expected error messages for [bindtags]ericm2000-08-031-2/+2
| | | | | | | | | | | | | | | | | | 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. FossilOrigin-Name: 1bf52b230a4740dbd765dd60d1a6015e318e1c44
* * generic/tkCmds.c (Tk_TkwaitObjCmd): Tcl_Obj'ified [tkwait] command.ericm2000-08-021-2/+2
| | | | | | | | | | * generic/tkWindow.c: Updated "tkwait" command entry to use Tcl_Obj'ified command. * generic/tkInt.h: Replace Tk_TkwaitCmd prototype with Tk_TkwaitObjCmd prototype. FossilOrigin-Name: 5fd841f0e74af9929159289044b78be5e1689926
* * generic/tkInt.h: Replaced prototype for Tk_MessageCmd withericm2000-08-021-3/+3
| | | | | | | | | | | | | | | | | | | 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. FossilOrigin-Name: f289c4cb5f1ca817ba13c30de1a0f296111ab22c
* * doc/spinbox.n: (new file) docs for spinbox widgethobbs2000-05-291-1/+2
| | | | | | | | | | | | | * 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 FossilOrigin-Name: 73da332473d5aadcb1fa8f6a108a1947d501e87e
* * doc/Tk_Init.3: Added Tk_SafeInit information [Bug: 1884].ericm2000-04-281-3/+3
| | | | | | * doc/keysyms.n: Man page enumerating keysyms [RFE: 1645]. FossilOrigin-Name: 9e0e0636bbf7fa03db8e502fc0ae6e8916359f29
* * tests/xmfbox.test: Updated tests.ericm2000-03-241-2/+2
| | | | | | | | | * generic/tkWindow.c: * generic/tkInt.h: Updated Tcl_OptionCmd -> Tcl_OptionObjCmd * generic/tkOption.c: Tcl_Obj'ectified the "option" command. FossilOrigin-Name: b8e5743cfc2020bb44f279744a1abf1c11643381
* * generic/tkOldConfig.c: Added check for NULL tkwin value inericm2000-03-071-1/+10
| | | | | | | | | Tk_ConfigureWidget [Bug: 4079] * generic/tkWindow.c: Added check for NULL tkwin value in Tk_NameToWindow [Bug: 4079] FossilOrigin-Name: 39ba45d61ca63c0a72d23246b9a94866fe3a6bb6
* * generic/tkCmds.c:hobbs1999-12-161-1/+2
| | | | | | | | | | | | | | | | | * generic/tkEvent.c: * generic/tkWindow.c: * generic/tkInt.h: add 'tk useinputmethods ?-display win? ?bool?' call to provide support for disabling/enabling the use of XIM on X. This was previously all done at compile time, and always on. Now it * generic/tkCanvUtil.c: fixed bug in Tk_CanvasPsOutline that freed mem it shouldn't. * generic/tkFont.c: added "bitstream cyberbit" (popular Windows CJK font) to list of font fallbacks. (kenny) [Bug: 2407] FossilOrigin-Name: 3f23335ddf3083f408deedfb90188f6c2fe8a533
* * generic/tkStubInit.c:hobbs1999-12-141-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkDecls.h: * generic/tkIntXlibDecls.h: * generic/tkInt.decls: added XSetDashes and XWarpPointer * generic/tk.decls: added Tk_CreateSmoothMethod, and reserved two spots * generic/tk.h: added Tk_SmoothMethod struct, state item to canvas record, #defines for item state, support for using old char*-based canvas item C creation procedures with -DUSE_OLD_CANVAS, Tk_Dash, Tk_TSOffset (-offsets) & Tk_Outline structs and #defs, decls for dash, outline and postscript routines * generic/tkBind.c: added support for Quadruple clicks, and added the -warp option to 'event' with pointer warping routines * xlib/xgc.c: * generic/tkRectOval.c: * generic/tkCanvArc.c: * generic/tkCanvBmap.c: * generic/tkCanvImg.c: * generic/tkCanvLine.c: * generic/tkCanvPoly.c: * generic/tkCanvPs.c: * generic/tkCanvText.c: * generic/tkCanvUtil.c: * generic/tkCanvWind.c: * generic/tkCanvas.c: * generic/tkCanvas.h: Canvas and items received overhaul to with the addition of the dash patch (Nijtmans, et al) This includes objectification of the 'canvas' command, as well as support for (where appropriate) dashes in items, extended stipple support, state for all items, and postscript generation of images and windows. See the new canvas man page for related docs. * generic/tkEntry.c: added entry widget validation, see entry.n * generic/tkEvent.c: on simulated events, ButtonPress should be matched with ButtonRelease to be correct * generic/tkFont.c: corrected possible null reference * generic/tkFrame.c: made frame a Tcl_Obj based command * generic/tkGet.c: added TkGetDoublePixels * generic/tkImage.c: bug fixes from Img patch and new Tk_PostscriptImage and Tk_SetTSOrigin functions * generic/tkImgBmap.c: new ImgBmapPostscript function * generic/tkImgPhoto.c: new Tk_CreatePhotoOption, Tk_DitherPhoto * generic/tkInt.h: declarations for some new functions * generic/tkMessage.c: reworked relief drawing * generic/tkOldConfig.c: added TK_CONFIG_OBJS so old style ConfigureWidget calls can pass in Tcl_Obj arrays * generic/tkScrollbar.c: * generic/tkScrollbar.h: made -orient use an option table * generic/tkText.c: * generic/tkText.h: made -wrap and -state use option tables * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextImage.c: * generic/tkTextMark.c: * generic/tkTextTag.c: * generic/tkTextWind.c: added support for -elide and -state hidden * generic/tkTrig.c: changed TkMakeBezierCurve to support returning the upper limit of points needed for spline * generic/tkUtil.c: new option table parsing routines * generic/tkWindow.c: init'ing of warp stuff, mouseButtonState FossilOrigin-Name: 363f59223dec9d67615c7ab2b8e68ff6a543ddd6
* * generic/tkInt.h:hobbs1999-12-031-4/+4
| | | | | | | | * generic/tkWindow.c: * generic/tkCmds.c: converted Tk_DestroyCmd, Tk_LowerCmd and Tk_RaiseCmd to their ObjCmd equivalent. FossilOrigin-Name: 226627d1b1f73de509344a07dc7d0f72ed256ec6
* * generic/tkWindow.c: Changed "listbox" mapping from old-school toericm1999-11-171-2/+2
| | | | | | | | | | | | | new-school objectified command. * generic/tkListbox.c: Objectified listbox; added support for -listvar option. Converted internal structure to use a Tcl list object to store the data. * generic/tkInt.h: Changed reference to Tk_ListboxCmd to Tk_ListboxObjCmd. FossilOrigin-Name: 11da26206de1c6f862b367eb77ba315aea909b56
* * generic/tk.h:hobbs1999-10-291-3/+3
| | | | | | | | | | | | | | | | | * generic/tkCmds.c: * generic/tkImage.c: * generic/tkImgBmap.c: * generic/tkImgGIF.c: * generic/tkImgPPM.c: * generic/tkImgPhoto.c: * generic/tkInt.h: * generic/tkTest.c: * generic/tkWindow.c: * tests/imgPhoto.test: added Img patch (Nijtmans) with docs, headers #def'd with USE_OLD_IMAGE. Upgrades image stuff to Tcl_Obj API, adds alpha channel (images are now 32 bpp) FossilOrigin-Name: ca63b7628643ea25e54213761cf357f6ad932491
* 1999-09-16 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-09-211-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkFont.c: fixed processing of font options and error returned [Bug: 2075] * win/tkWinWm.c: fixed bug in 'wm deiconify' that raised the wrong toplevel, and changed it to not set focus on overridden toplevels 1999-09-15 Jeff Hobbs <hobbs@scriptics.com> * unix/aclocal.m4: added fix for FreeBSD-[1-2] recognition [Bug: 2070] and fix to AIX-* to get ldAix right [Bug: 2624], fixed AIX version check (readjust from 8-21 fix) and several other config fixes for AIX * mac/tkMacMenubutton.c: * unix/tkUnixMenubu.c: fixed permanently stippled menubutton image * win/tkWinButton.c: fixed possible pointer smash [Bug: 2733] 1999-09-14 Jeff Hobbs <hobbs@scriptics.com> * win/tkWinMenu.c: fix for stack overrun in GetTextFace [Bug: 909] FossilOrigin-Name: 8b23a0f7f176faa57f568a25735ed084b2666a90
* 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-152/+267
| | | FossilOrigin-Name: 1120dc4257448ed1955333e682de48e2940cc741
* integrated stubs into 8.0 main branchstanton1999-03-101-2/+20
| | | FossilOrigin-Name: 4c74dd207943932e6d9a6d06a3ec11b8e4459199
* Removed old/unused function declarationsrjohnson1998-09-301-2/+2
| | | | | | | removed unused file on Mac implementation made bell cmd an obj cmd - improved it's test suite FossilOrigin-Name: 33ce8b59be46b5d385db551533ae8dac8fe8dc86
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
| | | FossilOrigin-Name: fb58b663f313796e8ed3115f92d657f0cae1d575
* plugin updateswelch1998-06-271-4/+77
| | | FossilOrigin-Name: befe66b22e9b72d0c0556aa1f4032dfae719f2e0
* Initial revisionrjohnson1998-04-011-0/+2763
FossilOrigin-Name: 2bf55ca9aa942b581137b9f474da5ad9c1480de4