summaryrefslogtreecommitdiffstats
path: root/unix
Commit message (Collapse)AuthorAgeFilesLines
* * changes: Add note about new transient behavior.mdejong2002-06-121-7/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/unixWm.test: Check that the WM_TRANSIENT_FOR property for a transient window is being cleared when the master is destroyed. * tests/wm.test: Source defs.tcl instead of using tcltest to match the rest of Tk's test files. Add new tests that ensure that a transient's state mirrors the state of the master. * unix/tkUnixWm.c (WmInfo, TkWmNewWindow, TkWmMapWindow, TkWmDeadWindow, Tk_WmCmd, WmWaitMapProc): Add numTransients member to WmInfo structure. Keep state of master and transient in sync using a callback that tracks MapNotify and UnmapNotify events. When the master is mapped, map the transient. When the master is unmapped or iconified, withdraw the transient. * win/tkWinWm.c (TkWmMapWindow, TkpWmSetState, TkWmDeadWindow, Tk_WmCmd, WmWaitVisibilityOrMapProc): Keep state of master and transient in sync using a callback that tracks MapNotify and UnmapNotify events. Move masterPtr check from TkpWmSetState into TkWmMapWindow to deal with WM_NEVER_MAPPED transients. Cleanup numTransients and the callback in TkWmDeadWindow. Cleanup numTransients and the callback only after deleting a master in wm transient command to avoid deleting the callback when an error is raised. Add support for MapNotify and UnmapNotify events to the master callback.
* * unix/tkUnixFont.c (Tk_DrawChars): Don't assume thata_kovalenko2002-06-051-10/+16
| | | | | | | one char is always one byte, and that required subfont for the last character in any string is the same as for the previous character [Bug #559435] [Patch #559437]
* * changes: Document [wm transient .t .t] error.mdejong2002-05-271-2/+9
| | | | | | | | | | | | | | * tests/wm.test: Check that setting a window as a transient of itself raises an error. Check that passing a non-toplevel window to the wm transient command uses the enclosing toplevel. * unix/tkUnixWm.c (Tk_WmCmd): Raise an error if the user tries to make a toplevel a transient of itself. * win/tkWinWm.c (Tk_WmCmd): Raise an error if the user tries to make a toplevel a transient of itself. Test for other error before checking for the transient self error.
* * unix/tkUnixWm.c (WmInfo, TkWmCleanup, TkWmNewWindow,mdejong2002-05-271-40/+22
| | | | | | | | | TkWmMapWindow, TkWmDeadWindow, Tk_WmCmd): Replace WmInfo's master and masterWindowName members with a masterPtr member. This implementation is much simpler and mirrors the Win32 implementation. This change makes it easy to check the flags of the master window. No user visible changes.
* * generic/tkInt.decls: Add unix decl for TkpWmSetState.mdejong2002-05-271-64/+80
| | | | | | | | | | | * generic/tkIntPlatDecls.h: Regen. * generic/tkStubInit.c: Regen. * tests/wm.test: Test state changes between iconic, normal, and withdrawn both before and after initial mapping. * unix/tkUnixWm.c (Tk_WmCmd, TkpWmSetState): Move state change code into TkpWmSetState to more closely match the Win32 implementation. No functional changes.
* * tests/embed.test: Added cross platform embed tests.mdejong2002-05-271-1/+11
| | | | | | | | | | | | | | Check that window passed to -use has the -container option set. * tests/wm.test: Remove useless catch call. Deiconify . just in case, stackorder tests will not pass unless it is in the normal state. Add -container flag to embedded stackorder test. * unix/tkUnixEmbed.c (TkpUseWindow): * win/tkWinEmbed.c (TkpUseWindow): Lookup Tk window based on the id passed in as the value for -use. Generate an error if the Tk window did not have the -container option set.
* * mac/tkMacWm.c (Tk_WmCmd):mdejong2002-05-241-1/+19
| | | | | | | | | | | * tests/unixWm.test: Move wm transient checks over to wm.test so they will be run on all systems. * tests/wm.test: Add tests to check for error when an iconwindow is passed to the wm transient command. * unix/tkUnixWm.c (Tk_WmCmd): * win/tkWinWm.c (Tk_WmCmd): Raise an error if one of the windows passed to the wm transient command is an iconwindow for another toplevel.
* * mac/tkMacWm.c (TkWmStackorderToplevelWrapperMap):mdejong2002-05-231-2/+3
| | | | | | | | * tests/wm.test: Add embedded Window test case for the stackorder command. * unix/tkUnixWm.c (TkWmStackorderToplevelWrapperMap): * win/tkWinWm.c (TkWmStackorderToplevelWrapperMap): Ignore embedded windows during wm stackorder command.
* * unix/configure: Regen.mdejong2002-05-213-219/+244
| | | | | | | * unix/configure.in: Invoke SC_ENABLE_SHARED before calling SC_CONFIG_CFLAGS so that the SHARED_BUILD variable can be checked inside SC_CONFIG_CFLAGS. * unix/tcl.m4: Update from Tcl.
* * unix/configure:hobbs2002-04-262-4/+4
| | | | | * unix/tcl.m4: change HP-11 SHLIB_LD_LIBS from "" to ${LIBS} so that the .sl knows its dependent libs.
* * generic/tkTextDisp.c (DisplayLineBackground):hobbs2002-04-232-38/+45
| | | | | | * unix/tkUnix3d.c (Tk_3DHorizontalBevel): * unix/tkUnixFont.c (Tk_DrawChars): applied fixes to not overrun the X window 16-bit size limit. [Patch #541999] (bonfield)
* * unix/tkUnixEvent.c (TkpCloseDisplay): call TkSendCleanup andhobbs2002-04-121-26/+25
| | | | TkWmCleanup.
* unix/tkUnixSend.c (TkSendCleanup): free send-related resourceshobbs2002-04-121-1/+34
|
* * generic/tkInt.h:hobbs2002-04-121-7/+50
| | | | | | * unix/tkUnixXId.c (TkFreeXId): frees XID resources. Made idCleanupScheduled a Tcl_TimerToken (was int) in TkDisplay structure to allow us to delete the timer scheduled for it.
* * unix/tkUnixWm.c (TkWmStackorderToplevel): ensure childrenhobbs2002-04-121-50/+96
| | | | | | | | | | structure is freed. (ConfigureEvent, ComputeReparentGeometry): Add extra wm tracing info (TkWmRestackToplevel): initialize changes to 0 to prevent UMR. Use WaitForConfigureNotify on all windows. This part still requires fixing as it is the root of the 2 second raise delay on some window managers (those that use extra wrapper windows of their own).
* * unix/tkUnixSelect.c (SelRcvIncrProc): added missing Tcl_Releasehobbs2002-04-121-1/+2
| | | | of interp
* * unix/tkUnixFont.c (FontPkgCleanup): cleanup thread specific fonthobbs2002-04-121-1/+41
| | | | resources on thread exit.
* * doc/wm.n:mdejong2002-04-101-2/+2
| | | | | | | | | * mac/tkMacWm.c: * tests/wm.test: * unix/tkUnixWm.c: * win/tkWinWm.c: Update wm stackorder usage message to make it clear that either 1 or 3 arguments are required. [Bug 540013]
* * unix/tkUnixWm.c (CreateWrapper): Removed redundat setting ofhobbs2002-04-051-4/+1
| | | | inputContext to null.
* * unix/tkUnixEvent.c:hobbs2002-04-051-2/+96
| | | | | | * generic/tkWindow.c: moved OpenIM over to tkUnixEvent.c. Removed setting inputContext to null in Tk_MakeWindowExist as it was redundant.
* * unix/tkUnixKey.c: added Tk_SetCaretPos and code for settinghobbs2002-04-051-2/+55
| | | | XIM caret in TkpGetString.
* * Ran 'autoconf' - forgotten when bump to 8.4a5.dgp2002-03-281-1/+1
|
* * unix/tkUnixFont.c: Added inclusion of <arpa/inet.h>. This fixesandreas_kupries2002-03-271-1/+2
| | | | | a GCC/HPUX problem with missing a "htons". See also "tclUnixPort.h" for equivalent code.
* Added win/rc/wish.exe.manifest to the dist target. Noted missing bydavygrvy2002-03-061-1/+4
| | | | Ryan Casey.
* Bumped patchlevel; might need changing in the future, but it makes lifedkf2002-03-062-5/+5
| | | | easier for now.
* added --* options docshobbs2002-03-051-3/+9
|
* fixed URL refshobbs2002-03-051-4/+4
|
* Added win/rules.vc and included the use of eolFix to make sure theydavygrvy2002-03-051-1/+5
| | | | | have the correct <EOL> for the dist target. eolFix is in tcl's tools/ dir, and $(TOOL_DIR) correctly refers there.
* updated to use www.tcl.tk URLhobbs2002-03-041-3/+3
|
* updated from Tclhobbs2002-02-272-124/+134
|
* * unix/configure: Regen.mdejong2002-02-232-2/+2
| | | | * unix/tcl.m4: Update from Tcl.
* changed panedwindow default relief to flathobbs2002-02-221-2/+2
|
* Stop GCC from issuing warnings about things that don't matter.dkf2002-02-221-3/+3
|
* TIP #41 implementation, panedwindow [Patch #512503] (melski)hobbs2002-02-222-4/+42
|
* * unix/configure: regeneratedhobbs2002-02-222-216/+256
| | | | * unix/tcl.m4: updated to sync with Tcl's tcl.m4
* * unix/configure: regen'dhobbs2002-02-193-136/+526
| | | | | | * unix/tcl.m4: * unix/configure.in: added macros and calls to SC_TCL_EARLY_FLAGS and SC_TCL_64BIT_FLAGS, part of TIP #72.
* * unix/configure.in: Don't set TCL_LIB_SPEC andmdejong2002-01-292-7/+1
| | | | | | | TCL_STUB_LIB_SPEC variables since this breaks the AIX build. This was used in the past to support linking with Tcl from the build dir or the install dir, but it is no longer needed.
* * unix/Makefile.in: Remove commented out vars.mdejong2002-01-294-173/+201
| | | | | | | | | * unix/configure: Regen. * unix/configure.in: Don't subst vars that are already taken care of in SC_LOAD_TCLCONFIG. * unix/tcl.m4: Update from Tcl. * win/configure: Regen. * win/tcl.m4: Update from Tcl.
* * Updated callers of Tcl_SplitList and Tcl_Merge.dgp2002-01-256-18/+19
| | | | | | | | | * Updated callers of Tcl_GetStringResult. Rewrote PrintScrollFractions to ScrollFractions to stop scribbling directly on interp->result. * Updated callers of Tcl_GetVar, Tcl_GetVar2 * Updated callers of Tcl_SplitPath, Tcl_JoinPath, and Tcl_TranslateFileName.
* * Updated callers of Tcl_Utf* and Tcl_Regexp* APIs to reflect TIP 27dgp2002-01-171-3/+3
| | | | API changes (see Tcl Patch 471509). [Patch 471513]
* * unix/configure: Regen.mdejong2002-01-172-137/+139
| | | | | | * unix/tcl.m4: Update from Tcl. * win/configure: Regen. * win/tcl.m4: Update from Tcl.
* Use ${libdir} instead of ${exec_prefix}/lib. [Tcl bug 489370]mdejong2002-01-112-189/+193
| | | | | | | * unix/configure: Regen. * unix/configure.in: Define and use libdir. * win/configure: Regen. * win/configure.in: Define libdir.
* * unix/Makefile.in: Burn Tcl and Tk buildmdejong2002-01-111-15/+14
| | | | | | | | | directories into tktest executable to avoid crashes caused by ld loading a previously installed version of the tcl or tk shared libraries. Remove setting of LD_LIBRARY_PATH, LIBPATH, and SHLIB_PATH before running tktest since it should no longer be required.
* Enable use of Tcl stubs when building Tk asmdejong2002-01-113-8/+15
| | | | | | | | | | | | | a shared library. This should fix the build under AIX. [Bugs 220858, 220955, 220921] * unix/Makefile.in: Add TCL_STUB_LIB_SPEC and TCL_STUB_LIB_FLAG variables. * unix/configure: Regen. * unix/configure.in: Pass TCL_STUB_LIB_SPEC into Makefile and use it when linking the tk shared library. Define USE_TCL_STUBS when building shared. Subst TCL_STUB_LIB_SPEC and TCL_STUB_LIB_FLAG.
* * unix/configure: Regen.mdejong2001-12-202-5/+5
| | | | * unix/tcl.m4: Update from Tcl.
* * unix/configure: Regen.mdejong2001-12-192-110/+163
| | | | * unix/tcl.m4: Update from Tcl.
* * unix/configure: Regen.mdejong2001-12-192-7/+17
| | | | | * unix/configure.in: Move EXP file changes over from Tcl configure script to fix AIX build with gcc. [Bug 220955]
* * unix/Makefile.in:mdejong2001-12-191-2/+2
| | | | | * win/Makefile.in: Use $(MAKE) instead of make in the tcltest rule.
* (TkWmStackorderToplevelWrapperMap): added statichobbs2001-12-131-2/+3
|
* Add TK patch 481148 to implement TIP 74, themdejong2001-12-041-4/+228
| | | | | | | | | | | | | | | | | | | | | | | | | | wm stackorder command. * doc/winfo.n: Update documentation for the winfo children command to indicate that top-level windows are not returned in stacking order. * doc/wm.n: Add documentation for wm stackorder. * generic/tkInt.decls (TkWmStackorderToplevel): Add decl for new function. * generic/tkIntDecls.h: Regen. * generic/tkStubInit.c: Regen. * tests/unixWm.test: Add stackorder command to test for wm command usage message. * tests/wm.test: Add new set of tests for generic window manager methods. * unix/tkUnixWm.c (Tk_WmCmd, TkWmStackorderToplevelWrapperMap, TkWmStackorderToplevel): Add unix implementation of new wm stackorder command. * win/tkWinWm.c (Tk_WmCmd, TkWmStackorderToplevelEnumProc, TkWmStackorderToplevelWrapperMap, TkWmStackorderToplevel): Add windows implementation of new wm stackorder command.