| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* unix/mkLinks:
* doc/GetScroll.3: Added information about Tk_GetScrollInfoObj
[Bug: 1866].
|
|
|
|
| |
* doc/Grab.3: Man page for Tk_Grab and Tk_Ungrab [Bug: 1868, 1889]
|
|
|
|
| |
* doc/MainWin.3: Added entry for Tk_GetNumMainWindows [Bug: 1865].
|
|
|
|
|
|
|
|
|
|
|
| |
necessary prolog for photos
* generic/tkCanvPs.c: added Tk_PostscriptPhoto that outputs PS for
photo images
* generic/tkImgPhoto.c: new func ImgPhotoPostscript and added that
in as ps proc in tkPhotoImageType.
* generic/tkStubInit.c:
* generic/tkDecls.h:
* generic/tk.decls: added Tk_PostscriptPhoto
|
|
|
|
| |
* doc/GetHWND.3: Man page for Tk_GetHWND [Bug: 1863].
|
|
|
|
| |
* doc/AddOption.3: Man page for Tk_AddOption [Bug: 1854]
|
|
|
|
| |
(Tk_MacGetOpenFile): Add empty bodies for the
"-initialfile" and "-defaultextension" options.
* mac/tkMacDialog.c (NavServicesGetFile): Only cons the result up into
a list if multiple is true.
* mac/tkMacMenus.c (SourceDialog): Use the "tk_getOpenFile" instead of hand-coding
the dialog with StandardGetFile. This way we get the Navigation dialogs for
free.
* doc/getOpenFile.n: Document the -multiple and -message flags which are only
implemented on the Mac. Also note that the -title works on the Mac with
Nav Services installed.
|
| |
|
|
|
|
|
|
|
|
|
| |
* library/tkfbox.tcl (::tk::dialog::file::Config): removed the
extraneous glob on -initialdir after file isdir already returned 1
and moved cd trick into this case as the else already uses [pwd].
[Bug: 5181]
* win/winMain.c: moved extern call out of WinMain func
|
|
|
|
|
|
| |
outline settings before creating of outline GC; this means that it
is really possible now to have an oval or rectangle with no
outline. [Bug: 5029].
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tk.h:
* unix/configure.in:
* unix/tk.spec:
* win/configure.in: bumped to version 8.3.1
* library/msgbox.tcl (tkMessageBox): changed to use grid in some
places, realign icon to anchor nw.
* mac/tkMacScale.c: reverted tkMacScale.c to 1.5 equivalent (it
was accidentally bumped forward).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ALT_MASK, to fix some event problems [Bugs: 1160, 5088].
* win/tkWinX.c: Changed Mod2Mask in GetState to ALT_MASK, to fix
some event problems [Bugs: 1160, 5088].
* generic/tkInt.h: Moved definition of ALT_MASK and META_MASK here
so that it would be accessible from other modules than tkBind.c.
* generic/tkBind.c: Added code in BindEvent to check for ALT_MASK
and META_MASK in the event state field, as this field may not be
set up with the correct display modifier mask bits if the XEvent
structure was created by [event generate] or by the Windows X
emulation. [Bugs: 1160, 5088].
|
|
|
|
|
|
| |
* win/wish.rc:
* win/wish.ico: Modified copyright dates in Windows resource
files. Updated the icon for wish.exe.
|
|
|
|
|
|
|
|
|
| |
previously, anchor and insert marks were placed in unexpected
locations following a double or triple click. Now they are placed
logically. Also tweaked the extension of selection via
shift-double-clicks so that it no longer selects the contiguous
whitespace on the side of the selection opposite the
double-click. [RFE: 4253].
|
|
|
|
|
|
|
|
|
| |
checkbuttons/radiobuttons in menubars on different platforms --
some systems do not draw indicators for check/radiobuttons in
menubars.
* library/menu.tcl: Corrected behavior of
checkbuttons/commands/radiobuttons in menubars [Bug: 630].
|
| |
|
|
|
|
| |
colors when shifting value. [Bug: 4919]
|
| |
|
|
|
|
|
| |
correctly activate native menus when clicking in when we didn't
have focus [Bug: 2272]
|
|
|
|
|
| |
KeycodeToKeysym, to fix [Bug: 5090]. See comment in code for more
information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tkEntry.c (Tk_EntryObjCmd): adjusted finishing error
cases and changed TK_CONFIG_NULL_OK to TK_OPTION_NULL_OK
* tests/scale.test:
* generic/tkScale.c:
* generic/tkScale.h:
* unix/tkUnixScale.c:
* mac/tkMacScale.c: moved (PixelToValue|ValueToPixel|SetScaleValue)
to tkScale.c. Caused an associated variable to be immediately set
[Bug: 4833]
* library/scale.tcl (tkScaleActivate): reduced number of scale
redisplays by checking current value of state before setting it
again. [Bug: 4191]
* tests/winDialog.test: tk_chooseDirectory seems to get a noop
from GetOpenFileName in the static build, hanging some tests.
The tests were fixed to timeout (noop cause unknown).
* unix/aclocal.m4 (SC_ENABLE_THREADS): enhanced the detection of
pthread_mutex_init [Bug: 4359] and (SC_CONFIG_CFLAGS) added
--enable-64bit-vis switch for Sparc VIS compilation [Bug: 4995]
|
|
|
|
|
|
|
|
| |
Control, Shift, or Alt key was pressed. [Bug: 870].
* win/tkWin3d.c:
* unix/tkUnix3d.c: Tweaked threshhold for using different highlight
computation.
|
|
|
|
|
|
|
| |
menus; originally, it requested that the system be responsible for
drawing those items, so it would ignore configuration items like
the widget background. Now, we draw the separators ourselves (as
we do with every other kind of menu item already). [Bug: 1166].
|
|
|
|
|
|
|
|
| |
* unix/tkUnix3d.c: Applied patch from [RFE: 2501]: adds more
sophisticated smarts to TkpGetShadows, so that the highlight of a
very bright color is actually distinguishable from the color, and
the shadow of a very dark color is similarly distinguishable from
the color.
|
|
|
|
| |
for NULL tkwin in Tk_CanvasEventuallyRedraw.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GridMaster struct [Bug: 4387]
* library/safetk.tcl (disallowTk): made disallowTk work in the
simple case.
* library/comdlg.tcl (tkFocusGroup_In): fixed key navigation
problems in dialogs under CDE [Bug: 2960]
* tests/winDialog.test: removed knownBug constraint from 5.16
* win/tkWinFont.c (GetScreenFont): corrected adjustment against
LC_FACESIZE limitation for NT [Bug: 4931]
* win/makefile.vc (TKTEST_OBJS):
* win/Makefile.in (TKTEST_OBJS): moved tkWinTest.c from normal
objs to TKTEST_OBJS where it belonged.
|
|
|
|
| |
LC_FACESIZE limitation for NT. [Bug: 4931]
|
|
|
|
|
|
|
|
|
|
| |
TkplatformtestInit (it would never get called).
* unix/Makefile.in (MAN_INSTALL_DIR): patch to accept --mandir
correctly [Bug: 4085]
* library/clrpick.tcl (tkColorDialog_Config): error now thrown
when -initialcolor "" specified. [Bug: 4198]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tkEntry.c: set TK_OPTION_NULL_OK bit on -invcmd option
and removed #ifdef ENTRY_VALIDATE expressions
* library/menu.tcl (tkMenuInvoke): corrected naming of tearoffs
[Bug: 4506]
* library/tkfbox.tcl (tkIconList_Goto): caused browsecmd to be
called in tkIconList_Select. This causes the entry to be set
properly when using the type-in-name-in-listbox bindings.
* win/tkWinDialog.c: added unicode-aware open/save file dialogs
* win/tkWinFont.c (TkpFontPkgInit): move private ref to platformId
to TkWinGetPlatformId
* win/tkWinMenu.c (SetDefaults): moved private use of versionInfo
to TkWinGetPlatformId and removed all code for
(versionInfo.dwMajorVersion < 4) (== Win32s)
* win/tkWinX.c:
* win/tkWin32Dll.c: moved TkWinGetPlatformId to tkWinX.c
* win/tkWinInit.c: added TkWinXInit to TkpInit to ensure that its
called for static Windows shells. [Bug: 3647]
* win/tkWinInt.h:
* win/tkWinX.c:
* win/tkWinDraw.c (SetUpGraphicsPort):
* win/tkWinScrlbr.c (UpdateScrollbar): removed use of tkpIsWin32s
* win/tkWinInt.h (TkWinDCState struct): added bkmode value
* win/tkWinDraw.c (TkWinGetDrawableDC, et al): added support for
properly transparent dashed lines on Windows. [Bug: 4617]
|
|
|
|
|
| |
compile problems with non-ANSI compilers (ie, replace const with
CONST, etc). [Bug: 4223].
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
::tk::dialog::file namespace.
* tests/unixWm.test: Added tests for memory leak conditions in
tkUnixWm.c.
* tests/canvas.test: Added test for bad configuration options on
empty and non-empty canvas.
* generic/tkCanvas.c: Removed bad code in CANV_CONFIGURE block of
CanvasWidgetCmd; this was causing non-empty canvases to improperly
handle bad configuration options [Bug: 4456].
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tests/choosedir.test: Updated tests.
* library/xmfbox.tcl: Updated to stash data array in
::tk::dialog::file namespace instead of in global namespace.
* library/tkfbox.tcl: Extended some functions to support creation
of a choosedir dialog, to allow greater code reuse between the two
dialogs. Moved tkFDialog* functions into a namespace
(::tk::dialog::file). Because these are private Tk functions (and
should thus not be used directly by users), this should not impact
anybody (the tk_getOpenFile and tk_getSaveFile commands still
exist at the global scope).
* library/tk.tcl:
* library/tclIndex: Updated function names for tkFDialog*
functions and choosedir functions.
* library/choosedir.tcl: New and improved implementation of
tk_chooseDirectory dialog. Based on tk_getOpenFile dialog.
* library/listbox.tcl: (tkListboxCancel) Added a check for empty
string value for tkPriv(listboxPrev). Without this check, it's
possible to get a stack trace under certain conditions. [Bug: 4373].
|
| |
|
|
|
|
| |
against grabs on non-viewable windows.
|
|
|
|
| |
* generic/tkButton.c: Added -disabledforeground/-state to labels.
|
|
|
|
|
|
|
| |
* generic/tkEntry.c (EntrySetValue): malloc the value when
validating because validation could cause the pointer to become
invalid. Also fixed configure to not trigger focus-based
validation. Improved use of Tcl_WrongNumArgs. [Bug: 4320]
|
|
|
|
|
|
|
| |
Tk_ConfigureWidget [Bug: 4079]
* generic/tkWindow.c: Added check for NULL tkwin value in
Tk_NameToWindow [Bug: 4079]
|
| |
|
|
|
|
|
|
| |
submitted patch was more complicated than necessary and did not
extend to writing GIF's, only reading), to allow reading/writing
of GIF files on EBCDIC and other non-ASCII based systems.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tkIntXlibDecls.h:
* generic/tkInt.decls: declared some Xlib emulation calls for
the Mac
* generic/tkFrame.c (TkInstallFrameMenu): added extra panic to
inform user of bad call when framePtr is NULL [Bug: 2530]
* generic/tkMenu.c (DestroyMenuInstance): Placed checks around
menu name objects before trying to incr the ref. [Bug: 3402]
* generic/tkTest.c: removed USE_OLD_IMAGE def for Mac
* library/listbox.tcl:
* library/text.tcl: added support for <4> and <5> for mousewheel
style scrolling on Unix for mice that map to these buttons.
* tests/scrollbar.test: fixed check of testmetrics command to
allow unix tests to run (testmetrics is mac/pc only)
* unix/tkUnixWm.c (Tk_CoordsToWindow): qualified delete of error
handler as the goto label is reached from above and below.
* unix/configure.in:
* unix/aclocal.m4: cleaned up macros to coincide with tcl.m4,
added -export-dynamic to LDFLAGS for FreeBSD-3+ [Bug: 2998]
* unix/README:
* unix/Makefile.in (dist): removed porting.notes and porting.old
from distribution and CVS. The information was very outdated. Now
refer to http://dev.scriptics.com/services/support/platforms.html
* xlib/xgc.c: #def'd out XDrawSegments for the Mac, and added
some extra include info for the Mac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tkBind.c:
* generic/tkInt.decls:
* generic/tkIntDecls.h:
* generic/tkStubInit.c:
* mac/tkMacKeyboard.c:
* unix/tkUnixKey.c:
* win/tkWinKey.c: Fix for keyboard handling of "dead" keys and
caps lock from Peter Spjuth.
Split functions into platform specific files:
Static functions GetKeySym(), SetKeycodeAndState() and InitKeymapInfo()
from tkBind.c moved into platform files tkWinKey.c tkUnixKey.c and
tkMacKeyboard.c. GetKeySym() and SetKeycodeAndState() renamed to
Tkp* and made public (as private functions) in tkInt.decls.
Step 2, fixes in tkWinKey.c
New static function: KeycodeToKeysym(), based on XKeycodeToKeysym()
but with different arguments, and a lot of improvements.
TkpGetString() changed to use KeycodeToKeysym() + other fixes.
TkpGetKeySym() changed to use KeycodeToKeysym() + other fixes.
InitKeymapInfo() changed to use KeycodeToKeysym().
TkpSetKeycodeAndState() rewritten, mostly by copying code from
XKeysymToKeycode().
XKeycodeToKeysym() rewritten. Preferably it should be removed.
EXPLANATION: The main problem is ToAscii() which has a lot of side
effects, and also that XKeycodeToKeysym() is not provided enough
input to do a proper job. The changes' main goal is to avoid
calling ToAscii() if not necessary, and to provide it with as
correct information as possible when called. Also some attempts
to clean up what ToAscii() did are done. See the code for details.
BUGS FIXED: Typing shifted (and AltGr) dead keys did not work.
Keyboard lock lamps did not work on Win98.
Events regarding AltGr-keys behaved badly.
Example: On a Swedish keyboard, $ is typed with AltGr-4.
That keyboard event would get the keysym '4' not 'dollar'.
Also, doing [event generete . <Key-dollar>] would send keysym '4'.
Translation to ascii in TkpGetString did not handle return and
tab correctly. I.e. [event generate . <Key-Return>] gave wrong %A
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tk.decls:
* generic/tk.h: moved new public functions created in dash patch
to the stubs interface [Bug: 4062]
* generic/tk.h:
* doc/CrtImgType.3:
* doc/CrtPhImgFmt.3:
* generic/tk.h:
* generic/tkImgGIF.c:
* generic/tkImgPhoto.c:
* generic/tkStubImg.c (new file):
* generic/tkTest.c:
* unix/Makefile.in:
* win/Makefile.in:
* win/makefile.vc: improved support for moving from the old style
image C API to the new obj'ified one with new Tk_InitImageArgs
command and stub'ing of image code. See docs for how to make the
transition. [Bug: 4060]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* unix/configure.in:
* win/configure.in:
* generic/tk.h (TK_RELEASE_SERIAL): Moved to 8.3.0 patchlevel
* library/tk.tcl: wrapped check for tcl_platform(os) around info
exists because it won't in safe interpreters
* win/tkWinFont.c: corrected symbol font use to only work on 8-bit
characters [Bug: 2406]
* unix/aclocal.m4: changed all -fpic to -fPIC
|
|
|
|
|
|
| |
tk_getOpenFile/getSaveFile doesn't do the right thing when user
types a directory name in the entry and a default extension is
specified.
|
|
|
|
|
| |
Tcl_EventuallyFree to behave with Tcl_Preserve in TkpDisplayScale
(prevents possible segfault).
|
|
|
|
|
|
|
| |
* generic/tkText.c (DumpLine/DumpSegment): Changed DumpSegment to
take a TkTextIndex instead of two integer offsets, so that it
could use TkTextPrintIndex to format the offsets into an index,
which makes it UTF smart (bug #2582).
|