summaryrefslogtreecommitdiffstats
path: root/generic/tkCmds.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix [be9cade996]: sigsegv in tkwait. Propagate the fix from ↵fvogel2021-02-201-2/+4
| | | | https://core.tcl-lang.org/tcl/tktview/16828b3744521541660af48501fa06e63e564ad3 from vwait to tkwait.
* More usage of TCL_UNUSED() and explicit type-castsjan.nijtmans2020-09-151-44/+37
|
* end-of-line spacing cleanupjan.nijtmans2020-08-031-1/+1
|
* The colormaps do not fix winfo rgb. Handle that directly. And deal with ↵culler2020-08-011-0/+16
| | | | Big Sur deprecations.
* Add 7 X11 functions to the aqua stub table, which makes them accessable to ↵jan.nijtmans2019-09-241-1/+1
| | | | | stubbed extensions. They were defined in tkMacOSXPort.h as macro's, which is not 'right'
* Don't use "class" as (internal) struct field name or local variable name. ↵jan.nijtmans2019-09-241-7/+7
| | | | Make it "c_class" (just as X11 does as well), in order to prevent conflict with C++ compilers.
* Patch refinement from Christian Werner. It is now possible to 'make test' ↵fvogel2018-01-311-0/+3
| | | | with an untrusted X connection without being stopped by X errors (and of course with more failures due to the untrusted connection).
* Make the "scrollbar" a real Tcl_Obj-based command. No change in functionality.jan.nijtmans2014-05-221-5/+5
|
* Eliminate all usage of WIN32 macro as well: _WIN32 is the portable macro.jan.nijtmans2014-02-101-2/+2
|
* Eliminate all usage of __WIN32__ macro: Some compilers (e.g. Clang/LLVM) ↵jan.nijtmans2014-02-101-2/+2
| | | | | don't define it, and _WIN32 is much more portable anyway. See: [http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#WindowsCygwinnonPOSIXandMinGW]
* Revert [ac229dabaa]. There is a reason the Tcl_GetIndexFromObj wrapper jenglish2013-02-271-12/+12
| | | exists and is used.
* Eliminate all Tcl_GetIndexFromObj calls, which is only a thin wrapper around ↵jan.nijtmans2013-02-271-12/+12
| | | | Tcl_GetIndexFromObjStruct.
* Replace all Tcl_TraceVar/Tcl_UntraceVar with Tcl_TraceVar2/Tcl_UntraceVar2 ↵jan.nijtmans2013-02-221-2/+2
| | | | calls: The former are just thin wrappers around the latter.
* some more int -> size_t changesjan.nijtmans2013-02-011-1/+1
|
* more places convertedjan.nijtmans2013-01-241-3/+3
|
* Replace various functions calls, for functions which are small wrappers ↵jan.nijtmans2013-01-141-2/+2
| | | | around other functions, to call the wrapped function directly.
* more reorganization of error codes: safety is common failure modedkf2012-07-301-4/+4
|
* more auditing of error codesdkf2012-07-301-4/+6
|
* Much more cleaning up of result handling.dkf2012-07-231-49/+68
|
* Purge RCS Keywordsdgp2011-06-081-2/+0
|\
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * * generic/tkCmds.c: Purged remaining references todgp2006-03-131-2/+1
| | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXPort.h: errno, and errno.h. Standardized * macosx/tkMacOSXWm.c: the logic for using header files from * macosx/tkMacOSXWm.h: the compat directory. Thanks Joe * unix/tkUnixPort.h: English for the patch. [Patch 1445404]
| | * * generic/tkCmds.c (Tk_TkObjCmd): use correct screen data whenhobbs2004-11-121-6/+4
| | | | | | | | | | | | -displayof arg is passed to [tk scaling]. [Bug 800178]
| | * * generic/tkCmds.c (Tk_WinfoObjCmd): refetch interp result obj forhobbs2004-06-291-1/+5
| | | | | | | | | | | | 'winfo id' as it can change when making the window exist.
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-8/+6
| | | | | | | | | using useful casts internally.
* | | fix more gcc warnings: missing initializernijtmans2010-01-181-9/+9
| | | | | | | | | | | | | | | Apply patch [#2932808]: Canvas items not updating on widget state change
* | | SMALL FIX: Remove useless explicit casts now that we require C89 or later.dkf2010-01-021-40/+36
| | |
* | | - eliminate some unnessary type castsnijtmans2009-02-031-12/+12
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | TIP #324 IMPLEMENTATIONdas2008-12-101-1/+11
| | |
* | | * generic/tkInt.h: Turn [tk] into an ensemble (thoyts, steffen)das2008-12-101-231/+298
| | | | | | | | | | | | | | | | | | * generic/tkBusy.c: * generic/tkCmds.c: * generic/tkWindow.c:
* | | more internal -Wwrite-strings warning fixesnijtmans2008-10-301-2/+2
| | |
* | | Implementation of the [tk busy] command on non-OSX.dkf2008-10-181-8/+8
| | | | | | | | | | | | Adapted from [Patch 1997907]
* | | Add "const" to many internalnijtmans2008-10-171-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | minor correctionsdkf2008-10-051-3/+3
| | |
* | | Greatly clean up Tk's handling of the writability of the Tcl result object.dkf2008-10-051-114/+92
| | |
* | | TIP 285 ImplementationJoe Mistachkin2008-06-131-9/+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-181-29/+29
| |
* | * generic/tkCmds.c: Purged remaining references todgp2006-03-131-2/+1
| | | | | | | | | | | | | | * macosx/tkMacOSXPort.h: errno, and errno.h. Standardized * macosx/tkMacOSXWm.c: the logic for using header files from * macosx/tkMacOSXWm.h: the compat directory. Thanks Joe * unix/tkUnixPort.h: English for the patch. [Patch 1445404]
* | More bits of ANSIfyingdkf2005-11-111-1050/+1009
| |
* | Partial implementation of TIP#245; thanks Reinhard!dkf2005-05-271-9/+48
| |
* | * generic/tkCmds.c (Tk_TkObjCmd): use correct screen data whenhobbs2004-11-121-6/+4
| | | | | | | | -displayof arg is passed to [tk scaling]. [Bug 800178]
* | TIP#153 implementation from Neil McKay, with thanks!dkf2004-06-301-20/+21
| |
* | * generic/tkCmds.c (Tk_WinfoObjCmd): refetch interp result obj forhobbs2004-06-291-1/+5
| | | | | | | | 'winfo id' as it can change when making the window exist.
* | Removed support for Mac OS Classic platform [Patch 918139]das2004-03-171-5/+1
|/
* * generic/tkCmds.c:hobbs2002-09-021-7/+28
| | | | | | | * generic/tkWindow.c: made 'tk' available in safe interpreters, but only the caret and windowingsystem subcommands may be called. * tests/safe.test (safe-1.2): noted that tk is now available in safe interps, but not the appname/scaling subcommands.
* *** macosx-8-4-branch merged into the mainline [tcl patch #602770] ***macosx_8_4_merge_2002_08_31_trunkdas2002-08-311-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tk.decls: * generic/tkInt.decls: added new "aqua" specific entries to the stubs tables. Changed all "unix" entries to "x11" to allow us to distinguish and build both "aqua" on MacOSX and "x11" on MacOSX. * generic/tk.h: added a #ifnded RESOURCE_INCLUDED so that tk.h can be passed to the resource compiler. * generic/tkCmds.c (Tk_TkObjCmd): added [tk windowingsystem] subcommand: returns "x11" when running on X11, "win32" on Windows, "classic" on MacOS9 and "aqua" on MacOSX Aqua (i.e. Carbon) * generic/tkFont.c (TkFontGetFirstTextLayout): new private function returning the first chunk of a Tk_TextLayout, i.e. until the first font change on the first line (or the whole first line if there is no such font change). * generic/tkMain.c: made Tcl_ThreadDataKey static * library/demos/puzzle.tcl: fixed button metrics for aqua * tests/cursor.test: check for presence of arrow cursor instead of heart cursor * xlib/xcolors.c: changed xColors static initialization to more standard C * macosx/Wish.pbproj/jingham.pbxuser (new): * macosx/Wish.pbproj/project.pbxproj (new): project for Apple's ProjectBuilder IDE. * macosx/Makefile (new): simple makefile for building the project from the command line via the ProjectBuilder tool 'pbxbuild'. * macosx/tkMacOSXAppInit.c (new): macosx specific AppInit looking for a AppMain.tcl file in its bundled Resources/Scripts folder. If present, argv[1] is set to that file and the Scripts folder is added to the auto_path. This allows tk apps to embed scripts within their bundle directory structure. * macosx/tkMacOSXInit.c (new): macosx adapted version of tkUnixInit.c: we initialize & cache the Carbon native encoding (e.g. 'macRoman') and try to find the tk script library files inside Tk packaged as a framework. * macosx/tkMacOSXNotify.c (new): new macosx specific merged Carbon/select-based notifier. * macosx/tkMacOSXEvent.c (new): * macosx/tkMacOSXEvent.h (new): * macosx/tkMacOSXKeyEvent.c (new): * macosx/tkMacOSXMouseEvent.c (new): * macosx/tkMacOSXWindowEvent.c (new): new macosx specific event handling functionality. * macosx/tkMacOSX.h (new): * macosx/tkMacOSXBitmap.c (new): * macosx/tkMacOSXButton.c (new): * macosx/tkMacOSXClipboard.c (new): * macosx/tkMacOSXColor.c (new): * macosx/tkMacOSXConfig.c (new): * macosx/tkMacOSXCursor.c (new): * macosx/tkMacOSXDefault.h (new): * macosx/tkMacOSXDialog.c (new): * macosx/tkMacOSXDraw.c (new): * macosx/tkMacOSXEmbed.c (new): * macosx/tkMacOSXFont.c (new): * macosx/tkMacOSXHLEvents.c (new): * macosx/tkMacOSXInt.h (new): * macosx/tkMacOSXKeyboard.c (new): * macosx/tkMacOSXMenu.c (new): * macosx/tkMacOSXMenubutton.c (new): * macosx/tkMacOSXMenus.c (new): * macosx/tkMacOSXPort.h (new): * macosx/tkMacOSXRegion.c (new): * macosx/tkMacOSXScale.c (new): * macosx/tkMacOSXScrlbr.c (new): * macosx/tkMacOSXSubwindows.c (new): * macosx/tkMacOSXTest.c (new): * macosx/tkMacOSXUtil.c (new): * macosx/tkMacOSXUtil.h (new): * macosx/tkMacOSXWm.c (new): * macosx/tkMacOSXWm.h (new): * macosx/tkMacOSXXStubs.c (new): macosx ports of classic mac Tk implementation in tk/mac. * macosx/tkMacOSXSend.c (new): only send to local interp implemented currently. * macosx/tkMacOSXDebug.h (new): * macosx/tkMacOSXDebug.c (new): new macosx specific functions for debugging MacOS events, regions, etc. * macosx/tkAboutDlg.r (new): * macosx/tkMacOSXApplication.r (new): * macosx/tkMacOSXCursors.r (new): * macosx/tkMacOSXLibrary.r (new): * macosx/tkMacOSXMenu.r (new): * macosx/tkMacOSXResource.r (new): * macosx/tkMacOSXXCursors.r (new): * macosx/tclets.r (new): sources for Rez resource compiler. * macosx/Wish.icns (new): Wish application icon. * generic/tk.h: * generic/default.h: * generic/tkBind.c: * generic/tkCmds.c: * generic/tkGrab.c: * generic/tkPointer.c: * generic/tkPort.h: * generic/tkSelect.c: * generic/tkStubLib.c: * generic/tkTest.c: * generic/tkText.c: * generic/tkWindow.c: * unix/tkUnix3d.c: * xlib/xgc.c: * xlib/X11/X.h: * xlib/X11/Xlib.h: * xlib/X11/Xutil.h: added #includes and #ifdefs for macosx * library/bgerror.tcl: * library/button.tcl: * library/console.tcl: * library/dialog.tcl: * library/entry.tcl: * library/listbox.tcl: * library/menu.tcl: * library/msgbox.tcl: * library/scrlbar.tcl: * library/spinbox.tcl: * library/text.tcl: * library/tk.tcl: * library/demos/menu.tcl: * library/demos/menubu.tcl: * library/demos/widget: check [tk windowingsystem] instead of and/or in addition to $tcl_platform(platform). * generic/tkInt.h: * mac/tkMacBitmap.c: * mac/tkMacWm.c: added missing CONSTification * generic/tkIntDecls.h: * generic/tkIntPlatDecls.h: * generic/tkIntXlibDecls.h: * generic/tkPlatDecls.h: * generic/tkStubInit.c: regen
* Applied companion patch for Tcl Patch 585105,dgp2002-08-051-8/+8
| | | | | | | | | | | | | | | | | | | | | updating Tk to use Tcl 8.4's fully CONST-ified interface, and fully CONSTifying Tk at the same time. This patch includes purging Tk of its last direct access to interp->result. [Bug 589853] The substantial changes include copying event sequence strings into Tcl_DStrings in tkBind.c, and copying [text] indices into Tcl_DStrings because parsing them involved overwriting them. If this causes performance trouble, that can be resolved by further converting them to Tcl_Obj's. The #defines USE_NON_CONST and USE_COMPAT_CONST have the same effect for Tk as they do for Tcl. (They actually change tcl.h)