summaryrefslogtreecommitdiffstats
path: root/generic/tkGrid.c
Commit message (Collapse)AuthorAgeFilesLines
* * tests/grid.test: fix segfault on empty or "all" index listhobbs2006-04-051-27/+36
| | | | * generic/tkGrid.c (GridRowColumnConfigureCommand): [Bug 1422430]
* Removed a lingering error message from TIP#147 implementation.pspjuth2006-01-111-1/+7
|
* ANSIfy and reduce casting of NULL to promote readabilitydkf2005-11-171-47/+36
|
* Lots of ANSIfying of function decls.dkf2005-11-171-4/+4
| | | | Also a few spots where code has been cleaned up more completely.
* assorted typos and errors caught by compilerdgp2005-08-111-2/+2
|
* Getting more systematic about styledkf2005-08-101-544/+596
| | | | | Also start removing _ANSI_ARGS_; the core's required ANSI C for a while now Also fix [Bug 1252702]; size_t doesn't mix with Tcl_GetStringFromObj
* Style&clarity fixesdkf2005-04-041-309/+315
|
* Fixed bug in geometry calculations forpspjuth2005-04-031-7/+12
| | | | | widgets that span multiple columns/row. Bug was introduced in 8.5a1 when fixing 792387. [Bug 1175092]
* Improved version of Michael Kirkham's fix for parsing pad values. [1098779]dkf2005-01-111-9/+1
|
* Made handling of ^ a bit more consistent inpspjuth2004-11-071-20/+67
| | | | | corner cases. This makes ^ work without any widgets in the same command. [Bug 962589]
* fix lint warningshobbs2004-03-161-1/+2
|
* Fixed a bug in grid geometry calculations forpspjuth2004-02-181-22/+22
| | | | a shrinking grid. [Bug 899246]
* * generic/tk3d.c: All uses of 'panic' (the macro) changeddavygrvy2004-01-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkBind.c: to 'Tcl_Panic' (the function). The #define * generic/tkBitmap.c: of panic in tcl.h clearly states it is * generic/tkCanvArc.c: deprecated in the comments. * generic/tkCanvBmap.c: [Tcl Patch 865264] * generic/tkCanvImg.c: * generic/tkCanvLine.c: * generic/tkCanvPoly.c: * generic/tkCanvText.c: * generic/tkCanvWind.c: * generic/tkColor.c: * generic/tkConfig.c: * generic/tkCursor.c: * generic/tkError.c: * generic/tkEvent.c: * generic/tkFocus.c: * generic/tkFont.c: * generic/tkFrame.c: * generic/tkGC.c: * generic/tkGrid.c: * generic/tkImgBmap.c: * generic/tkImgPhoto.c: * generic/tkImgUtil.c: * generic/tkMenu.c: * generic/tkObj.c: * generic/tkPack.c: * generic/tkPlace.c: * generic/tkRectOval.c: * generic/tkSelect.c: * generic/tkText.c: * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkTextMark.c: * generic/tkTextWind.c: * generic/tkVisual.c: * generic/tkWindow.c: * mac/tkMacAppInit.c: * mac/tkMacAppearanceStubs.c: * mac/tkMacButton.c: * mac/tkMacDraw.c: * mac/tkMacEmbed.c: * mac/tkMacFont.c: * mac/tkMacInit.c: * mac/tkMacMenus.c: * mac/tkMacPort.h: * mac/tkMacSubwindows.c: * mac/tkMacWm.c: * mac/tkMacXStubs.c: * macosx/tkMacOSXEmbed.c: * macosx/tkMacOSXFont.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXNotify.c: * macosx/tkMacOSXPort.h: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXXStubs.c: * unix/tkUnix3d.c: * unix/tkUnixColor.c: * unix/tkUnixEmbed.c: * unix/tkUnixEvent.c: * unix/tkUnixFocus.c: * unix/tkUnixFont.c: * unix/tkUnixSelect.c: * unix/tkUnixSend.c: * unix/tkUnixWm.c: * win/tkWin3d.c: * win/tkWinButton.c: * win/tkWinColor.c: * win/tkWinDialog.c: * win/tkWinDraw.c: * win/tkWinEmbed.c: * win/tkWinFont.c: * win/tkWinPixmap.c: * win/tkWinPointer.c: * win/tkWinScrlbr.c: * win/tkWinWm.c: * win/tkWinX.c:
* Implementation of TIP#146,pspjuth2004-01-091-109/+189
| | | | | "Add Overall Anchoring to the Grid Geometry Manager", adding [grid anchor] subcommand.
* Fixed a small mistake in previous checkin.pspjuth2003-09-181-5/+6
|
* Implementation of TIP#147, "Make Grid's Column/Row Configure Easier".pspjuth2003-09-181-110/+170
|
* 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