summaryrefslogtreecommitdiffstats
path: root/generic/tkGrid.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | Reworked a part of grid's geometry computationspspjuth2003-09-161-20/+86
| | | | | | | | to handle some tricky cases better. [Bug #792387]
* | * generic/tkGrid.c (GridStructureProc, ConfigureSlaves):mdejong2003-03-121-27/+48
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]
* The grid size was not updated properlypspjuth2002-10-101-8/+3
| | | | when removing a widget from a grid. [Bug #621241] (forssen)
* Applied companion patch for Tcl Patch 585105,dgp2002-08-051-3/+3
| | | | | | | | | | | | | | | | | | | | | 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/tkGrid.c (GridReqProc): check that gridPtr is not NULLhobbs2002-06-221-2/+2
| | | | (may be when embedded). [Bug #548791] (halliday)
* Corrected the test for grid propagate change. [Bug #571433]pspjuth2002-06-201-3/+4
|
* TIP #47 "Modifying Tk to Allow Writing X Window managers"jenglish2002-06-141-3/+3
| | | | | | | | (patch from Neil McKay). * Add CirculateRequest, Create, MapRequest, ResizeRequest, and ConfigureRequest event types; * Split TK_TOPLEVEL flag into TK_TOPLEVEL, TK_HAS_WRAPPER, TK_WIN_MANAGED, and TK_TOP_HIERARCHY.
* * Updates to handle change in type of tablePtrdgp2002-01-171-5/+5
| | | | | argument of Tcl_GetIndexFromObj(Struct) from (char **) to (CONST char **). [TIP 27] [Patch 504705]
* * generic/tkBind.c (TkBindFree):dgp2002-01-041-9/+9
| | | | | | * generic/tkGrid.c (ResolveConstraints,CheckSlotData,DestroyGrid): * generic/tkSelect.c (Tk_DeleteSelHandler,TkSelDeadWindow): Replaced Tcl_Free calls with ckfree so that memory debugging is fully supported.
* ** upport to 8.4 of mac code changes for 8.3.3 & various newdas2001-11-231-2/+2
| | | | | | ** changes for 8.4, some already backported to 8.3.4 (patch #435660) see ChangeLog for details
* Added -uniform option to grid's row/columnconfigure.pspjuth2001-09-301-6/+139
|
* Geometry manager changes to support TIP#18.pspjuth2001-09-261-10/+21
|
* * Corrected type definition ofdgp2001-09-171-2/+2
| | | | | | argument passed to Tcl_GetStringFromObj() from size_t to int. Incorrect type broke [pack] and [grid] on systems where sizeof(size_t) != sizeof(int). [Bugs 462375, 462342, 462338]
* Fixed a bug where adjacent 'x' and '^' where not handled properly.pspjuth2001-08-221-3/+11
|
* Objectified grid and pack commands.pspjuth2001-08-211-356/+378
|
* Grid configure rejected initial "x" and "^". [Bug #418664]pspjuth2001-08-181-2/+3
|
* Asymmetric padding in "pack" and "grid" geometry managersdrh2001-02-121-24/+27
|
* * generic/tkGrid.c (Tk_GridCmd): Split [grid] subcommands intoericm2000-08-021-535/+794
| | | | separate functions instead of inlining them all in Tk_GridCmd.
* * generic/tkGrid.c: Fixed bogus logic in [grid propagate] thatericm2000-04-171-2/+9
| | | | | caused [grid propagate . 0] to act as a toggle instead of an absolute set. [Bug: 2286].
* * generic/tkGrid.c (InitMasterData): fixed uninit'd data inhobbs2000-04-081-3/+3
| | | | GridMaster struct [Bug: 4387]
* * tests/grid.test: Added a test for the consecutive ^ and multipleericm2000-01-201-10/+14
| | | | | | | | | | | | widget case (bug #1386). * generic/tkGrid.c: Fixed interpretation of consecutive ^ characters in grid command. Previously, ^ ^ was interpreted as meaning that there must be a 2-column widget above to extend, neglecting the case where there was actually 2 1-column widgets above. Now, ^ ^ is interpreted as a possible width; the gridder will consume as many ^'s as there are columns in the widget, and leave the rest for the extension of other widgets. (bug #1386).
* * generic/tkGrid.c: changed Tcl_Alloc to ckallochobbs1999-11-101-7/+7
| | | | | * generic/tkEntry.c: fixed C expr error in destroy of entry that could lead to 'malformed bucket chain' error
* Patches from Bug: 2068 2080 2269redman1999-07-011-6/+6
|
* * Merged 8.1 branch into the main trunkstanton1999-04-161-37/+57
|
* * generic/tkGrid.c: Fixed bug in "grid forget" that failed to cancelscriptics_tclpro_1_2_b1stanton1999-01-061-1/+4
| | | | pending idle handlers, resulting in a crash in a few odd cases.
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-04-011-0/+2615