summaryrefslogtreecommitdiffstats
path: root/generic/tkPlace.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix some gcc warnings (when using -Wshadow, deprecated XKeycodeToKeysym(), ↵jan.nijtmans2020-10-011-11/+11
| | | | XScreenSaverQueryInfo weak symbol on MacOS)
* Last TIP #581 changes. 100% done nowjan.nijtmans2020-09-271-1/+1
|
* TIP #581: grid/pack/place implementation (internal) and documentationjan.nijtmans2020-09-041-272/+270
|
* Another round of TIP #581-related name changes. Now merely concentrated on ↵jan.nijtmans2020-09-031-28/+28
| | | | consistancy in the test-cases
* (cherry-pick: Slave ->Pane, Master->Container in tkPanedwindow.cjan.nijtmans2020-09-031-148/+148
| | | More Master->Container-related changes
* Implement part of TIP #581: Master/Slave. Not complete yet, and also the ↵jan.nijtmans2020-09-031-2/+3
| | | | change to TkGetGeomContainer/TkGetTransientContainer is left out for now.
* CONST -> const. Eliminate unnecessary type-casts and end-of-line spacingjan.nijtmans2019-06-251-1/+1
|
* Whitespace cleanup, syncronize a little with "trunk" version.jan.nijtmans2019-05-091-1/+1
|
* Rename Tk_GetGeomMaster to TkGetGeomMaster and remove extraneous call toculler2019-04-061-1/+1
| | | Unlink in tkPack.c.
* Let the branch compile with MSVC.fvogel2019-04-051-1/+2
|
* Fix bug [897ffea89f]: Tk allows management loopsculler2019-04-051-0/+19
|
* Make the place manager send ConfigureNotify events when size change requestsculler2019-02-041-0/+6
| | | are rejected. This makes unixEmbed-6.2a pass.
*-. Merge 8.6 and all changes from original [bug-9e31fd9449] branchjan.nijtmans2019-01-081-1/+1
|\ \
| | * Bring back more original "None" usages, and fix other warnings which ↵jan.nijtmans2019-01-031-1/+1
| | | | | | | | | | | | | | | gradually slipped in. Wherever possible, pragma's are used in MSVC to silence useless compiler warnings.
* | | Fix [9e31fd9449]: X11/X.h and Windows.h have conflicting symbols jan.nijtmans2018-12-201-1/+1
|\ \ \ | |/ / |/| / | |/ *** POTENTIAL INCOMPATIBILITY *** for Win32 only: On X11 and Mac, "None" can still be used as before
| * Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2018-12-201-1/+1
| | | | | | | | | | Windows.h have conflicting symbols. Also fix a few newer (harmless) gcc warnings.
| * make some internal tables constjan.nijtmans2012-04-181-1/+1
| |\
| | * make some more internal tables CONSTjan.nijtmans2012-04-181-1/+1
| | |
* | | more places convertedjan.nijtmans2013-01-241-2/+2
| | |
* | | minor improvements to flag handlingdkf2012-07-311-3/+3
| | |
* | | Purged Tcl_AppendElement from all non-test code.dkf2012-07-291-28/+24
| | |
* | | Much more cleaning up of result handling.dkf2012-07-231-8/+9
| | |
* | | Working towards adding all the Tcl_SetErrorCode calls that should be there.dkf2012-07-161-0/+3
| | | | | | | | | ** WORK IN PROGRESS **
* | | frq-3536507: clientData field in Tk_OptionSpec should be "const void *"jan.nijtmans2012-06-201-1/+1
| | |
* | | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * * generic/tkPlace.c: Prevent segfault in place geometry manager.dgp2007-10-251-4/+43
| | | | | | | | | | | | Thanks to Colin McDonald. [Bug 1818491]
| | * Fixed a memory leak when a placed widget was forgotten. [Bug 1028888]pspjuth2004-09-161-9/+41
| | |
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-3/+3
| | | | | | | | | using useful casts internally.
* | | [Patch #3019624] fix "place" command segfault on half-dead app main window.a_kovalenko2010-06-221-4/+5
| | |
* | | SMALL FIX: Remove useless explicit casts now that we require C89 or later.dkf2010-01-021-14/+9
| | |
* | | More small changes to use C89 better and manage the result more efficiently.dkf2008-11-081-17/+19
| | |
* | | more internal -Wwrite-strings warning fixesnijtmans2008-10-301-2/+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.
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-22/+22
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tkPlace.c: Prevent segfault in place geometry manager.dgp2007-10-251-4/+42
| | | | | | | | Thanks to Colin McDonald. [Bug 1818491]
* | header cleanupdgp2007-09-071-2/+1
| |
* | Cleaning up whitespace, comments, declarations. No functional changes.dkf2007-06-241-33/+40
| |
* | various "const" additions, in line with TIP #27nijtmans2007-01-051-2/+2
| | | | | | | | fix bug #1627732
* | various "const" additions, in line with TIP #27nijtmans2007-01-031-2/+2
| |
* | Lots of ANSIfying of function decls.dkf2005-11-171-7/+7
| | | | | | | | Also a few spots where code has been cleaned up more completely.
* | ANSIfydkf2005-11-151-326/+313
| |
* | Fixed a memory leak when a placed widget was forgotten. [Bug 1028888]pspjuth2004-09-161-9/+41
| |
* | * 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:
* | * 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]
* 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]
* 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-3/+4
| | | | | argument of Tcl_GetIndexFromObj(Struct) from (char **) to (CONST char **). [TIP 27] [Patch 504705]