summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * macosx/tkMacOSXScrlbr.c: correct int <-> dobule conversion issuesdas2007-06-2931-966/+1060
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that could lead to Carbon getting confused about scrollbar thumb size. * macosx/tkMacOSXDraw.c (XCopyArea, XCopyPlane, TkPutImage) use TkMacOSX{Setup,Restore}DrawingContext() to setup/restore clip & colors. (TkMacOSXSetupDrawingContext, TkMacOSXRestoreDrawingContext): add save and restore of QD port clip region; factor out clip region code common to CG and QD branches; check for port and context validity; handle tkPictureIsOpen flag during QD port setup. (TkScrollWindow): remove unnecessary scroll region manipulation * macosx/tkMacOSXDraw.c: remove second global QD temp region * macosx/tkMacOSXInt.h: (no longer necessary) and rename * macosx/tkMacOSXRegion.c: remaining global QD temp region. * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXDraw.c: make useCGDrawing variable MODULE_SCOPE * macosx/tkMacOSXFont.c: and respect it for ATSUI font drawing. * macosx/tkMacOSXButton.c: reduce reliance on current QD port * macosx/tkMacOSXColor.c: setting and remove unnecessary * macosx/tkMacOSXDebug.c: references to a drawable's QD port, * macosx/tkMacOSXDebug.h: notably replace GetWindowFromPort( * macosx/tkMacOSXDialog.c: TkMacOSXGetDrawablePort()) idiom by new * macosx/tkMacOSXDraw.c: TkMacOSXDrawableWindow() and change * macosx/tkMacOSXKeyEvent.c: TkMacOSXSetColorInPort() to take a port * macosx/tkMacOSXMenu.c: argument. * macosx/tkMacOSXMenubutton.c: * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXScale.c: * macosx/tkMacOSXScrlbr.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXInt.h: factor out macros, declarations * macosx/tkMacOSXPrivate.h (new): and prototypes that are purely internal and private to the 'macosx' sources into a new internal header file that does _not_ get installed into Tk.framework/PrivateHeaders. * macosx/tkMacOSXButton.c: #include new tkMacOSXPrivate.h * macosx/tkMacOSXCarbonEvents.c: instead of tkMacOSXInt.h. * macosx/tkMacOSXClipboard.c: * macosx/tkMacOSXColor.c: * macosx/tkMacOSXCursor.c: * macosx/tkMacOSXDebug.c: * macosx/tkMacOSXDialog.c: * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXEntry.c: * macosx/tkMacOSXEvent.c: * macosx/tkMacOSXFont.c: * macosx/tkMacOSXHLEvents.c: * macosx/tkMacOSXInit.c: * macosx/tkMacOSXKeyEvent.c: * macosx/tkMacOSXMenu.c: * macosx/tkMacOSXMenubutton.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXNotify.c: * macosx/tkMacOSXRegion.c: * macosx/tkMacOSXScale.c: * macosx/tkMacOSXScrlbr.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXXStubs.c: * macosx/ttkMacOSXTheme.c:
* * macosx/Wish.xcodeproj/project.pbxproj: improve support for renameddas2007-06-294-36/+71
| | | | | | | | * macosx/Wish.xcodeproj/default.pbxuser: tcl and tk source dirs; add * macosx/Wish-Common.xcconfig: 10.5 SDK build config; remove tclMathOp.c. * macosx/README: document Wish.xcodeproj changes.
* * unix/configure.in: fix flag used to weak-link libXss.das2007-06-292-3/+3
| | | | * unix/configure: autoconf-2.59
* * xlib/ximage.c: bitmaps created from the static .xbmdas2007-06-291-1/+3
| | | | arrays always have LSBFirst bit order.
* restore unix line endingsdgp2007-06-258-2491/+2491
|
* fix compile errors & warnings introduced by dkf's cleanupdas2007-06-253-8/+8
|
* Cleaning up whitespace, comments, declarations. No functional changes.dkf2007-06-241-830/+825
|
* Cleaning up whitespace, comments, declarations. No functional changes.dkf2007-06-242-80/+77
|
* Cleaning up whitespace, comments, declarations. No functional changes.dkf2007-06-2417-2195/+2160
|
* * macosx/tkMacOSXXStubs.c (XCreateImage, DestroyImage): correct XImagedas2007-06-233-130/+256
| | | | | | | | bytes_per_line/bitmap_pad calculations and endianness setting; free image data and XImage structure at destruction; formatting cleanup. * macosx/tkMacOSXDialog.c (NavServicesGetFile): disable app-modal sheet variant of nav dialog on OS versions where it causes problems.
* * generic/tkImgPhoto.c (ImgPhotoConfigureInstance, DisposeInstance):das2007-06-232-38/+19
| | | | | | | | use XDestroyImage instead of XFree to destroy XImage; replace runtime endianness determination by compile-time check for WORDS_BIGENDIAN. * xlib/ximage.c (XCreateBitmapFromData): use XCreateImage and XDestroyImage instead of creating XImage structure manually.
* * library/ttk/ttk.tcl: should require Tk before pseudo-providinghobbs2007-06-212-2/+7
| | | | tile 0.8.0.
* Added -width and -height options.jenglish2007-06-104-25/+149
| | | | | | | Added 'panes' method, return list of managed windows. 'sashpos' method is now documented as part of the public interface, and details clarified. Should be easier to set initial sash positions now [Alleviates #1659067].
* * win/tkWinWm.c (WmIconphotoCmd): fix wm iconphoto RGBA issues.hobbs2007-06-102-5/+18
| | | | [Bug 1467997] (janssen)
* * win/tkWinMenu.c (TkWinHandleMenuEvent): improve handling tohobbs2007-06-092-16/+21
| | | | | allow for unicode char menu indices and not use CharUpper on Tcl utf strings. [Bug #1734223]
* Ttk_Manager API overhaul:jenglish2007-06-0910-350/+460
| | | | | | | | | | | + Ttk_Manager no longer responsible for managing slave records + Ttk_Manager structure now opaque + Ttk_Slave structure now private + Pass Ttk_Manager * to Tk_GeomMgr hooks instead of Ttk_Slave * ttk::labelframe: Simplified -labelwidget management. ttk::noteboook 'insert' command didn't correctly maintain current tab. Changed documentation of ttk::panedwindow 'identify' command to match implementation.
* * macosx/tkMacOSXColor.c: fix issues with TK_{IF,ELSE,ENDIF} macros;das2007-06-0917-385/+419
| | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXDraw.c: implement Jaguar equivalent of unavailable * macosx/tkMacOSXEntry.c: kHIToolboxVersion global; panic at startup * macosx/tkMacOSXEvent.c: if MAC_OS_X_VERSION_MIN_REQUIRED constraint * macosx/tkMacOSXInit.c: is not satisfied. * macosx/tkMacOSXInt.h: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXDraw.c (XCopyArea, XCopyPlane, TkPutImage) (TkMacOSXSetupDrawingContext): factor out common code and standardize setup/restore of port, context and clipping; formatting cleanup. * macosx/tkMacOSXWindowEvent.c: add error checking. * macosx/tkMacOSXMenu.c: fix gcc3 warning. * macosx/tkMacOSXScrlbr.c: fix testsuite crash. * macosx/tkMacOSXSubwindows.c: formatting cleanup. * macosx/tkMacOSXRegion.c: fix typos. * macosx/tkMacOSXScale.c: * macosx/tkMacOSXXStubs.c (Tk_GetUserInactiveTime): remove superfluous CFRetain/CFRelease. * macosx/Wish-Release.xcconfig: disable tktest release build stripping. * macosx/Wish.xcodeproj/project.pbxproj: add new Tclsh-Info.plist.in.
* * macosx/tkMacOSXInt.h: use native debug message API when available.das2007-06-063-4/+23
| | | | * macosx/Wish-Debug.xcconfig:
* * macosx/tkMacOSXMouseEvent.c (GenerateMouseWheelEvent): enabledas2007-06-0612-264/+254
| | | | | | | | | | | | | | | | | | | | | processing of mousewheel events in background windows. * macosx/tkMacOSXScrlbr.c: modernize checks for active/front window. * macosx/tkMacOSXScale.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXColor.c: factor out verbose #ifdef checks of * macosx/tkMacOSXDraw.c: MAC_OS_X_VERSION_{MAX_ALLOWED,MIN_REQUIRED} * macosx/tkMacOSXEntry.c: and runtime checks of kHIToolboxVersion into * macosx/tkMacOSXEvent.c: new TK_{IF,ELSE,ENDIF}_MAC_OS_X macros. * macosx/tkMacOSXInit.c: * macosx/tkMacOSXInt.h: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXDraw.c: factor out clip clearing in QD ports; * macosx/tkMacOSXEntry.c: formatting cleanup. * macosx/Wish.xcodeproj/project.pbxproj: add settings for Fix&Continue.
* * unix/configure.in (Darwin): link the Tk and Wish plists into theirdas2007-06-063-41/+50
| | | | | | | binaries in all cases; fix 64bit arch removal in fat 32&64bit builds. * unix/tcl.m4 (Darwin): fix CF checks in fat 32&64bit builds. * unix/configure: autoconf-2.59
* Fix [Bug 1731348]dkf2007-06-052-4/+10
|
* * macosx/tkMacOSXInit.c: comment formatting fix for Xcode 3.0.das2007-06-042-3/+4
|
* * macosx/tkMacOSXDraw.c: comment formatting fix for Xcode 3.0.das2007-06-0315-53/+103
| | | | | | | | | | | | | | * macosx/tkMacOSXEmbed.c: * macosx/tkMacOSXEntry.c: * macosx/tkMacOSXFont.c: * macosx/tkMacOSXKeyEvent.c: * macosx/tkMacOSXKeyboard.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXSend.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXXStubs.c:
* * unix/Makefile.in: add datarootdir to silence autoconf-2.6x warning.das2007-06-031-1/+2
|
* typodas2007-06-021-1/+1
|
* * macosx/tkMacOSXMenu.c (TkpPostMenu): ensure cascade menus display indas2007-06-022-2/+9
| | | | | posted menus that are not part of the menubar or attached to a menubutton (fixes bug reported on tcl-mac by Linux Nyberg).
* typo fixesdkf2007-06-011-67/+66
|
* * macosx/tkMacOSXWindowEvent.c (GenerateUpdateEvent): complete alldas2007-05-318-293/+237
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | pending idle-time redraws before newly posted Expose events are processed; add bounds of redrawn windows to update region to ensure all child windows overdrawn by parents are redrawn. * macosx/tkMacOSXWindowEvent.c: centralize clip and window invalidation * macosx/tkMacOSXSubwindows.c: after location/size changes in the * macosx/tkMacOSXWm.c: BoundsChanged carbon event handler; correct/add window invalidation after window attribute changes. * macosx/tkMacOSXSubwindows.c (XResizeWindow, XMoveResizeWindow, XMoveWindow): factor out common code dealing with embedded and non-toplevel windows; remove unnecessary clip and window invalidation. * macosx/tkMacOSXButton.c (TkpDisplayButton): move clip setup closer to native button drawing calls. * macosx/tkMacOSXWm.c (TkMacOSXIsWindowZoomed, TkMacOSXZoomToplevel): correct handle gridded windows in max size calculations. * macosx/tkMacOSXEvent.c (TkMacOSXFlushWindows): use HIWindowFlush API when available. * macosx/tkMacOSXColor.c: cleanup whitespace and formatting. * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c:
* * generic/tkFont.c: #ifdef out debug msg printing to stderr.das2007-05-312-3/+9
| | | | * generic/tkTextDisp.c:
* * generic/tk.h: Correct placement of #include <tcl.h> [Bug 1723812].dgp2007-05-302-8/+10
|
* replace previous inoperative commit with direct setting of ↵das2007-05-301-2/+9
| | | | highlightbackground on all buttons
* * macosx/tkMacOSXMenu.c (DrawMenuSeparator): use DrawingContext API.das2007-05-3013-320/+320
| | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXWindowEvent.c (ClearPort): clip to updateRgn. * macosx/tkMacOSXDebug.c: factor out debug region flashing. * macosx/tkMacOSXDebug.h: * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXEvent.c: cleanup whitespace and formatting. * macosx/tkMacOSXFont.c: * macosx/tkMacOSXRegion.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXXStubs.c: * xlib/xgc.c: * macosx/Wish.xcodeproj/project.pbxproj: delete references to removed * macosx/Wish.xcodeproj/default.pbxuser: ttk files.
* * library/bgerror.tcl: standardize dialog option & button sizedas2007-05-304-12/+31
| | | | | | | * library/dialog.tcl: modifications done when running on on Aqua. * library/msgbox.tcl: * library/demos/button.tcl: set button highlightbackground on Aqua.
* removed skipping of unixfont-5.11 [Bug 1716141]das2007-05-291-1/+1
|
* * macosx/tkMacOSXFont.c (TkpMeasureCharsInContext): Fix shortcc_benny2007-05-282-54/+56
| | | | | measures with flags=TK_WHOLE_WORDS|TK_AT_LEAST_ONE [Bug 1716141]. Make some casts unnecessary by changing variable types.
* fix TIP #145 breakage on Aquadas2007-05-271-2/+3
|
* deleted references to removed ttk filesdas2007-05-272-19/+1
|
* Removed ttk::dialog and dependencies.jenglish2007-05-257-680/+11
|
* library/demos/ttk_*.tcl: removed Tile demos, not appropriate for core.jenglish2007-05-253-1110/+0
|
* Removed tk/tests/ttk/misc.test -- ttk::dialog tests, not appropriate for core.jenglish2007-05-251-33/+0
|
* Minor typo corrections, from [Bug 1663527]dkf2007-05-252-4/+4
|
* Fixed documentation of default -joinstyle option values for line and polygon ↵dkf2007-05-252-44/+47
| | | | items. [Bug 1725782]
* Fix comments. (Thanks to Emiliano for spotting)dkf2007-05-241-3/+3
|
* EntrySetValue: Ensure that widget is in a consistent state before settingjenglish2007-05-183-5/+41
| | | | | the linked -textvariable. Previously, it was possible for [$e index insert] to point past the end of the string, leading to heap corruption [Bug 1721532].
* * unix/configure: autoconf-2.59 (FC6 fork)dgp2007-05-189-40/+60
| | | | | | | | | | | * win/configure: * README: Bump version number to 8.5a7 * generic/tk.h: * library/tk.tcl: * unix/configure.in: * unix/tk.spec: * win/configure.in:
* * tests/ttk/treetags.test: Another bit of test suitedgp2007-05-182-1/+7
| | | | SCIM-tolerance. [Bug 1609316]
* sync with core-8-4-branch tk/changesdas2007-05-161-3/+5
|
* * generic/tk.decls: workaround 'make checkstubs' failures fromdas2007-05-163-10/+38
| | | | | | | tkStubLib.c MODULE_SCOPE revert. [Bug 1716117] * macosx/Wish.xcodeproj/project.pbxproj: add tkOldTest.c and remove tkStubImg.c.
* Change Tk_InitStubs(), tkStubsPtr, and the auxilliary stubs table pointersjenglish2007-05-162-16/+10
| | | | | | back to public visibility. See [Bug 1716117] for details. Removed TCL_STORAGE_CLASS monkey business, as it had no effect.
* * library/choosedir.tcl: Removed uses of obsolete {expand}dgp2007-05-166-20/+26
| | | | | | | * library/comdlg.tcl: syntax; replaced with the now * library/tk.tcl: approved {*}. [Bug 1710633] * tests/canvImg.test: * tests/imgPhoto.test: