summaryrefslogtreecommitdiffstats
path: root/generic/tkPlace.c
Commit message (Collapse)AuthorAgeFilesLines
* More small changes to use C89 better and manage the result more efficiently.dkf2008-11-081-17/+19
| | | FossilOrigin-Name: e19bdf70c353fe1f54be0f5bbfb8d9704b9bab77
* more internal -Wwrite-strings warning fixesnijtmans2008-10-301-2/+2
| | | FossilOrigin-Name: 8cc51975139f771898f1b3ab9da8b2e7c02f9905
* 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
* Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-22/+22
| | | FossilOrigin-Name: ddfd8bb6f7ecfa71a218a5dc88075a419e3e1d5c
* merge stable branch onto HEADdgp2007-12-131-1/+1
| | | FossilOrigin-Name: e7868b44c1e7bffc63a053b87a96a4499757f80d
* * generic/tkPlace.c: Prevent segfault in place geometry manager.dgp2007-10-251-4/+42
| | | | | | Thanks to Colin McDonald. [Bug 1818491] FossilOrigin-Name: d7e8968bd21b3e7a28ea4f35e7eaa591d27185eb
* header cleanupdgp2007-09-071-2/+1
| | | FossilOrigin-Name: 04ffea40ef0b3c0cad59a3e1576275019f29e913
* Cleaning up whitespace, comments, declarations. No functional changes.dkf2007-06-241-33/+40
| | | FossilOrigin-Name: c98da578d4520ec508451f459a942855c575ec00
* various "const" additions, in line with TIP #27nijtmans2007-01-051-2/+2
| | | | | | fix bug #1627732 FossilOrigin-Name: 3cb10b476b00b2ffc8694865919f758e722cfde4
* various "const" additions, in line with TIP #27nijtmans2007-01-031-2/+2
| | | FossilOrigin-Name: 9d88e9902fbcb520e408f0ffbdc55d52f0faa2a6
* Lots of ANSIfying of function decls.dkf2005-11-171-7/+7
| | | | | | Also a few spots where code has been cleaned up more completely. FossilOrigin-Name: 2a0a22abb40373f8ef0be9a59e98a390b59ee72f
* ANSIfydkf2005-11-151-326/+313
| | | FossilOrigin-Name: a32afbb220e628da31bcc91212a42bd720c71e5d
* Fixed a memory leak when a placed widget was forgotten. [Bug 1028888]pspjuth2004-09-161-9/+41
| | | FossilOrigin-Name: 3c1692e824c8e3872e7f4a1d9eb52803985aa3e4
* * 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
* * generic/tkGrid.c (GridStructureProc, ConfigureSlaves):mdejong2003-03-121-48/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* place info did not return all settings,pspjuth2002-11-071-18/+10
| | | | | | | | and didn't make sure the result was a proper list. Put '-in' first in result to be more consistent with how grid/pack info behaves. [Bug #635025][Bug #532022] FossilOrigin-Name: 9688bb9e2d661ffcae12994635976866b3a886a6
* 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-3/+4
| | | | | | | argument of Tcl_GetIndexFromObj(Struct) from (char **) to (CONST char **). [TIP 27] [Patch 504705] FossilOrigin-Name: 85e5c7aa1baa3bd2b7bdb971f3cf83f4f5573723
* Geometry manager changes to support TIP#18.pspjuth2001-09-261-9/+13
| | | FossilOrigin-Name: 2609784add061e8acbb8358e5c01c818da190cbd
* * tests/config.test: added config-14.1 to test namespace importhobbs2001-08-291-20/+9
| | | | | | | | | | | | | | | | evaluation of widgets. * generic/tkButton.c (ButtonCreate): * generic/tkFrame.c (CreateFrame): * generic/tkMenubutton.c (Tk_MenubuttonObjCmd): * generic/tkPlace.c (Tk_PlaceObjCmd): * generic/tkScale.c (Tk_ScaleObjCmd): * generic/tkMessage.c (Tk_MessageObjCmd): * generic/tkEntry.c (Tk_EntryObjCmd, Tk_SpinboxObjCmd): * generic/tkSquare.c (SquareObjCmd): redid the handling of optionTables in widgets to allow them to be imported into other namespaces. [Bug #456632] FossilOrigin-Name: eb203000eca11b77c0a57bb772c4ffef94889710
* * doc/SetOptions.3: Updated documentation to reflect support forericm2000-08-101-324/+326
| | | | | | | | | | | | | | | | | | | | TK_OPTION_NULL_OK for TK_OPTION_DOUBLE and TK_OPTION_PIXELS. * generic/tkConfig.c: Added for TK_OPTION_NULL_OK support for TK_OPTION_DOUBLE and TK_OPTION_PIXELS. * doc/place.n: Updated, reformatted manual entry. * tests/place.test: Added many tests. * generic/tkPlace.c (Tk_PlaceObjCmd): Updated to use Tk widget-option management facilities to manage place options (-x, -y, etc.), which simplifies the placer code. Added support for [place configure pathName] and [place configure pathName -option], similar to the behavior of the configure subcommand supported by widgets. FossilOrigin-Name: 375354145259dc80ebd6b9e71d049edc3000944e
* * tests/place.test: Extended test suite to test error returns fromericm2000-08-081-261/+364
| | | | | | | | | | | | | | [place]. * generic/tkInt.h: Replaced Tk_PlaceCmd prototype with Tk_PlaceObjCmd prototype. * generic/tkWindow.c: Updated [place] command entry to use new Tcl_Obj interface. * generic/tkPlace.c (Tk_PlaceObjCmd): Tcl_Obj'ified [place] command. FossilOrigin-Name: ceaed590c0da72bd4bb7354335da62e83cffff33
* * generic/tkPlace.c (Tk_PlaceCmd): reworked place master/slavehobbs2000-05-291-13/+25
| | | | | | | table init'n to prevent seg fault when using place on multiple displays. FossilOrigin-Name: 316217486c6a44d85bb4b11e291e1c69f64fd0ca
* Merged 8-1-0 into mainline.rjohnson1999-04-211-1/+1
| | | FossilOrigin-Name: 0447cf267ea555fcba90be565b63fc310b3d0afb
* fixed Tk comment errorssurles1999-04-161-2/+2
| | | FossilOrigin-Name: 1eb99ab13b42e37ca5c220def4ad02e7f05e5718
* * Merged 8.1 branch into the main trunkstanton1999-04-161-25/+25
| | | FossilOrigin-Name: 1120dc4257448ed1955333e682de48e2940cc741
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
| | | FossilOrigin-Name: fb58b663f313796e8ed3115f92d657f0cae1d575
* Initial revisionrjohnson1998-04-011-0/+1060
FossilOrigin-Name: 2bf55ca9aa942b581137b9f474da5ad9c1480de4