summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Fix [Bug 1252702]dkf2005-08-1111-72/+69
|
* * macosx/tkMacOSXCarbonEvents.c (new): moved carbon events code intodas2005-08-092-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXHLEvents.c: new file like on HEAD, * macosx/tkMacOSXInit.c (TkpInit): initialize carbon event handlers * macosx/tkMacOSXInt.h: in TkpInit(), add new source * unix/Makefile.in: file to Makefile.in. * macosx/tkMacOSXCarbonEvents.c (AppEventHandlerProc): handle carbon events sent directly to application event target via the general TkMacOSXProcessEvent() in the same way as events posted to the event loop. Moved existing app event handlers to tkMacOSXWindowEvent.c. (TkMacOSXInitCarbonEvents): register our application event handler for kEventWindowExpanded events to deal with uncollapsing from the dock. * macosx/tkMacOSXEvent.h: made TkMacOSXProcessEvent() non-static, added * macosx/tkMacOSXEvent.c: new interp field to TkMacOSXEvent struct for use by app event handler. * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): retrieve current window, partCode, modifiers and local cursor position from carbon mouse event if possible. Use new static GenerateButtonEvent() taking a MouseEventData struct instead of TkGenerateButtonEvent() to avoid recomputing already known values. Move process activation on MouseDown into BringWindowForward() to allow clicking on window titlebar widgets without activating process. Move code dealing with clicks in window titelbar into separate function HandleWindowTitlebarMouseDown() to avoid code duplication. Avoid repeated calls to TkMacOSXGetXWindow() by storing result in MouseEventData struct. (TkMacOSXButtonKeyState, XQueryPointer): try to get button and modifier state from currently processed carbon event (to avoid unnecessary IPC with the window server), otherwise use modern carbon API to get this info instead of Button() and GetKeys(); only retrieve info caller asks for (via non-NULL ptr passed to XQueryPointer). (ButtonModifiers2State): new static function converting carbon button and modifier state into tk state, allows detection of more than 3 mouse buttons (tk supports up to 5) and of NumLock and Fn modifier keys (NumLock is mapped to Mod3 and Fn to Mod4). * macosx/tkMacOSXWindowEvent.c (TkMacOSXProcessApplicationEvent): handle kEventWindowExpanded event to deal with window uncollapsing from the dock by generating tk Map event, handle kEventAppHidden and kEventAppShown events (moved here from tkMacOSXCarbonEvents.c). * macosx/tkMacOSXSubwindows.c (XUnmapWindow): only hide window when it is not iconified to avoid window flashing on collapse. * macosx/tkMacOSXWm.c: replaced Tk_DoWhenIdle() by Tcl_DoWhenIdle(). (TkMacOSXZoomToplevel): remove call to TrackBox(), now done in HandleWindowTitlebarMouseDown() in tkMacOSXMouseEvent.c. (TkpWmSetState): avoid window flashing on collapse by unmapping after calling CollapseWindow(); only uncollapse window if it is collapsed. * generic/tkInt.decls: changed TkMacOSXZoomToplevel() signature. * generic/tkIntPlatDecls.h: * macosx/tkMacOSXKeyEvent.c (TkMacOSXProcessKeyboardEvent): only call GetMenuItemCommandID() on KeyDown or KeyRepeat events. * macosx/tkMacOSXMenu.c (ReconfigureMacintoshMenu): remove call to obsolete AppendResMenu() API. * macosx/tkMacOSXKeyEvent.c: replaced all direct uses of expensive * macosx/tkMacOSXMenu.c: GetMouse() and TkMacOSXButtonKeyState() * macosx/tkMacOSXMenus.c: APIs by calls to XQueryPointer() * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXScale.c: * macosx/tkMacOSXScrlbr.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXDialog.c: replaced use of FrontNonFloatingWindow() * macosx/tkMacOSXKeyEvent.c: by ActiveNonFloatingWindow() as * macosx/tkMacOSXMenu.c: recommended by Carbon docs. * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXDialog.c: fixed warnings * macosx/tkMacOSXTest.c: * macosx/tkMacOSXCarbonEvents.c: added CVS Id line to file header. * macosx/tkMacOSXDebug.c: * macosx/tkMacOSXDebug.h: * macosx/tkMacOSXEntry.c: * macosx/tkMacOSXEvent.h: * macosx/tkMacOSXKeyEvent.c: * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXWm.h: * macosx/tkMacOSXEmbed.c: replaced all uses of panic() with Tcl_Panic() * macosx/tkMacOSXFont.c: (sync with HEAD). * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXXStubs.c: * macosx/tkMacOSXInt.h: sync with HEAD changes of 2005-03-14. * macosx/tkMacOSXSubwindows.c: * macosx/tclets.r (removed): sync with HEAD. * macosx/tkMacOSXScale.c: * macosx/tkMacOSXPort.h: * library/demos/menu.tcl: removed errant '}'.
* * generic/tkFrame.c (DisplayFrame):hobbs2005-07-284-11/+43
| | | | | | | | | | | * generic/tkInt.decls: add TkpDrawFrame to allow for * generic/tkIntDecls.h: platform-specific drawing into the frame/ * generic/tkStubInit.c: toplevel area. Currently only differs on * generic/tkFrame.c: OS X (Aqua), which will draw a themed bg * win/tkWinDraw.c: if tk::mac::useThemedToplevel == 1. * unix/tkUnixDraw.c: Normal frames left alone until we can * mac/tkMacDraw.c: better factor out frame drawing to be * macosx/tkMacDraw.c: widget-specific.
* * generic/tkInt.h: Swap TkUnsupported1Cmd for TkUnsupported1ObjCmd.hobbs2005-07-282-6/+7
| | | | | | | | | | | | * generic/tkWindow.c: Ditto. (neil madden) * macosx/tkMacOSXInt.h: Added TkMacOSXWindowClass decl * macosx/tkMacOSXWm.c (TkMacOSXWinStyle) New function. (TkUnsupported1ObjCmd): New function, replaces the un-objectified version of the command, recognizes more classes and attributes. (TkMacOSXWindowClass): private function to return OS X class of a Tk window. * macosx/tkMacOSXSubwindows.c (XMapWindow, XUnmapWindow): recognize special show/hide functions for sheets
* * generic/tkConsole.c: backport fix for bug 756840 & sync whitespacedas2005-06-231-8/+26
| | | | | | changes from HEAD. * generic/tkConsole.c (TkConsolePrint): prevent potential NULL deref.
* typodgp2005-06-211-2/+2
|
* Plug a buffer overflow in the GIF readerdkf2005-06-201-22/+33
|
* * README: Bump version number to 8.4.11dgp2005-06-181-3/+3
| | | | | | | | | | | | * generic/tk.h: * macosx/Wish.pbproj/project.pbxproc: * unix/configure.in: * win/configure.in: * unix/configure.in: Updated LOCALES to cover all msgs catalogs. * unix/configure: autoconf * win/configure:
* Backport fix for [Bug 1114977]; canvas tag searches now work with threads.dkf2005-06-031-81/+146
|
* Backported [console] rename fix. [Bug 1016385]dkf2005-06-031-42/+38
|
* * generic/tkPanedWindow.c, tests/panedwindow.test: batch of fixeshobbs2005-05-311-208/+347
| | | | | | | to panedwindow from Daniel South. Improved auto-size to fit internal windows, fixed sash placement at edge of pane, fixed calculation of stretch amount for internal windows. [Bug 1124198 1161543 1054117 1010941 795869 690169 1192323]
* * generic/tkMenu.c (MenuCmd): create event handler earlier tohobbs2005-05-311-37/+15
| | | | | ensure proper destruction of menu through DestroyNotify. [Bug 1159367]
* * README: Bumped patchlevel to 8.4.10hobbs2005-05-271-3/+3
| | | | | | | * generic/tk.h: * macosx/Wish.pbproj/project.pbxproj: * unix/configure, unix/configure.in, unix/tk.spec: * win/configure, win/configure.in:
* * generic/tkTest.c: disable commands not available on TkAqua.das2005-05-241-4/+4
|
* Add native drawing for Entry and Spinbox widgets.wolfsuit2005-03-252-348/+464
|
* * generic/tkCanvBmap.c (ConfigureBitmap, ComputeBitmapBbox): Fixedhobbs2005-02-111-49/+59
| | | | | | possible crash with disabled bmap and bbox handling [Bug 1119460] (BitmapToPostscript): made aware of various bitmap types (DisplayBitmap): remove unused fg/bgColor refs
* D'oh!dkf2005-01-111-2/+2
|
* Improved version of Michael Kirkham's fix for parsing pad values. [1098779]dkf2005-01-114-92/+115
|
* Add missing Tcl_ResetResult [697915]dkf2005-01-071-1/+2
|
* Speed up use of Tk_PhotoPutBlock by allowing it to skip the complex-alpha checkdkf2004-12-091-3/+7
| | | | in degenerate (and common) cases. [Bug 1081966]
* Alpha blending fixes. [Patch 848161]dkf2004-12-031-20/+32
|
* * unix/tkUnixButton.c (TkpDisplayButton): constrain coords tohobbs2004-12-021-1/+10
| | | | | | Tk_RedrawImage to display only portion that is valid. * generic/tkImgPhoto.c (ImgPhotoDisplay): add X error suppression around XGetImage to prevent app abort. [Bug 979239]
* bumped patchlevel to 8.4.9hobbs2004-11-251-3/+3
|
* * generic/tkCanvWind.c (ConfigureWinItem): unmap windowshobbs2004-11-171-3/+15
| | | | immediately when state hidden is requested. [Bug 982248]
* * generic/tkCanvImg.c (ImageToPostscript): don't try ps generationhobbs2004-11-171-7/+9
| | | | of canvas image item without image specified. [Bug 1032300]
* * generic/tkPanedWindow.c (Tk_PanedWindowObjCmd): set save_under Xhobbs2004-11-171-1/+6
| | | | attr to prevent expose events when moving sash. [Bug 1036963]
* * generic/tkCmds.c (Tk_TkObjCmd): use correct screen data whenhobbs2004-11-121-6/+4
| | | | -displayof arg is passed to [tk scaling]. [Bug 800178]
* * 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.
* * README: Bumped to patch level 8.4.8dgp2004-10-281-3/+3
| | | | | | | | | | | * generic/tk.h: to prepare for next patch * macosx/Wish.pbproj/project.pbxproj: release. * unix/configure.in: * unix/tk.spec: * win/configure.in: * unix/configure: autoconf (2.13) * win/configure:
* * generic/tkInt.h: Backport of shutdown safety mods from the HEADdavygrvy2004-10-274-10/+160
| | | | | | | | | | | | * generic/tkMenu.c: dating from 2003-12-21 * generic/tkUtil.c: * generic/tkWindow.c: * mac/tkMacButton.c: * unix/tkUnixEvent.c: * win/tkWin32Dll.c: * win/tkWinEmbed.c: * win/tkWinMenu.c: * win/tkWinX.c:
* * generic/tkInt.decls: Signature for tkWinXCleanup needed to bedavygrvy2004-10-272-5/+5
| | | | | * generic/tkIntPlatDecls.h: changed so it matches the Tcl_ExitProc typedef to avoid a bad-style cast.
* * generic/tkEvent.c (Tk_HandleEvent): Call XSetICFocus wheneverrmax2004-10-261-1/+12
| | | | | the window receives focus. This fixes bug #905830 but avoids #1000051.
* Backport of 8.5 wm iconphoto that added support for Tk photohobbs2004-10-051-1/+4
| | | | | | | | * generic/tkInt.h (TkDisplay): images as titlebar icons. TIP #159 * win/tkWinWm.c (WmIconphotoCmd): wm iconphoto ?-default? image1 ... * macosx/tkMacOSXWm.c (WmIconphotoCmd): Implemented for Win/Unix, * unix/tkUnixWm.c (WmIconphotoCmd): stubbed out for OS X. * tests/wm.test, tests/unixWm.test, tests/winWm.test: [Bug 815751]
* * generic/tkCursor.c: Add missing initialization in debug routine.dgp2004-09-241-1/+4
|
* * generic/tkInt.decls: Add decl for TkWinGetPlatformTheme.mdejong2004-09-233-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is only defined under Win32. * generic/tkIntPlatDecls.h: Regen. * generic/tkStubInit.c: Regen. * win/tkWinInt.h: Define TK_THEME_WIN_CLASSIC and TK_THEME_WIN_XP. * win/tkWinMenu.c (DrawMenuEntryAccelerator, DrawMenuEntryLabel): Draw a disabled 3D text highlight for the accelerator only with the Win95/98 look. Same goes for the menu entry text. * win/tkWinX.c (TkWinGetPlatformId, TkWinGetPlatformTheme): Automatically detect the Windows theme in use and return either TK_THEME_WIN_CLASSIC or TK_THEME_WIN_XP when the TkWinGetPlatformTheme function is invoked. [Patch 866194] * win/tkWinMenu.c: only provide a submenu handle when the MF_POPUP flag is given, fixing a recently-introduced crash when submenus are disabled. Also better error checking for this sort of situation in the future. * win/tkWinMenu.c (ReconfigureWindowsMenu): Fix drawing of a disabled (TkWinHandleMenuEvent, DrawMenuEntryArrow): cascade menu arrow. Tk was displaying a disabled cascade menu arrow in black instead of gray. This was caused by a bug in the Win32 code for user drawn menu items. The fix is to avoid telling Windows that the menu item is a cascade type and then draw the gray arrow bitmap on our own. [Patch 865842] * win/tkWinMenu.c (DrawWindowsSystemBitmap): Fix a strange Win32 bug where the logical coordinates returned by a call to DPtoLP are wrong the first time a menu is posted. This bug manifested itself by drawing the bitmap in the wrong place in a menu. The fix was to pass the newly created DC instead of the DC from the window. * win/tkWinMenu.c (DrawMenuEntryAccelerator): (DrawMenuEntryLabel): When drawing the label text and accelerator text for a disabled menu entry be sure to draw a 3D highlight. The only exception to this is when a disabled menu entry is highlighted, in that case do not draw a 3D hightlight. * win/tkWinMenu.c (DrawMenuEntryAccelerator, DrawMenuEntryArrow): Move the unused menu arrow drawing code in DrawMenuEntryAccelerator into a new function named DrawMenuEntryArrow. This makes no functional change but it will make it easier to fix things in the future.
* * generic/tkMenu.c (MenuWorldChanged): ensure that we recomputehobbs2004-09-161-7/+7
| | | | | the menu geometry on WorldChanged to handle font size changes. [Bug 607649]
* Fixed a memory leak when a placed widget was forgotten. [Bug 1028888]pspjuth2004-09-161-9/+41
|
* Add missing GEOMETRY flag to -handlepad option. [Bug 1010938]dkf2004-08-181-2/+2
|
* Backport of yesterday's compositing fixesdkf2004-08-051-68/+110
|
* * changes:dgp2004-07-291-11/+1
| | | | | | * generic/tkEvent.c (Tk_HandleEvent): revert the 2004-07-20 commit. That commit created a new Bug 1000051 - a broken Compose Key. This revert restores Bug 905830 until a cleaner fix can be provided.
* * generic/tkImgGIF.c (FileReadGIF): fix crash reported by Reinhard Max:das2004-07-271-4/+5
| | | | | in case of premature end of image data, return error instead of passing nil buffer to Tk_PhotoPutBlock().
* * generic/tkRectOval.c (ComputeRectOvalBbox): Mac OS X specificdas2004-07-271-1/+8
| | | | | | | | | fix to rounding in bounding box 'bloat' calculation to avoid drawing outside of bounding box when CG drawing enabled. Fix probably correct on other platforms as well? * macosx/tkMacOSXDraw.c (TkMacOSXInitCGDrawing): fixed LinkVar type for tkMacOSXCGAntiAliasLimit.
* Don't queue events for unmapped children.wolfsuit2004-07-211-1/+5
|
* * generic/tkEvent.c (Tk_HandleEvent): ensure IC focus is set afterhobbs2004-07-211-1/+11
| | | | creation. [Bug #905830]
* * generic/tkUndo.c (TkUndoSetDepth): correct -maxundohobbs2004-07-141-2/+2
| | | | segfault. [Bug #969358] (jiangwu)
* updated to patchlevel 8.4.7hobbs2004-07-141-3/+3
|
* * 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.
* Fix [Bug 979239] by only redrawing an image when it has real area.dkf2004-06-251-1/+10
|
* * generic/tkCanvText.c (DisplayCanvText): Fix textmdejong2004-06-081-7/+16
| | | | | | | | | | | | | | rendering problem with canvas text items that have a selected region. The previous implementation would render the whole line and then redraw the selected text if it was a different color. This caused problems when the selected text foreground differs from the normal text foreground, the anti-aliasing alpha pixels for the two text strings would blend together resulting in strange looking text. The fix is to draw the normal text and the selected text separately. This problem has only been observed under Windows, with anti-aliased text. [Patch 968725]
* silence compiler warningdgp2004-06-081-3/+2
|