summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Try harder to avoid zero-length malloc()s... [Bug 404421]dkf2003-07-171-25/+38
|
* Rearranged code in ImgPhotoCmd to not use confusing fallthroughs in switches.dkf2003-07-171-28/+19
| | | | | [Bug 771988] Also TAB Police in Changelog...
* * generic/tkPack.c (ConfigureSlaves): silence compiler warningdgp2003-07-171-2/+2
| | | | [Bug 771982]
* * generic/tkPanedWindow.c (ArrangePanes): Ensure that the last panehobbs2003-07-171-3/+9
| | | | | * tests/panedwindow.test: shrinks instead of being clipped when resized below the reqsize. [Bug 748277] (spjuth)
* Make sure all options can be setpspjuth2003-07-161-2/+5
| | | | to their default value. [Bug #697652]
* * generic/tkWindow.c (Initialize): do not free uninit'ed dstring.hobbs2003-07-161-2/+1
| | | | [Bug 755906] (mistachkin)
* * generic/tkTextDisp.c (DisplayText): correct use of textPtr datahobbs2003-07-071-6/+3
| | | | with respect to Tcl_Release time. [Bug #767009]
* Fixed [Bug 749353] by making the removal of masters from the global image tabledkf2003-07-071-7/+21
| | | | | | | | aggressive when the interp is being deleted, and making the deletion code always check to see whether it should actually be deleting an entry or not. No tests as it comes under the heading of crash-on-bug, and the bug is not easy to excite (it requires a full script and interpreter deletion with lots of events about.)
* fix to menu clone deletion bugvincentdarley2003-05-303-71/+164
|
* text widget cleanup fixvincentdarley2003-05-274-41/+55
|
* The panedwindow widget now sizes right around unmapped windows. [Bug 738143]dkf2003-05-211-3/+10
|
* D'oh! Zero and one are not the same thing...dkf2003-05-211-138/+160
|
* Fixed test suite breakage that I inadvertently introduced [Bug 739965]dkf2003-05-191-21/+28
|
* Stopped warnings about signed/unsigned and strncmp() and added missing ↵dkf2003-05-193-86/+128
| | | | forward decl
* tip 113 implementationvincentdarley2003-05-1915-2502/+3652
|
* * generic/tkCanvPoly.c (PolygonToPostscript):hobbs2003-05-111-3/+6
| | | | | * tests/canvPs.test: correct crash when generating postscript for a single-line polygon (point) with no color. [Bug #734498] (wilm)
* Stop deleted images from showing up in the various [image *] operations.dkf2003-05-081-2/+37
| | | | Can't delete early though as that removes the link with widgets and image names.
* * generic/tkButton.h: Rewrote the handlinghobbs2003-04-262-18/+28
| | | | | | | | | | * generic/tkButton.c (TkButtonWorldChanged): of compound *buttons * mac/tkMacButton.c (TkpDisplayButton): to correctly display * macosx/tkMacOSXButton.c (TkpDisplayButton): mixture of disabledfg, * unix/tkUnixButton.c (TkpDisplayButton): selectcolor, indicator, * win/tkWinButton.c (TkpDisplayButton): etc. *buttons will now only stipple the image, unless no disabledfg is given, in which case it will stipple the whole button.
* * generic/tkCanvBmap.c: s/CreateBitmap/TkcCreateBitmap as Windowshobbs2003-04-181-5/+5
| | | | has a CreateBitmap function already.
* * generic/tkCursor.c: s/GetCursor/TkcGetCursor as Windows has ahobbs2003-04-181-7/+7
| | | | GetCursor func already, which causes compiler warnings.
* * generic/tkBind.c (TkpGetBindingXEvent): Add helper methodmdejong2003-04-142-3/+31
| | | | | | | | | | | | | | that can be used to query the XEvent* for the currently executing binding. * generic/tkInt.h: Declare TkpGetBindingXEvent. * win/tkWinMenu.c (MenuKeyBindProc, TkWinMenuKeyObjCmd, TkpInitializeMenuBindings): Rename MenuKeyBindProc to TkWinMenuKeyObjCmd and convert it into a Tcl command named tk::tkWinMenuKey. Bind keyboard accelerator actions to this Tcl command instead of using a native C binding. This makes it possible to extend the existing binding with Tcl code and makes the Windows version work just like the unix version.
* * generic/tkGrid.c (GridStructureProc, ConfigureSlaves):mdejong2003-03-123-96/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check for a NULL masterPtr and slavePtr in the GridStructureProc code to ensure that a Gridder created before some error condition is ignored when it comes to geometry calculations. This approach closely matches the pack implementation. Keep track of a -in argument to a grid command in order to detect the case of an already gridded widget that wants to change some options. The previous implementation could make repeated and unnecessary calls to Tk_ManageGeometry. Replace use of "parent" with "master" in comments throughout the file. * generic/tkPack.c (PackStructureProc): Check for a NULL masterPtr before other checks so that a slave created under certain error conditions is cleaned up properly. Replace use of "parent" with "master" in comments throughout the file. * generic/tkPlace.c (CreateSlave, ConfigureSlave, SlaveStructureProc): Don't call Tk_ManageGeometry in CreateSlave since this was causing incorrect results in some error cases. Rework the ConfigureSlave method so that slave setup is done in one place. The call to Tk_ManageGeometry was added to the one place where a slave is setup. When a slave is configured but the master is not changed, simply goto the scheduleLayout label. Check for a NULL master in SlaveStructureProc for the sake of readability. * tests/grid.test: * tests/pack.test: * tests/place.test: Add test to check that a winfo manager call does not return incorrect results after an error condition is hit. [Patch 693063]
* TIP#116 implementation. Docs still to come, tests will never be done becausedkf2003-03-067-76/+277
| | | | | they could never be done portably as they'd inevitably depend on the total amount of memory available to the process... :^(
* * README: Bumped version number ofdgp2003-03-041-8/+8
| | | | | | | | | | | | | | | | | * generic/tk.h: Tk to 8.5a0. * library/tk.tcl: * mac/README: * macosx/Wish.pbproj/project.pbxproj: * unix/README: * unix/configure.in: * unix/tk.spec: * win/README: * win/configure.in: * win/makefile.vc: * win/tcl.m4: * unix/configure: autoconf * win/configure:
* Make all %-expansions generate ?? when their event doesn't have the rightdkf2003-02-281-57/+92
| | | | underlying field to prevent a crash on Windows. [Bug #612110]
* * generic/tkMenu.c (TkMenuCleanup): make sure to reset statichobbs2003-02-261-2/+30
| | | | menusInitialized on finalize. [Bug #548729]
* * generic/tkListbox.c (ListboxSelectionSubCmd):hobbs2003-02-251-11/+15
| | | | | * tests/listbox.test: Allow 'selection includes' to respond when disabled (but only 'includes'). [Bug #632514]
* * generic/tkEntry.c (SpinboxWidgetObjCmd, EntryWidgetObjCmd):hobbs2003-02-251-13/+14
| | | | | | | * tests/entry.test: return 1 if selection is present even if * tests/spinbox.test: entry/spinbox is disabled, as selection get will still return the selection (although selection still ignore modify requests when entry/spinbox is disabled). [Bug #637828]
* Use the panedwindow's depth, not the screen's default depth. [Bug #671122]dkf2003-02-211-5/+3
|
* * tests/panedwindow.test:hobbs2003-02-211-3/+6
| | | | | * generic/tkPanedWindow.c (ValidSashIndex): corrected to note that 2 panes must exist before any one sash does. [tcllib Bug #689258]
* Fixed calculation of the last slave'spspjuth2003-02-201-5/+3
| | | | size when increasing the size of the panedwindow. [Bug #689099]
* Removed pointless static variable ZeroDataBlock from tkImgGIF.c [Bug #664788]dkf2003-02-201-5/+1
| | | | It served no useful purpose whatsoever...
* (EntrySetValue): removed unused code var. [Bug #664781]hobbs2003-02-181-3/+3
|
* (TkPostscriptImage): remove unused depth var. [Bug #664787]hobbs2003-02-181-3/+2
|
* (TextWidgetCmd): remove unused lastEnd var. [Bug #664790]hobbs2003-02-181-4/+3
|
* * generic/tkImgGIF.c (FileReadGIF): Ensure that the trashBuffer isdkf2003-02-181-9/+13
| | | | always deallocated on function exit to stop a potential memory leak.
* * generic/tkEvent.c (Tk_HandleEvent): Fixup buttonmdejong2003-02-182-3/+20
| | | | | | | | | | press state saving code, it was incorrectly converting normal motion events into button press and motion events in some cases. * generic/tkInt.h: Add mouseButtonWindow member to the TkDisplay structure. * tests/event.test: Add test case for faulty button motion logic.
* * README: Bumped to 8.4.2.hobbs2003-02-151-3/+3
| | | | | | | | | | | * generic/tk.h: * macosx/Wish.pbproj/project.pbxproj: * unix/configure: * unix/configure.in: * unix/tcl.m4: * unix/tk.spec: * win/configure: * win/configure.in:
* * generic/tkCanvArc.c (CreateArc): Rework canvas create itemhobbs2003-02-099-366/+355
| | | | | | | | | | | | | | * generic/tkCanvBmap.c (CreateBitmap): type coords handling to be * generic/tkCanvImg.c (CreateImage): consistent across types * generic/tkCanvPoly.c (CreatePolygon): and not pass empty coords * generic/tkCanvLine.c (CreateLine): to item creation procs. * generic/tkCanvText.c (CreateText): * generic/tkCanvWind.c (CreateWinItem): * generic/tkCanvas.c (CanvasWidgetCmd CANV_CREATE): * generic/tkRectOval.c (CreateRectOval): * tests/canvRect.test: * tests/canvText.test: * tests/canvas.test:
* Moved 'deletionEpoch' field from TkDisplay to TkMainInfo.jenglish2003-01-283-57/+61
| | | | | Reworked windowObj type. Fixes Tk Bug #671330 "segfault when e.g. deiconifying destroyed window"
* * generic/tkImage.c (Tk_ImageObjCmd): Added check to make suredkf2003-01-225-5/+76
| | | | | | | | | | | | that you're not creating an image named the same as .'s command, which refixes 220891, even when the name of the command has been changed with 'rename'. The error message is better too. * generic/tkFrame.c (TkToplevelWindowForCommand): Added way of mapping from command names to tkwins-for-toplevels. * tests/image.test (image-1.10,image-1.11): Updated to match new error message and added test for the rename case. * generic/tclInt.decls: Made TkToplevelWindowForCommand exported privately.
* * generic/tkImage.c (DeleteImage): delete the image's entry in thehobbs2003-01-191-4/+2
| | | | | image table correctly when there are no more instances. This reopens bug 220891. [Bug #669759]
* Increase the size of the clipping box for lines in bug #663981 so thatdrh2003-01-171-11/+20
| | | | | Tk extensions that attempt to print a canvas in a windows GDI printer will still work.
* * generic/tkSelect.c (Tk_CreateSelHandler):jenglish2003-01-141-4/+5
| | | | | Fix for #666346 "Selection handling crashes under KDE 3.0" * tests/unixSelect.test (unixSelect-1.20): Added test case.
* Use explicit "static int" type, not implicit "static".dgp2003-01-091-2/+2
|
* Implement Cohen-Sutherland polygon clipping for long lines in the canvas widgetdrh2003-01-083-13/+285
| | | | | so that coordinates do not overflow the 16-bit limit imposed by X11 and Win32. Bug #663981.
* * generic/tkFrame.c (CreateFrame): throw a Tcl error instead of ahobbs2003-01-031-4/+10
| | | | | | panic when we cannot get a main window and appname is NULL. This can indicate that a user tried to create a frame/toplevel while Tk was dying. [Bug #661792]
* ANSI unfriendly typedef for TkTextBTree repaired for C++ compilers.davygrvy2002-12-271-2/+2
|
* * generic/tkMain.c (Tk_Main): Call on Tcl*StartupScript*() routinesdgp2002-12-131-11/+10
| | | | to store the startup script, if any. [Bug 616245].
* * generic/tkEntry.c (ConfigureEntry): keep a flag to indicate whenhobbs2002-12-091-8/+16
| | | | | a var is traced to prevent double-traces caused by configuring the widget in traces with validation on. (dejong)