summaryrefslogtreecommitdiffstats
path: root/generic/tkGrid.c
Commit message (Collapse)AuthorAgeFilesLines
* Purge RCS Keywordsdgp2011-06-081-2/+0
|\
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * * generic/tkGrid.c: Stop crash due to list intrep shimmer [Bug 1677608]dgp2007-05-151-2/+18
| | |
| | * Correction to 1432666 fix.pspjuth2006-04-121-6/+1
| | |
| | * * generic/tkGrid.c: Fixed handling of out of bounds row or column.dgp2006-04-121-7/+116
| | | | | | | | | | | | * tests/grid.test: [Bug 1432666]
| | * * tests/grid.test: fix segfault on empty index listhobbs2006-04-051-26/+31
| | | | | | | | | | | | * generic/tkGrid.c (GridRowColumnConfigureCommand): [Bug 1422430]
| | * Fix [Bug 1252702]dkf2005-08-111-2/+2
| | |
| | * Improved version of Michael Kirkham's fix for parsing pad values. [1098779]dkf2005-01-111-9/+1
| | |
| | * Fixed a bug in grid geometry calculations forpspjuth2004-02-181-16/+14
| | | | | | | | | | | | a shrinking grid. [Bug 899246]
* | | [Bug 723765]: When a slave was removed from grid,pspjuth2011-04-041-0/+40
|\ \ \ | |/ / | | | the -in option was not remembered.
| * | [Bug 723765]: When a slave was removed from grid,pspjuth2011-04-041-0/+40
| | | | | | | | | the -in option was not remembered.
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-16/+15
| | | | | | | | | using useful casts internally.
* | | SMALL FIX: Remove useless explicit casts now that we require C89 or later.dkf2010-01-021-3/+3
| | |
* | | Bug fix in grid/pack collision detect.pspjuth2009-09-181-1/+2
| | | | | | | | | | | | Faulty slave was not properly blocked from slave list. [Bug 2859912]
* | | Give an error if grid and pack are used in the same master. [Patch 2475855]pspjuth2009-08-191-1/+48
| | |
* | | - eliminate some unnessary type castsnijtmans2009-02-031-10/+10
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | More small changes to use C89 better and manage the result more efficiently.dkf2008-11-081-3/+2
| | |
* | | 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.
* | | fix [2021443] inconsistant "wrong # args" messages (for Tk)nijtmans2008-07-231-3/+3
| | |
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-61/+61
|/ /
* | * generic/tkGrid.c: Stop crash due to list intrep shimmer [Bug 1677608]dgp2007-05-151-3/+23
| |
* | Fix minor K&R-ismdkf2007-02-121-199/+205
| |
* | various "const" additions, in line with TIP #27nijtmans2007-01-051-2/+2
| | | | | | | | fix bug #1627732
* | * 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]
* | * 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.