summaryrefslogtreecommitdiffstats
path: root/generic/tkPack.c
Commit message (Collapse)AuthorAgeFilesLines
* some more int -> size_t changesjan.nijtmans2013-02-011-7/+7
|
* 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"
* more places convertedjan.nijtmans2013-01-241-12/+12
|
* Generate -errorcode values to go with errors. Generate messages and postscriptdkf2012-08-271-71/+106
|\ | | | | using Tcl_Obj API, not the string result API.
| * more auditing of error codesdkf2012-07-301-1/+1
| |
| * Purged Tcl_AppendElement from all non-test code.dkf2012-07-291-24/+35
| |
| * Much more cleaning up of result handling.dkf2012-07-231-49/+51
| |
| * Working towards adding all the Tcl_SetErrorCode calls that should be there.dkf2012-07-161-1/+23
|/ | | ** WORK IN PROGRESS **
* Purge RCS Keywordsdgp2011-06-081-2/+0
|\
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * Fix [Bug 1252702]dkf2005-08-111-8/+8
| | |
| | * Improved version of Michael Kirkham's fix for parsing pad values. [1098779]dkf2005-01-111-81/+1
| | |
| | * * generic/tkPack.c (ConfigureSlaves): silence compiler warningdgp2003-07-171-2/+2
| | | | | | | | | | | | [Bug 771982]
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-2/+3
| | | | | | | | | using useful casts internally.
* | | Bug fix in grid/pack collision detect.pspjuth2009-09-181-1/+3
| | | | | | | | | | | | 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-5/+5
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | Fix potential divide by zero flagged by clang static analyzerdas2008-12-071-13/+21
| | |
* | | More small changes to use C89 better and manage the result more efficiently.dkf2008-11-081-2/+6
| | |
* | | CONSTify TkPrintPadAmount, TkCreateFrame, TkCreateMainWindownijtmans2008-10-281-2/+2
| | | | | | | | | | | | | | | and Tk_ParseArgv. move TkSelGetSelection to internal stub table (needed in tkWinTest.c)
* | | 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.
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-60/+58
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | header cleanupdgp2007-09-071-2/+1
| |
* | various "const" additions, in line with TIP #27nijtmans2007-01-051-2/+2
| | | | | | | | fix bug #1627732
* | Lots of ANSIfying of function decls.dkf2005-11-171-90/+81
| | | | | | | | 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-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
* | Improved version of Michael Kirkham's fix for parsing pad values. [1098779]dkf2005-01-111-82/+1
| |
* | bug fix [1098779]chengyemao2005-01-091-1/+2
| |
* | * 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:
* | * generic/tkPack.c (ConfigureSlaves): silence compiler warningdgp2003-07-171-2/+2
| | | | | | | | [Bug 771982]
* | * 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]
* 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.
* * 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]
* ** 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
* Geometry manager changes to support TIP#18.pspjuth2001-09-261-8/+20
|
* Pack accepted asymmetric values for -ipadx/y.pspjuth2001-09-231-5/+19
| | | | Only -padx/y supports asymmetry. [Bug #462348]
* minor cast fixes to prevent 64bit warningshobbs2001-09-211-7/+7
|
* * 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]
* generic/tkPack.c (TkParsePadAmount): added lint init for sepChar.hobbs2001-08-221-2/+2
|
* Objectified grid and pack commands.pspjuth2001-08-211-178/+166
|
* Asymmetric padding in "pack" and "grid" geometry managersdrh2001-02-121-63/+179
|
* * 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]
* * 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]
* 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]
* * Merged 8.1 branch into the main trunkstanton1999-04-161-25/+19
|
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-04-011-0/+1727