summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * unix/tkUnixScale.c (DisplayHorizontalValue): Backport fix forpatthoyts2004-10-282-2/+11
| | | | | | #220927 by Michael Schlenker to keep the labels within the window. FossilOrigin-Name: 89c638a7a962e269b03a6cf2fd9eec3ec024147d
* More backporting of doc fixesdkf2004-10-2816-147/+310
| | | FossilOrigin-Name: f449787fb16a3a32463679ccd2c2f9451f5275e4
* Backport of documentation fixesdkf2004-10-2830-284/+600
| | | FossilOrigin-Name: 2c695c7927060a39a4165a3edc998914ebfa1b80
* backport compiler warning silencersdgp2004-10-271-5/+5
| | | FossilOrigin-Name: 91f6a20a242fdca33257e3710a6bf2116f3d0eae
* * library/xmfbox.tcl (MotifFDialog_BuildUI): Fix [Bug 987169] indgp2004-10-272-2/+10
| | | | | | the Motif file dialogs as well. Backport of DKF bug fix. FossilOrigin-Name: c007d9275825899c64662629b07ab18f630b3a31
* no messagedavygrvy2004-10-271-0/+22
| | | FossilOrigin-Name: 6a366f3d56ec7e0e4e85f8ddb19781c5e1f7f41b
* * generic/tkInt.h: Backport of shutdown safety mods from the HEADdavygrvy2004-10-2710-35/+215
| | | | | | | | | | | | | | * 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: FossilOrigin-Name: 9eb5a917089fb12e1052c4ac69deda9c2a92eee5
* * win/makefile.vc: Backport to the most recentdavygrvy2004-10-273-32/+191
| | | | | | | * win/rules.vc: changes on the HEAD. * win/nmakehlp.c: FossilOrigin-Name: e79198cc2fb38268ca4dc33eeadec7a86762cb9c
* * 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. FossilOrigin-Name: 4b405fac59ad1067fef47d18880bf9b5e3377cbb
* * tests/safe.test (safe-1.3): Made test less sensitve to thedgp2004-10-263-4/+20
| | | | | | | | | | | full set of existing aliases in an interp, so the it only tests whether the tested ones are present. * unix/Makefile.in: Copied LD_LIBRARY_PATH machinery from `make shell` target to other similar targets so that just built libraries are tested, rather than previous installations. FossilOrigin-Name: fa2305f85c0453bebb3e335ccad72723d0c1e72e
* * generic/tkEvent.c (Tk_HandleEvent): Call XSetICFocus wheneverrmax2004-10-262-1/+18
| | | | | | | the window receives focus. This fixes bug #905830 but avoids #1000051. FossilOrigin-Name: 69217bd0f40b771c697ee34cf62703c4381e0b64
* Correlate fix with bug numberdkf2004-10-261-2/+2
| | | FossilOrigin-Name: 48b085f466120a36f873b167d1048d31f1795da1
* * win/tkWinWm.c (UpdateWrapper): pass SWP_NOOWNERZORDER tohobbs2004-10-212-2/+9
| | | | | | | SetWindowPos when maintaining win Z order, to prevent parent from flashing (adjusting Z order). FossilOrigin-Name: e0aa8313f839634e730aeaa1c29447587dcda6fb
* Backport of 8.5 wm iconphoto that added support for Tk photohobbs2004-10-058-19/+454
| | | | | | | | | | * 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] FossilOrigin-Name: 5b4eed7504f9bd5f37587cecc603fd19bba57c39
* * generic/tkCursor.c: Add missing initialization in debug routine.dgp2004-09-242-1/+8
| | | FossilOrigin-Name: 6ad139a95287b9694dc8e81904e2400ab873d649
* * win/tkWinInt.h (TkWinDisplayChanged): added declhobbs2004-09-234-70/+228
| | | | | | | | | | * win/tkWinX.c (TkWinDisplayChanged, TkpOpenDisplay): Correctly * win/tkWinWm.c (InvalidateSubTreeDepth, WmProc): handle color and screen resolution changes. Tested for 16/24/32 bpp changes on XP. May need more fixes for 8bpp switch, use of special colormaps, or other special palette handling cases. [Bug 223689] FossilOrigin-Name: f63b0d0bbbbc410a7fbca3ce0c19a7b54422a6de
* * generic/tkInt.decls: Add decl for TkWinGetPlatformTheme.mdejong2004-09-237-54/+278
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. FossilOrigin-Name: e42dad6e91ffbd59e77f8378f5dd48f2fade4b1e
* * win/tkWinWm.c: Rework WS_EX_LAYERED and LWA_ALPHAmdejong2004-09-232-3/+10
| | | | | | defines so that compiling with mingw works again. FossilOrigin-Name: 5e334d0f00ef76a0f9a2150f2e2d72f2beaf93c3
* * win/tkWinWm.c (UpdateWrapper, WmAttributesCmd): handle attributehobbs2004-09-212-41/+47
| | | | | | | settings prior to window mapping and resort to more forceful wrapper update again for -toolwindow (to remove it from taskbar). FossilOrigin-Name: 6a4ccd9383a78cc2f89a191eae31f1f6b3c69240
* missed wm attr testhobbs2004-09-191-2/+2
| | | FossilOrigin-Name: ea885633871bd8d5307ae24d99f5e61c53cc71c0
* (UpdateWrapper): don't adjust Z order of TOPMOST window.hobbs2004-09-182-12/+31
| | | | | | | (WmAttributesCmd): don't call UpdateWrapper for -disabled or -toolwindow attr changes. FossilOrigin-Name: fb660b7330ab2d73e6098956d49e6dd3e7f6f41d
* * win/tkWinWm.c (WmAttributesCmd): correct -alpha 0.0/1.0 settinghobbs2004-09-182-19/+19
| | | | | | and round the value. FossilOrigin-Name: f429b1d43f4c44aa55a388f28a2cbb4920367c72
* * macosx/README: typosdas2004-09-183-11/+18
| | | | | | | * macosx/tkMacOSXDraw.c (TkMacOSXSetUpCGContext): performance improvements: removed slow & unnecessary calls. FossilOrigin-Name: 95f575756e4c780da7deeb955a0061d39c375f3d
* patch 892194 TIP#222 changeshobbs2004-09-171-6/+49
| | | FossilOrigin-Name: c76ad127c9ea18aaa346d55f7db04b5a8a2b714a
* * tests/winWm.test: Add 'wm attributes -alpha' to control toplevelhobbs2004-09-173-21/+162
| | | | | | | * win/tkWinInt.h: alpha transparency on Win2K/XP+. * win/tkWinWm.c: TIP #222 [Patch 892194] FossilOrigin-Name: 9ebe03d6a837b6b7e6aeef846d34dc50372945ba
* * win/tkWinWm.c (UpdateWrapper): Ensure that we maintain Z orderhobbs2004-09-173-16/+66
| | | | | | | | | * tests/winWm.test: and focus of preexisting window when replacing the wrapper window. * win/tkWinWm.c (WmIconwindowCmd): Replace bogus call to XWithdrawWindow with proper code. (mdejong) FossilOrigin-Name: e10081e3cf3f61195bf7fe54fa4b2118543dda2a
* * generic/tkMenu.c (MenuWorldChanged): ensure that we recomputehobbs2004-09-162-7/+13
| | | | | | | the menu geometry on WorldChanged to handle font size changes. [Bug 607649] FossilOrigin-Name: 8a1d648df684a1508df02bbe9002d09a23b61b27
* Fixed a memory leak when a placed widget was forgotten. [Bug 1028888]pspjuth2004-09-163-10/+92
| | | FossilOrigin-Name: 419a463e2341fcdc77a799e3a791367bf4567351
* * win/tkWinWm.c (ReadIconFromFile): fix mem alloc to get the righthobbs2004-09-132-15/+15
| | | | | | size for both icons ('?:' order of precedence mistake). FossilOrigin-Name: 4a5135c955d612d58a35315ad1e2a15d36626c26
* More state resetting on dialog start. [Bug 845189]dkf2004-09-102-1/+6
| | | FossilOrigin-Name: 612839c91aa64430e167fbce2fe3a1a180311e2e
* (UpdateWrapper): update to Kovalenko to account for whether thehobbs2004-09-102-14/+20
| | | | | | | | override window has a transient parent, and apply WS_POPUP in the correct case. The makes splash screens pop up as well as making dropdowns not grab focus away from the parent. FossilOrigin-Name: 82c2d4f0231ad4ee5f4dae7a9a96732be08d538d
* Stop tk_strictMotif poisoning of the widget demo [Bug 1013942]dkf2004-09-102-1/+10
| | | FossilOrigin-Name: ba7607eeaa004c8843afdcee28e6a4ac15393f99
* * win/tkWinWm.c (ActivateWindow): SetFocus to grab window whenhobbs2004-09-102-4/+14
| | | | | | clicking outside the grab window hierarchy. [Bug 220908] FossilOrigin-Name: 8662e4a38c396caf34532453e22bc619e35ee9bf
* * win/tkWinWm.c: backport of several items from 8.5 head:hobbs2004-09-102-64/+167
| | | | | | | | | | | | | | | | (ReadIconFromFile): when using SHGetFileInfo to retrieve icon, get regular icon as well for correct Alt-Tab icon. (hobbs) Fix for #742882 "Potential division by zero in gridded wm geometry" (jenglish) (UpdateWrapper): Let overrideredirect'ed window's wrapper be the child of desktop window, thus making it to behave more similarly to X11 Override Redirect. Esp. useful for combobox-like megawidgets. (kovalenko) (InstallColormaps): Check for TK_ALREADY_DEAD to avoid handling of dead windows. (kovalenko) Change 'panic' to 'Tcl_Panic' (davygrvy) FossilOrigin-Name: 5da91afc5e6d1ea3b9eff75f88303655e0508f61
* * library/tkfbox.tcl (::tk::dialog::file::Create): use labelhobbs2004-09-062-15/+9
| | | | | | | instead of button for "File of type", as it properly handles -state disabled now. FossilOrigin-Name: e3defcc023d5f90d3a17e45274f7a2661cf80e3b
* * library/text.tcl (::tk::TextTranspose): Ensure that Transpose ishobbs2004-08-262-11/+26
| | | | | | an atomic op to undo. Replace 'string compare' with 'ne'. FossilOrigin-Name: d6e815255b8af8ba2bf3b2a01b85b0373304a142
* * win/tkWinDialog.c (EatSpuriousMessageBugFix): Fix a problem withhobbs2004-08-202-2/+54
| | | | | | | double clicks in file dialogs falling through to the window underneath in win32. [Patch #611615] FossilOrigin-Name: 3c150a73eea0accf24a9308141420a5794a0ec3e
* * win/tkWinDialog.c (Tk_MessageBoxObjCmd): Inherit the icon fromhobbs2004-08-204-15/+146
| | | | | | | * win/tkWinInt.h: the -parent window for * win/tkWinWm.c (TkWinGetIcon): the MessageBox. FossilOrigin-Name: 79fdb01afac0e06ac8e6df10422eddbfa6d547b9
* Add missing GEOMETRY flag to -handlepad option. [Bug 1010938]dkf2004-08-182-2/+7
| | | FossilOrigin-Name: 221d92d19df38bb44ad1536143860594fc8b82f5
* Fix for #1006686 "wm resizable command not working on Solaris/CDE"jenglish2004-08-102-1/+8
| | | | | | (patch from Colin McDonald). FossilOrigin-Name: f6dc2bfa94526c824ddb150e0970bf358f81e50b
* * tests/canvText.test:mdejong2004-08-093-3/+68
| | | | | | | | | | | * win/tkWinFont.c (Tk_MeasureChars): Fix for text wrapping problem that appeared using canvas text under Win32. A long wrapping string that had leading spaces was being incorrectly wrapped. This change makes the Win32 implementation behave the same as the Unix implementation. [Patch 100628 FossilOrigin-Name: 7e61c798b1cf7128587e88862a4a464fb93ce0b0
* Backport of yesterday's compositing fixesdkf2004-08-052-68/+119
| | | FossilOrigin-Name: 8812816e8874d7a75a951d2addc910954717b7b2
* * unix/configure:das2004-07-303-4/+10
| | | | | | | * unix/tcl.m4 (SC_CONFIG_CFLAGS): Darwin: instead of setting PLAT_OBJS to explict object files in tcl.m4, refer to MAC_OSX_OBJS makefile var. FossilOrigin-Name: 02f5e72a5fbf19242e4045dd22506c9c17ce9490
* date typocore-8-4-7dgp2004-07-291-1/+1
| | | FossilOrigin-Name: 8b2787f32e09e1fa6e17ca241f8f3695813d3e75
* Re-tag for core-8-4-7dgp2004-07-291-2/+2
| | | FossilOrigin-Name: 0a2db1ec092320e39784f9b7cf4f08b00d580590
* * changes:dgp2004-07-293-15/+9
| | | | | | | | * 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. FossilOrigin-Name: 5a82fae90cdd6e6fef56650ac74c731e0dab565d
* * generic/tkImgGIF.c (FileReadGIF): fix crash reported by Reinhard Max:das2004-07-272-4/+9
| | | | | | | in case of premature end of image data, return error instead of passing nil buffer to Tk_PhotoPutBlock(). FossilOrigin-Name: b4fb499b89f508459d9d3d7324463dff43c323a7
* * generic/tkRectOval.c (ComputeRectOvalBbox): Mac OS X specificdas2004-07-273-4/+21
| | | | | | | | | | | 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. FossilOrigin-Name: 55976a2255f278f4b6495f08683282cbcd281635
* Fix the doco's for the anti-aliasing limit variable to be more helpfulwolfsuit2004-07-271-3/+3
| | | FossilOrigin-Name: 4acf6d3fe75260962ed3fbca0c9c471938d0e334
* typohobbs2004-07-261-2/+2
| | | FossilOrigin-Name: bce94efb55c436bdf0e3f79bd1792e109731ba34