summaryrefslogtreecommitdiffstats
path: root/generic/tkPack.c
Commit message (Collapse)AuthorAgeFilesLines
* some more int -> size_t changesjan.nijtmans2013-02-011-7/+7
| | | FossilOrigin-Name: af0c7cac75e785ca92c44fd60ff1a589e5d26857
* Use some more (void *)'s in FreeProc's, a step in the direction getting Tk ↵jan.nijtmans2013-01-261-4/+4
| | | | | to work with "novem" FossilOrigin-Name: 9279332cf22a8ceeda1fd9c3c47628f162e85972
* more places convertedjan.nijtmans2013-01-241-12/+12
| | | FossilOrigin-Name: 2d21003b2562cbaed99e61f022a567082c598f3c
* Generate -errorcode values to go with errors. Generate messages and postscriptdkf2012-08-271-71/+106
|\ | | | | | | | | using Tcl_Obj API, not the string result API. FossilOrigin-Name: 961ae24a3f55411658e21fcc7bccbc40b30dfdba
| * more auditing of error codesdkf2012-07-301-1/+1
| | | | | | FossilOrigin-Name: aae315a30f0b4367d59525a21dfb5139c4440a36
| * Purged Tcl_AppendElement from all non-test code.dkf2012-07-291-24/+35
| | | | | | FossilOrigin-Name: f285bf493f65f325822ef97fec75af76204f7704
| * Much more cleaning up of result handling.dkf2012-07-231-49/+51
| | | | | | FossilOrigin-Name: 016ad9dac31d39cbc9ded6a6e8e75c11618318a8
| * Working towards adding all the Tcl_SetErrorCode calls that should be there.dkf2012-07-161-1/+23
|/ | | | | ** WORK IN PROGRESS ** FossilOrigin-Name: 6f8f9336c381b81bbe323a8399eaf4dd3f89b34f
* Purge RCS Keywordsdgp2011-06-081-2/+0
|\ | | | | FossilOrigin-Name: b8a1385217cc117d6962c234f0a4d28ff10e089c
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ | | | | | | FossilOrigin-Name: 3f95fbe0ce14948fd409844b915c18ef25d7d0a0
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | | | | | | | | FossilOrigin-Name: a74f32bb6369d3e66e661145c81a98a14ed79b3a
| | * Fix [Bug 1252702]dkf2005-08-111-8/+8
| | | | | | | | | FossilOrigin-Name: 0d9c0d50f9e08497b916aa770edafc9c66780258
| | * Improved version of Michael Kirkham's fix for parsing pad values. [1098779]dkf2005-01-111-81/+1
| | | | | | | | | FossilOrigin-Name: e147bb9b3bcb0eaf1cc003a80fa89a502d2f1cf6
| | * * generic/tkPack.c (ConfigureSlaves): silence compiler warningdgp2003-07-171-2/+2
| | | | | | | | | | | | | | | | | | [Bug 771982] FossilOrigin-Name: 5d3e72212c7c7fee694edbfbd2944966415d749c
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-2/+3
| | | | | | | | | | | | | | | using useful casts internally. FossilOrigin-Name: 142e016e7b17277d81257da90477297eb9aaa05a
* | | Bug fix in grid/pack collision detect.pspjuth2009-09-181-1/+3
| | | | | | | | | | | | | | | | | | Faulty slave was not properly blocked from slave list. [Bug 2859912] FossilOrigin-Name: d063f43d92bd3972a22e6eb751e0ebc2cc38b2a9
* | | Give an error if grid and pack are used in the same master. [Patch 2475855]pspjuth2009-08-191-1/+48
| | | | | | | | | FossilOrigin-Name: b4791724570e09eac4ca86c49be39bc2b5783bc0
* | | - eliminate some unnessary type castsnijtmans2009-02-031-5/+5
| | | | | | | | | | | | | | | | | | | | | - some internal const decorations - spacing FossilOrigin-Name: 02ca10b00f1aed5c76ff8149fdbac48018e8bfa0
* | | Fix potential divide by zero flagged by clang static analyzerdas2008-12-071-13/+21
| | | | | | | | | FossilOrigin-Name: 752001963465e001c3fdca821d0bca3aacba4c0c
* | | More small changes to use C89 better and manage the result more efficiently.dkf2008-11-081-2/+6
| | | | | | | | | FossilOrigin-Name: e19bdf70c353fe1f54be0f5bbfb8d9704b9bab77
* | | CONSTify TkPrintPadAmount, TkCreateFrame, TkCreateMainWindownijtmans2008-10-281-2/+2
| | | | | | | | | | | | | | | | | | | | | and Tk_ParseArgv. move TkSelGetSelection to internal stub table (needed in tkWinTest.c) FossilOrigin-Name: 17c2598fc31e8f5a5ad87a7e318c7f069e149dc5
* | | Add "const" to many internalnijtmans2008-10-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-60/+58
|/ / | | | | FossilOrigin-Name: ddfd8bb6f7ecfa71a218a5dc88075a419e3e1d5c
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| | | | | | FossilOrigin-Name: e7868b44c1e7bffc63a053b87a96a4499757f80d
* | header cleanupdgp2007-09-071-2/+1
| | | | | | FossilOrigin-Name: 04ffea40ef0b3c0cad59a3e1576275019f29e913
* | various "const" additions, in line with TIP #27nijtmans2007-01-051-2/+2
| | | | | | | | | | | | fix bug #1627732 FossilOrigin-Name: 3cb10b476b00b2ffc8694865919f758e722cfde4
* | Lots of ANSIfying of function decls.dkf2005-11-171-90/+81
| | | | | | | | | | | | 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-360/+364
| | | | | | | | | | | | | | 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
* | Improved version of Michael Kirkham's fix for parsing pad values. [1098779]dkf2005-01-111-82/+1
| | | | | | FossilOrigin-Name: 0474a61a6e6d35a85b4c5f137751717e092ebd29
* | bug fix [1098779]chengyemao2005-01-091-1/+2
| | | | | | FossilOrigin-Name: 941bfb9af081a7e2818c2bcd0bc0ed89afd27be3
* | * generic/tk3d.c: All uses of 'panic' (the macro) changeddavygrvy2004-01-131-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | * generic/tkPack.c (ConfigureSlaves): silence compiler warningdgp2003-07-171-2/+2
| | | | | | | | | | | | [Bug 771982] FossilOrigin-Name: afecbf3050ea92389a7e6bb07caa1e04918205a5
* | * generic/tkGrid.c (GridStructureProc, ConfigureSlaves):mdejong2003-03-121-21/+22
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* TIP #47 "Modifying Tk to Allow Writing X Window managers"jenglish2002-06-141-5/+5
| | | | | | | | | | (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-4/+6
| | | | | | | argument of Tcl_GetIndexFromObj(Struct) from (char **) to (CONST char **). [TIP 27] [Patch 504705] FossilOrigin-Name: 85e5c7aa1baa3bd2b7bdb971f3cf83f4f5573723
* ** 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
* Geometry manager changes to support TIP#18.pspjuth2001-09-261-8/+20
| | | FossilOrigin-Name: 2609784add061e8acbb8358e5c01c818da190cbd
* Pack accepted asymmetric values for -ipadx/y.pspjuth2001-09-231-5/+19
| | | | | | Only -padx/y supports asymmetry. [Bug #462348] FossilOrigin-Name: 7c94d3431a51224f6c45f4ed1d6ddd0163362d04
* minor cast fixes to prevent 64bit warningshobbs2001-09-211-7/+7
| | | FossilOrigin-Name: ea7bd071d695c4a3869d36be8fb5dbebf393f994
* * 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
* generic/tkPack.c (TkParsePadAmount): added lint init for sepChar.hobbs2001-08-221-2/+2
| | | FossilOrigin-Name: 5911ce6f3d6085a35aec7379bddb52e14e5b75ac
* Objectified grid and pack commands.pspjuth2001-08-211-178/+166
| | | FossilOrigin-Name: 85252bb27aaa1afc09c0f6996b5741a77f11fdf0
* Asymmetric padding in "pack" and "grid" geometry managersdrh2001-02-121-63/+179
| | | FossilOrigin-Name: 5f0215af7571f78512d49b470692b68865f4c686
* * tests/event.test: Added test for [event generate $widgetericm2000-04-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | <Alt-z>] [Bug: 4611]. * tests/choosedir.test: Changed "namespace import ::tcltest" to "namespace import -force ::tcltest". * win/tkWinKey.c: * unix/tkUnixKey.c: * mac/tkMacKeyboard.c: Changed InitKeymapInfo to TkpInitKeymapInfo. [Bug: 4611]. * generic/tkStubInit.c: * generic/tkIntDecls.h: Re-gen'd from tkInt.decls. * generic/tkInt.decls: Added TkpInitKeymapInfo to list of function decls. * generic/tkBind.c (HandleEventGenerate): Added code to initialize keymap info if necessary, and to correctly set modifier bits in XEvent structure create to handle [event generate] calls. Previously, the alt/meta bits were not set correctly, so [event generate $widget <Alt-z>] would always fail. [Bug: 4611] FossilOrigin-Name: cd4fc3780f76c12099288725bea9ffac8c1477dd
* * generic/tkInt.h: moved new TkDisplay useInputMethods structurehobbs2000-01-211-3/+2
| | | | | | | | | | | | | | | | | | | | element to end to not disturb position of previous elements in the structure (as compared to Tk <=8.2). * generic/tkCanvLine.c (LineCoords): fixed segfault when too few coords were passed to a line with certain options set (it should always have thrown an error anyway). [Bug: 4042] * tests/text.test: * generic/tkText.c: fixed missing " in error case and missing 'dump' in subcommand listing [Bug: 4036] * generic/tkListbox.c: adjusted use of basic string concatenation in (non-K&R behavior) [Bug: 4027] Swapped bg/fg class for -select(bg|fg) for listbox and their items [Bug: 4039] FossilOrigin-Name: e8800736ff27a98524329521784065d25721ff92
* 1999-09-16 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-09-211-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkFont.c: fixed processing of font options and error returned [Bug: 2075] * win/tkWinWm.c: fixed bug in 'wm deiconify' that raised the wrong toplevel, and changed it to not set focus on overridden toplevels 1999-09-15 Jeff Hobbs <hobbs@scriptics.com> * unix/aclocal.m4: added fix for FreeBSD-[1-2] recognition [Bug: 2070] and fix to AIX-* to get ldAix right [Bug: 2624], fixed AIX version check (readjust from 8-21 fix) and several other config fixes for AIX * mac/tkMacMenubutton.c: * unix/tkUnixMenubu.c: fixed permanently stippled menubutton image * win/tkWinButton.c: fixed possible pointer smash [Bug: 2733] 1999-09-14 Jeff Hobbs <hobbs@scriptics.com> * win/tkWinMenu.c: fix for stack overrun in GetTextFace [Bug: 909] FossilOrigin-Name: 8b23a0f7f176faa57f568a25735ed084b2666a90
* * Merged 8.1 branch into the main trunkstanton1999-04-161-25/+19
| | | FossilOrigin-Name: 1120dc4257448ed1955333e682de48e2940cc741
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
| | | FossilOrigin-Name: fb58b663f313796e8ed3115f92d657f0cae1d575
* Initial revisionrjohnson1998-04-011-0/+1727
FossilOrigin-Name: 2bf55ca9aa942b581137b9f474da5ad9c1480de4