summaryrefslogtreecommitdiffstats
path: root/generic/tkMain.c
Commit message (Collapse)AuthorAgeFilesLines
* it's no longer necessary to set _USE_32BIT_TIME_T in Tkjan.nijtmans2012-08-091-5/+0
|
* fix broken build on Visual Studio 9+10jan.nijtmans2012-08-051-1/+6
|
* Change XChangeWindowAttributes signature and many others to match Xorg, ↵jan.nijtmans2012-06-081-4/+10
|\ | | | | | | needed for Cygwin
| * Implement TkCygwinMainEx for loading Cygwin's Tk_MainEx from the Tk dlljan.nijtmans2012-06-081-4/+9
| |\
| | * Implement TkCygwinMainEx for loading Cygwin's Tk_MainEx from the Tk dlljan.nijtmans2012-06-081-15/+20
| | |
| | * Change XFillRectangle(s)/XDrawLines(s) signature to match Xorg, needed for ↵jan.nijtmans2012-05-291-2/+0
| | | | | | | | | | | | | | | Cygwin. Generate same pkgIndex.tcl file for win32 and cygwin, one that is equally useable for both.
* | | Implement XFlush and various others for win32 as stubs, so win32 extensions ↵jan.nijtmans2012-05-311-1/+9
| | | | | | | | | | | | | | | using those can run under CYGWIN as well. Allow tk86.dll to cooperate with the cygwin console.
* | | Simpify determination whether we are running on cygwin.jan.nijtmans2012-05-311-0/+22
|\ \ \ | |/ / | | | Export Tk_GetHINSTANCE, TkSetPixmapColormap and TkpPrintWindowId on the Cygwin dll
| * | merge core-8-4-branch, still to be tested on Unixtobetestedjan.nijtmans2012-05-291-36/+68
| |\ \ | | |/
| | * Simpify determination whether we are running on cygwin.jan.nijtmans2012-05-251-35/+70
| | | | | | | | | | | | Export Tk_GetHINSTANCE, TkSetPixmapColormap and TkpPrintWindowId on the Cygwin dll. Fix "make genstubs" when cross-compiling on UNIX
* | | minor clean-up of tkInt.declsjan.nijtmans2012-04-121-1/+1
|\ \ \ | |/ / | | | | | | disallow colors like xellow configure changes for cygwin
| * | disallow colors like xellowjan.nijtmans2012-04-121-1/+1
| |\ \ | | |/ | | | | | | cleanup tkInt.decls configure changes for cygwin
| | * sync tcl.m4 with Tcl, format tkInt.decls like Tk8.5/8.6jan.nijtmans2012-04-111-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/tkMain.c (Tk_MainEx): replicate macosx-specific code fromdas2007-03-071-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TkpInit() that ensures the console window appears when wish is started from the OS X Finder (i.e. with stdin == /dev/null), jeffh's 2006-11-24 change rendered the corresponding code in TkpInit() ineffective in wish because Tk_MainEx() sets tcl_interactive before calling TkpInit(). * macosx/tkMacOSXDebug.c (TkMacOSXGetNamedDebugSymbol): add fix for libraries loaded with a DYLD_IMAGE_SUFFIX. * unix/tcl.m4 (Darwin): s/CFLAGS/CPPFLAGS/ in macosx-version-min check. * unix/configure: autoconf-2.13
| | * * generic/tkConsole.c: Complete reversal of the changes of Sep 22.andreas_kupries2006-09-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMain.c: For compat reason the Tcl core will not change * generic/tkWindow.c: the registered version to include the patchlevel, * library/tk.tcl: making the changes to Tk unnecessary. * unix/configure: * unix/Makefile.in: * unix/tcl.m4: * win/configure: * win/Makefile.in: * win/makefile.vc: * win/rules.vc: * win/tcl.m4:
| | * * generic/tkConsole.c: TIP #268 update regarding registered packageandreas_kupries2006-09-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMain.c: version, now using full patchlevel instead of * generic/tkWindow.c: major.minor * library/tk.tcl: * unix/configure: * unix/Makefile.in: * unix/tcl.m4: * win/configure: * win/Makefile.in: * win/makefile.vc: * win/rules.vc: * win/tcl.m4:
| | * * generic/tkMain.c: Added Tcl_Preserve() call on the masterdgp2006-06-091-1/+3
| | | | | | | | | | | | | | | interp as crash protection against any Tcl_DeleteInterp() call that might happen.
| | * * generic/tkMain.c: Rewrote code that sets the ::argv valuedgp2005-10-181-16/+21
| | | | | | | | | | | | | | | | | | to be sure conversion from the system encoding is complete before any processing sensitive to list-special characters is done. [Bug 1328926].
| | * * generic/tkMain.c:das2004-11-111-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXAppInit.c (removed): * macosx/Wish.pbproj/project.pbxproj: * macosx/tkMacOSXInit.c: * macosx/tkMacOSXInt.h: changes to make TkAqua dynamically loadable, enabling [package require Tk] from tclsh. Startup code from tkMacOSXAppInit.c moved into tkMacOSXInit.c, added code that notifies the window server that an unbundled executable is a full GUI application after loading Tk. [Patch 1035348] * doc/wm.n: documented [wm attributes] on Mac OS X. [Bug 606665] * macosx/tkMacOSXWm.c: implemented TIP 222 [wm attributes -alpha] on Mac OS X. [Patch 892194] WmIconbitmapCmd: adopted FSRef changes from [wm atttrs -titlepath]. * macosx/tkMacOSXButton.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXRegion.c: * macosx/tkMacOSXSubwindows.c: synced spacing/formatting with HEAD. * macosx/tkMacOSXMouseEvent.c: endianness fixes. * macosx/Wish.pbproj/project.pbxproj: corrected path to html help inside framework. * macosx/Makefile: prevent parallel make from building several targets at the same time. Ensure that xcodebuild will use Wish.pbproj project even if a .xcode project is also present.
| * | Fix CYGWIN warning: "fd_set and assiciated.macros have been defined in ↵nijtmans2010-05-311-9/+1
| | | | | | | | | | | | sys/types. This may cause runtime problems with W32"
| * | * generic/tkConsole.c: Relax the runtime version requirements on Tcldgp2009-10-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMain.c: so that Tk 8.5.8 can [load] into Tcl 8.6 (and * generic/tkWindow.c: later 8.*) interps. * library/tk.tcl * unix/Makefile.in: * win/Makefile.in: * win/makefile.vc:
* | | refactor isatty() function for Windowsnijtmans2010-12-171-35/+21
| | | | | | | | | | | | Let TkpDisplayWarning() send the message directly to the debugger, if available, otherwise do as before
* | | [Patch #3124683]: platform specific stuff in (tcl|tk)Main.cnijtmans2010-12-151-116/+92
| | |
* | | Change "Application initialization failed" to "application-specific ↵nijtmans2010-12-131-2/+2
| | | | | | | | | | | | initialization failed", for consistency with Tcl.
* | | Remove unused strrchr, combine outChannel/errChannel variables to a single ↵nijtmans2010-11-241-19/+19
| | | | | | | | | | | | variable
* | | reverted previous commit: it has effect on the Windows consolenijtmans2010-11-151-28/+38
| | |
* | | Eliminate use of the function Tcl_WinTCharToUtf in generic codenijtmans2010-11-151-38/+28
| | |
* | | Sync TK_ASCII_MAIN usage with tclMain.cnijtmans2010-11-051-4/+9
| | |
* | | tkMain.c: make compilable with -DUNICODE as wellnijtmans2010-09-291-40/+86
| | |
* | | [Tcl Bug 3029891] Functions that don't belong in the stub table (Tk part, ↵nijtmans2010-07-161-6/+5
| | | | | | | | | | | | | | | | | | not really removed from the stub table, just disabled) [Bug 3027438] Tk_Main calls Tcl_CreateInterp before Tcl_FindExecutable
* | | TIP #338 IMPLEMENTATIONdgp2008-12-151-2/+1
| | | | | | | | | | | | | | | | | | * doc/Tk_Main.c: Removed the last two '#include "tclInt.h"'. * generic/tkMain.c: Tk is now limited to Tcl's public interface. * macosx/tkMacOSXInit.c:
* | | Lots of small changes to make code more pretty and C89-like.dkf2008-11-081-2/+2
| | |
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-17/+14
| | |
* | | * README: Bump version number to 8.6a0dgp2008-04-011-3/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tk.h: * library/tk.tcl: * macosx/Wish-Common.xcconfig: * unix/configure.in: * unix/tk.spec: * win/README: * win/configure.in: * win/tcl.m4: * unix/configure: autoconf-2.59 * win/configure: * generic/tkConsole.c: Relax Tcl_InitStubs() calls so that a Tk 8.6 * generic/tkMain.c: might [load] into a Tcl 8.5 interp. * generic/tkWindow.c: * generic/tkStubLib.c: Update to compatibility with a libtcl.so that contains no "tclStubsPtr" [Tcl Bug 1819422]. * generic/tkDecls.h: make genstubs * generic/tkIntDecls.h: * generic/tkIntPlatDecls.h: * generic/tkIntXlibDecls.h: * generic/tkPlatDecls.h:
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tkConsole.c: Revised callers of Tcl_InitStubs() to accountdgp2007-09-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMain.c: for restored compatible support for the call * generic/tkWindow.c: Tcl_InitStubs(interp, TCL_VERSION, 1). Also revised Tcl_PkgRequire() call for Tcl so that, for example, a Tk library built against Tcl 8.5.1 headers will not refuse to [load] into a Tcl 8.5.0 interpreter. [Tcl Bug 1578344]. * generic/tk.h: Revised Tk_InitStubs() to restore Tk 8.4 * generic/tkStubLib.c: source compatibility with callers of * generic/tkWindow.c: Tk_InitStubs(interp, TK_VERSION, 1).
* | * generic/tkConsole.c: Revised calls to Tcl_InitStubs() anddgp2007-09-111-2/+2
| | | | | | | | | | | | | | | | | | * generic/tkMain.c: [package require Tcl] so that Tk Says What * generic/tkWindow.c: It Means using the new facilties of [package] * library/tk.tcl: in Tcl 8.5 about what version(s) of Tcl it * unix/Makefile.in: is willing to work with. [Bug 1578344]. * win/Makefile.in: * win/makefile.vc:
* | * generic/tkConsole.c: Revise all Tcl_InitStubs() calls to restoredgp2007-09-101-2/+2
| | | | | | | | | | | | | | * generic/tkMain.c: the traditional practice that a Tk shared * generic/tkWindow.c: library may [load] into a Tcl 8.5 interp at any patchlevel. This practice also matches the compile time checks of TCL_MAJOR_VERSION and TCL_MINOR_VERSION in tk.h. [Bug 1723622]
* | header cleanupdgp2007-09-071-4/+2
| |
* | * generic/tkMain.c (Tk_MainEx): replicate macosx-specific code fromdas2007-03-071-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TkpInit() that ensures the console window appears when wish is started from the OS X Finder (i.e. with stdin == /dev/null), jeffh's 2006-11-24 change rendered the corresponding code in TkpInit() ineffective in wish because Tk_MainEx() sets tcl_interactive before calling TkpInit(). * generic/ttk/ttkGenStubs.tcl (new): add ttk-specific genstubs.tcl from * unix/Makefile.in (genstubs): tile and run it from 'genstubs' target, restores ability to generate all of Tk's stub sources. * generic/ttk/ttkTreeview.c: #ifdef out unused declaration. * macosx/tkMacOSXDebug.c (TkMacOSXGetNamedDebugSymbol): add fix for libraries loaded with a DYLD_IMAGE_SUFFIX. * macosx/Wish.xcodeproj/project.pbxproj: ensure gcc version used by * macosx/Wish.xcodeproj/default.pbxuser: Xcode and configure/make are * macosx/Wish-Common.xcconfig: consistent and independent of gcc_select default and CC env var; fixes for Xcode 3.0. * unix/tcl.m4 (Darwin): s/CFLAGS/CPPFLAGS/ in macosx-version-min check. * unix/configure: autoconf-2.59
* | * generic/tkConsole.c: TIP #268 update regarding registered packageandreas_kupries2006-09-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMain.c: version, now using full patchlevel instead of * generic/tkWindow.c: major.minor * library/tk.tcl: * unix/configure: * unix/Makefile.in: * unix/tcl.m4: * win/configure: * win/Makefile.in: * win/makefile.vc: * win/rules.vc: * win/tcl.m4:
* | * generic/tkMain.c: Added Tcl_Preserve() call on the masterdgp2006-06-091-1/+3
| | | | | | | | | | interp as crash protection against any Tcl_DeleteInterp() call that might happen.
* | ANSIfydkf2005-12-121-125/+130
| |
* | * generic/tkMain.c: Rewrote code that sets the ::argv valuedgp2005-10-181-24/+23
| | | | | | | | | | | | to be sure conversion from the system encoding is complete before any processing sensitive to list-special characters is done. [Bug 1328926].
* | * generic/tkMain.c:das2004-11-111-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXAppInit.c (removed): * macosx/Wish.pbproj/project.pbxproj: * macosx/tkMacOSXInit.c: * macosx/tkMacOSXInt.h: changes to make TkAqua dynamically loadable, enabling [package require Tk] from tclsh. Startup code from tkMacOSXAppInit.c moved into tkMacOSXInit.c, added code that notifies the window server that an unbundled executable is a full GUI application after loading Tk. [Patch 1035348] * doc/wm.n: documented [wm attributes] on Mac OS X. [Bug 606665] * macosx/tkMacOSXWm.c: implemented TIP 222 [wm attributes -alpha] on Mac OS X. [Patch 892194] WmIconbitmapCmd: adopted FSRef changes from [wm atttrs -titlepath]. * macosx/tkMacOSXSubwindows.c: synced spacing/formatting with core-8-4-branch. * generic/tkRectOval.c: * macosx/README: * macosx/tkMacOSXDefault.h: * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXInit.c: * macosx/tkMacOSXInt.h: * macosx/tkMacOSXMenu.c: * macosx/tkMacOSXWm.c: forward port from core-8-4-branch of Jim's and my changes for CG drawing and [wm attributes] (corresponds to 8.4 changes dating from 09-18, 07-27, 07-24). * macosx/tkMacOSXMouseEvent.c: endianness fixes. * macosx/Wish.pbproj/project.pbxproj: corrected path to html help inside framework. * macosx/Makefile: prevent parallel make from building several targets at the same time.
* | Removed support for Mac OS Classic platform [Patch 918139]das2004-03-171-6/+2
| |
* | * doc/wish.1: Implementation of TIPs 137/151.dgp2003-09-051-23/+43
|/ | | | | | | | | | | * generic/tkMain.c (Tk_MainEx): Added recognition of the -encoding * tests/main.test: command line option by Tk_MainEx() and thus by wish, and any other program built on Tk_MainEx(). [Patch 800139]. This is a ***POTENTIAL INCOMPATIBILITY*** only for those C programs that embed Tcl and Tk, build on Tk_MainEx(), and make use of Tk_MainEx's former ability to pass a leading "-encoding" option to interactive shell operations.