summaryrefslogtreecommitdiffstats
path: root/generic/tkGrid.c
Commit message (Collapse)AuthorAgeFilesLines
* More small changes to use C89 better and manage the result more efficiently.dkf2008-11-081-3/+2
| | | FossilOrigin-Name: e19bdf70c353fe1f54be0f5bbfb8d9704b9bab77
* Add "const" to many internalnijtmans2008-10-171-5/+5
| | | | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries. FossilOrigin-Name: da3819dbb53904a418b6098f3b103df483c53304
* fix [2021443] inconsistant "wrong # args" messages (for Tk)nijtmans2008-07-231-3/+3
| | | FossilOrigin-Name: def570d7bdd7211b4c17c706781050222d16890f
* Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-61/+61
| | | FossilOrigin-Name: ddfd8bb6f7ecfa71a218a5dc88075a419e3e1d5c
* * generic/tkGrid.c: Stop crash due to list intrep shimmer [Bug 1677608]dgp2007-05-151-3/+23
| | | FossilOrigin-Name: af5a9a06b806389a2acd4b740d3268d3d445f6d3
* Fix minor K&R-ismdkf2007-02-121-199/+205
| | | FossilOrigin-Name: 3f675168500b8a787d2dcc4819c0c0e97d8de120
* various "const" additions, in line with TIP #27nijtmans2007-01-051-2/+2
| | | | | | fix bug #1627732 FossilOrigin-Name: 3cb10b476b00b2ffc8694865919f758e722cfde4
* * generic/tkWindow.c (Tk_NameToWindow): Allow NULL interp topspjuth2006-04-111-16/+118
| | | | | | | | | | Tk_NameToWindow. This fixes TkGetWindowFromObj which promises to handle NULL but didn't. * generic/tkGrid.c: Fixed handling of out of bounds row or column. * tests/grid.test: [Bug 1432666] FossilOrigin-Name: c8de6c347ea84ee61613417bff1755e253cdc904
* * tests/grid.test: fix segfault on empty or "all" index listhobbs2006-04-051-27/+36
| | | | | | * generic/tkGrid.c (GridRowColumnConfigureCommand): [Bug 1422430] FossilOrigin-Name: ced1f6ca622b5c644b34a478a014e2f1c65ac4b9
* Removed a lingering error message from TIP#147 implementation.pspjuth2006-01-111-1/+7
| | | FossilOrigin-Name: f9a5770461ecacd10d23ce1ca5be19e81cb30638
* ANSIfy and reduce casting of NULL to promote readabilitydkf2005-11-171-47/+36
| | | FossilOrigin-Name: b6c2c77cac3cacef0e58af5c6be63af4359a2949
* Lots of ANSIfying of function decls.dkf2005-11-171-4/+4
| | | | | | Also a few spots where code has been cleaned up more completely. FossilOrigin-Name: 2a0a22abb40373f8ef0be9a59e98a390b59ee72f
* assorted typos and errors caught by compilerdgp2005-08-111-2/+2
| | | FossilOrigin-Name: 202d05080d6c3dda25595f1d1065144230bf1fc6
* 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 FossilOrigin-Name: 95ed0f915e157968e866e731484ea64d379250ec
* Style&clarity fixesdkf2005-04-041-309/+315
| | | FossilOrigin-Name: 2eb65c7a0f0736e187f133672af0b03be4e27a3b
* 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] FossilOrigin-Name: 40c1accfb3f8c53ee4b2128b3b26cce78cdbbde6
* Improved version of Michael Kirkham's fix for parsing pad values. [1098779]dkf2005-01-111-9/+1
| | | FossilOrigin-Name: 0474a61a6e6d35a85b4c5f137751717e092ebd29
* 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] FossilOrigin-Name: 8a1c41a4d81b4a456b719d22ceb023d0ac01ac6c
* fix lint warningshobbs2004-03-161-1/+2
| | | FossilOrigin-Name: e208e3fd95fb510161e2f387b539e5eb5cce7a31
* Fixed a bug in grid geometry calculations forpspjuth2004-02-181-22/+22
| | | | | | a shrinking grid. [Bug 899246] FossilOrigin-Name: 5b7a6b073dd2a91a5437fbd4c10c6dc69be25923
* * 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: FossilOrigin-Name: a08e5aacfc9f6c5a344c2d05454773dac90710c2
* Implementation of TIP#146,pspjuth2004-01-091-109/+189
| | | | | | | "Add Overall Anchoring to the Grid Geometry Manager", adding [grid anchor] subcommand. FossilOrigin-Name: 4f1b8110a375d069ffab8e0afc5f1a19c864c013
* Fixed a small mistake in previous checkin.pspjuth2003-09-181-5/+6
| | | FossilOrigin-Name: 72daa74f3ed65d55e16c28363d44b9b0e9e2c115
* Implementation of TIP#147, "Make Grid's Column/Row Configure Easier".pspjuth2003-09-181-110/+170
| | | FossilOrigin-Name: 29c05ff37e49aa6ea3179acabca248ba366d1f5d
* Reworked a part of grid's geometry computationspspjuth2003-09-161-20/+86
| | | | | | to handle some tricky cases better. [Bug #792387] FossilOrigin-Name: 59c22534361e4939e907d682827a6e5585675ea2
* * 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] FossilOrigin-Name: f1dcb667ca369e764f5ceafaed19d2d2e8480982
* The grid size was not updated properlypspjuth2002-10-101-8/+3
| | | | | | when removing a widget from a grid. [Bug #621241] (forssen) FossilOrigin-Name: c22256a9f4b86817488348cd3edb9f6879867917
* 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) FossilOrigin-Name: 5603f01aa35a127f83db9bb68f3b1ff9e5bb64de
* * generic/tkGrid.c (GridReqProc): check that gridPtr is not NULLhobbs2002-06-221-2/+2
| | | | | | (may be when embedded). [Bug #548791] (halliday) FossilOrigin-Name: 4f397fd74c2027721e6dee84f9c7dc03836e539c
* Corrected the test for grid propagate change. [Bug #571433]pspjuth2002-06-201-3/+4
| | | FossilOrigin-Name: 98d6cad79c2e09eae349322c87c6cf57a358505f
* 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. FossilOrigin-Name: ad38fbacd7328c607131ee691e933fcc9aa67d3e
* * 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] FossilOrigin-Name: 85e5c7aa1baa3bd2b7bdb971f3cf83f4f5573723
* * 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. FossilOrigin-Name: 7eae11202e53a732b5f73da88eaf3b2550df3c5c
* ** 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 FossilOrigin-Name: 72721350b6f21354b5149babeafdb2304ece1e2e
* Added -uniform option to grid's row/columnconfigure.pspjuth2001-09-301-6/+139
| | | FossilOrigin-Name: d7a6c95b93a04287ed3b3f03fc6722df2ba5b8c9
* Geometry manager changes to support TIP#18.pspjuth2001-09-261-10/+21
| | | FossilOrigin-Name: 2609784add061e8acbb8358e5c01c818da190cbd
* * 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] FossilOrigin-Name: 6ec1731fc2116acfbb45ee6775894c52f4b92d9a
* Fixed a bug where adjacent 'x' and '^' where not handled properly.pspjuth2001-08-221-3/+11
| | | FossilOrigin-Name: c00303aed74dfe1e60dd700009d3894a66941337
* Objectified grid and pack commands.pspjuth2001-08-211-356/+378
| | | FossilOrigin-Name: 85252bb27aaa1afc09c0f6996b5741a77f11fdf0
* Grid configure rejected initial "x" and "^". [Bug #418664]pspjuth2001-08-181-2/+3
| | | FossilOrigin-Name: 523026ee9302e75ee03c4f5563fef3deb6d18b0d
* Asymmetric padding in "pack" and "grid" geometry managersdrh2001-02-121-24/+27
| | | FossilOrigin-Name: 5f0215af7571f78512d49b470692b68865f4c686
* * generic/tkGrid.c (Tk_GridCmd): Split [grid] subcommands intoericm2000-08-021-535/+794
| | | | | | separate functions instead of inlining them all in Tk_GridCmd. FossilOrigin-Name: c18681c39db422f9c6e5e7a7772b10ac4c77f61b
* * 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]. FossilOrigin-Name: ec09b433589210b48622eccf572121e228755d3f
* * generic/tkGrid.c (InitMasterData): fixed uninit'd data inhobbs2000-04-081-3/+3
| | | | | | GridMaster struct [Bug: 4387] FossilOrigin-Name: c8ff30f0c17dfaf32d075ffcb8e86c6cf8381eb4
* * 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). FossilOrigin-Name: c360352e669e2b1a89b4ae382503c8712bcef853
* * 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 FossilOrigin-Name: 97bb805341dc4b867e2840d055e30e1efd2fae9d
* Patches from Bug: 2068 2080 2269redman1999-07-011-6/+6
| | | FossilOrigin-Name: 4bec4dc6eedf8f345bec167088cd8c7d76a49829
* * Merged 8.1 branch into the main trunkstanton1999-04-161-37/+57
| | | FossilOrigin-Name: 1120dc4257448ed1955333e682de48e2940cc741
* * 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. FossilOrigin-Name: 065f580bc09c06aa780f311e4fdbbff497b1282b
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
| | | FossilOrigin-Name: fb58b663f313796e8ed3115f92d657f0cae1d575