summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove a dependency on font size in textWind 10.1patthoyts2003-09-301-3/+3
|
* Accomodate TIP #150 in the test results.patthoyts2003-09-301-2/+2
|
* Fixed a small mistake in previous checkin.pspjuth2003-09-181-1/+7
|
* Implementation of TIP#147, "Make Grid's Column/Row Configure Easier".pspjuth2003-09-181-2/+59
|
* * generic/tkImage.c: Stopped [image create] from generating andgp2003-09-171-1/+13
| | | | | * tests/image.test: image command name that would overwrite an existing command name. Thanks to Michael Schlenker. [Bug 808039].
* Reworked a part of grid's geometry computationspspjuth2003-09-161-3/+109
| | | | to handle some tricky cases better. [Bug #792387]
* * doc/wish.1: Implementation of TIPs 137/151.dgp2003-09-051-9/+81
| | | | | | | | | | | * generic/tkMain.c (Tk_MainEx): Added recognition of the -encoding * tests/main.test: command line option by Tk_MainEx() and thus by wish, and any other program built on Tk_MainEx(). [Patch 800139]. This is a ***POTENTIAL INCOMPATIBILITY*** only for those C programs that embed Tcl and Tk, build on Tk_MainEx(), and make use of Tk_MainEx's former ability to pass a leading "-encoding" option to interactive shell operations.
* * library/scale.tcl: Fix for bug #787065 for Button-2 press.patthoyts2003-08-131-1/+51
| | | | * tests/scale.test: Added test for this bug.
* * win/tkWinCursor.c: Fix for bug #776646 for a native hand2 andpatthoyts2003-07-241-1/+152
| | | | | fleur (move) cursor under win. * tests/cursor.test: Check that documented cursors are available.
* Fix for [Bug 702230], and an evil bug it is too!dkf2003-07-181-1/+18
|
* * generic/tkPanedWindow.c (ArrangePanes): Ensure that the last panehobbs2003-07-171-2/+23
| | | | | * 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-3/+28
| | | | to their default value. [Bug #697652]
* Stop xhost smash by the test suite; that can render a machine unusable.dkf2003-07-091-4/+4
|
* fix to menu clone deletion bugvincentdarley2003-05-301-2/+2
|
* The panedwindow widget now sizes right around unmapped windows. [Bug 738143]dkf2003-05-211-1/+11
|
* Fixed test suite breakage that I inadvertently introduced [Bug 739965]dkf2003-05-192-5/+5
|
* tip 113 implementationvincentdarley2003-05-195-26/+535
|
* * generic/tkCanvPoly.c (PolygonToPostscript):hobbs2003-05-111-1/+8
| | | | | * 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-082-14/+28
| | | | Can't delete early though as that removes the link with widgets and image names.
* * tests/all.tcl: Made better use of a commondgp2003-04-0193-596/+286
| | | | | * tests/constraints.tcl: -loadfile to hold definitions * tests/*.test: common to all test files.
* * tests/unixWm.test (unixWm-41.2): Corrected typo in 2003-03-13dgp2003-03-181-2/+2
| | | | commit. Thanks Larry Virden. [Bug 705567]
* * tests/unixWm.test: Constrained all tests older than revision 1.21dgp2003-03-132-171/+172
| | | | | | to run only on Unix. Alternative approach did not match maintainer habits. * tests/spinbox.test (spinbox-17.4): Avoid long failure message.
* * tests/unixWm.test: Add the testwrappermdejong2003-03-121-7/+7
| | | | | | constraint to tests that depend on the testwrapper command. These tests should not be run under Windows for example.
* * doc/wm.n (minimize, maximize): Remove claimmdejong2003-03-122-26/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that the resizable command keeps scripts from changing the size of windows since it is not true. The resizable command only applies to user sizing via user interaction. * tests/unixWm.test: Replace broken tests with the nonPortable constraint with new tests for maxsize and minsize options. These tests verify that setting the minsize and maxsize will resize the window if needed, and that the wm hints will be updated with the new sizes. * tests/wm.test: Add an exhaustive set of tests for the wm maxsize and wm minsize commands. These tests verify that setting the minsize and maxsize will resize the window if needed. These tests have only been run under Win98 and Window Maker under Linux, so further tweaking may be needed for other systems. * unix/tkUnixWm.c (UpdateGeometryInfo, UpdateSizeHints): Fixup comments and initialization for the minWidth, minHeight, maxWidth, maxHeight, width, and height members of the WmInfo struct. Check to ensure that a new toplevel window size is not larger than the maxsize or smaller than the minsize when updating the geometry at idle time. Pass new width and height values to the UpdateSizeHints method so that it can properly set the window min and max sizes for a window that cannot be resized by the user. This fixes a bug where the window resizes back to the original size when the user clicks on the window border. * win/tkWinWm.c (UpdateGeometryInfo): Fixup comments and initialization for the minWidth, minHeight, maxWidth, maxHeight, width, and height members of the WmInfo struct. Check to ensure that a new toplevel window size is not larger than the maxsize or smaller than the minsize when updating the geometry at idle time. [Patch 568861]
* * generic/tkGrid.c (GridStructureProc, ConfigureSlaves):mdejong2003-03-123-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]
* Make all %-expansions generate ?? when their event doesn't have the rightdkf2003-02-281-1/+8
| | | | underlying field to prevent a crash on Windows. [Bug #612110]
* * generic/tkListbox.c (ListboxSelectionSubCmd):hobbs2003-02-251-1/+14
| | | | | * tests/listbox.test: Allow 'selection includes' to respond when disabled (but only 'includes'). [Bug #632514]
* * unix/tkUnixButton.c (TkpDisplayButton): Correct visual displayhobbs2003-02-251-14/+30
| | | | | of disabled check/radiobutton to be more distinctive on unix. * tests/unixButton.test: [Bug #669595] (hintermayer)
* * generic/tkEntry.c (SpinboxWidgetObjCmd, EntryWidgetObjCmd):hobbs2003-02-252-2/+32
| | | | | | | * 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-212-1/+15
|
* * tests/panedwindow.test:hobbs2003-02-211-32/+51
| | | | | * 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-1/+48
| | | | size when increasing the size of the panedwindow. [Bug #689099]
* * generic/tkEvent.c (Tk_HandleEvent): Fixup buttonmdejong2003-02-181-1/+16
| | | | | | | | | | 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.
* * generic/tkCanvArc.c (CreateArc): Rework canvas create itemhobbs2003-02-093-6/+28
| | | | | | | | | | | | | | * 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-281-1/+9
| | | | | 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-221-4/+13
| | | | | | | | | | | | 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/tkSelect.c (Tk_CreateSelHandler):jenglish2003-01-141-1/+11
| | | | | Fix for #666346 "Selection handling crashes under KDE 3.0" * tests/unixSelect.test (unixSelect-1.20): Added test case.
* * tests/event.test (_keypress, _text_ind_to_x_y):mdejong2002-12-021-13/+17
| | | | | | Force focus to widget in _keypress method to avoid problems with window managers that use focus follows mouse. [Bug 526209]
* * tests/wm.test: Add wm-transient-6.3 tomdejong2002-12-011-1/+16
| | | | | | | | | | | check that a transient remains withdrawn when it is first withdrawn and then turned into a transient. * unix/tkUnixWm.c: * win/tkWinWm.c: Replace WM_TRANSIENT_WITHDRAWN with WM_WITHDRAWN and set this flag whenever a window is explicitly withdrawn. This fixes the test case added above. [Bug 644356]
* * tests/textDisp.test:hobbs2002-11-221-1/+12
| | | | | * generic/tkTextDisp.c (TkTextSeeCmd): handle see for unmapped text displays. [Bug #641778]
* * generic/tkWindow.c (Tk_DestroyWindow,mdejong2002-11-141-1/+158
| | | | | | | | | | | | | | DeleteWindowsExitProc): Add TkHalfdeadWindow type and halfdeadWindowList to keep track of windows that were only partially deallocated before a call to exit. Finnish cleaning up these windows in DeleteWindowsExitProc. Keep track of cleanup status in Tk_DestroyWindow so that a window with a Destroy binding which calls exit will get fully destroyed. * tests/window.test: Add Tk_DestroyWindow tests for an assortment of half dead window cases. [Bug 630533]
* * tests/unixWm.test: Add short delay to test unixWm-51.7mdejong2002-11-071-1/+3
| | | | | to account for raise/lower changes in TIP 107. This allows the test case to pass under Window Maker on Linux.
* place info did not return all settings,pspjuth2002-11-071-3/+13
| | | | | | and didn't make sure the result was a proper list. Put '-in' first in result to be more consistent with how grid/pack info behaves. [Bug #635025][Bug #532022]
* * tests/imgPhoto.test:hobbs2002-10-181-1/+10
| | | | | * generic/tkImgPhoto.c (ImgPhotoConfigureMaster): fix arg handling for missing -format or -data options. [Bug #624974]
* * tests/text.test: properly return the number ofhobbs2002-10-171-14/+7
| | | | * unix/tkUnixFont.c (ControlUtfProc): bytes consumed. [Bug #624732]
* The grid size was not updated properlypspjuth2002-10-101-1/+21
| | | | when removing a widget from a grid. [Bug #621241] (forssen)
* * tests/canvPs.test: tests for canvas embedded window ps generationhobbs2002-10-101-1/+31
| | | | | | | | | | * generic/tkCanvWind.c (CanvasPsWindow): removed dead code loop. * generic/tkCanvas.h: moved TkColormapData struct to tkCanvPs.c * generic/tkCanvPs.c (TkImageGetColor): corrected bogus use of TkColormapData on Windows. Non-separated data may need correction as well. * win/tkWinImage.c (XGetImage, XGetImageZPixmap): added support for generating ps for embedded windows on canvases.
* * tests/winButton.test: add option clear to top to prevent optionhobbs2002-10-081-2/+2
| | | | leakage from other tests causing problems. [Bug #582382]
* * tests/entry.test: added entry-20.7hobbs2002-10-021-1/+11
| | | | | | * generic/tkEntry.c (EntryTextVarProc): check if the entry if being deleted before handling an associated textvariable. [Bug #607390 #617446]
* Finally dealt with 614650 and with a simpler solution too.dkf2002-10-011-3/+7
|