summaryrefslogtreecommitdiffstats
path: root/generic/tkCmds.c
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* * generic/tkCmds.c (Tk_TkObjCmd):hobbs2002-06-171-3/+83
| | | | | | | | | | * generic/tkInt.h (struct TkCaret): * mac/tkMacXStubs.c (Tk_SetCaretPos): * unix/tkUnixKey.c (TkpGetString, Tk_SetCaretPos): * win/tkWinX.c (Tk_SetCaretPos): * tests/tk.test: Added 'tk caret' implementation of TIP#96 * doc/SetCaret.3 (new): which adds a TkCaret structure element to * doc/tk.n: TkDisplay for maintaining state.
* corrected cast warninghobbs2002-06-151-2/+2
|
* * generic/tkCmds.c (Tk_TkObjCmd):hobbs2002-06-151-3/+7
| | | | | | | * unix/tkUnixKey.c (TkpGetString): * generic/tkEvent.c (Tk_HandleEvent): * generic/tkInt.h: changed useInputMethods boolean from int to a bit in the flags variable (TK_DISPLAY_USE_IM)
* * generic/tkInt.h:hobbs2002-06-151-3/+13
| | | | | | | * generic/tkCmds.c (Tk_WmObjCmd): * unix/tkUnixWm.c (Tk_WmCmd): * win/tkWinWm.c (Tk_WmCmd): changed wmTracing from being an int to just a bit in the flags variable (TK_DISPLAY_WM_TRACING)
* TIP #47 "Modifying Tk to Allow Writing X Window managers"jenglish2002-06-141-4/+4
| | | | | | | | (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 part2 argument ofdgp2002-03-201-3/+3
| | | | Tcl_VarTraceProc typedef. [TIP 27] [Patch 532644].
* * generic/tkCmds.c (Tk_TkObjCmd): don't use 'bool' as an arg as ithobbs2002-02-021-4/+4
| | | | conflicts with the C99 spec. [Bug #511956] (ingham)