summaryrefslogtreecommitdiffstats
path: root/win/tkWinDialog.c
Commit message (Collapse)AuthorAgeFilesLines
* 3 more placesjan.nijtmans2021-07-231-3/+3
|
* wide-api-bug, still to be testedjan.nijtmans2021-07-231-4/+4
|
* MSVC++ 6.0 does't handle C++ commentsjan.nijtmans2020-10-281-3/+3
|
* Replace all instances of Tcl_WinTCharToUtf()/Tcl_WinUtfToTChar() with ↵jan.nijtmans2020-03-241-84/+106
| | | | | Tcl_UniCharToUtfDString()/Tcl_UtfToUniCharDString(), if possible (only for -DTCL_UTF_MAX=3, which is the default and only supported option) Backported, as far as possible, from 8.7. This helps moving away from Tcl_WinTCharToUtf()/Tcl_WinUtfToTChar(), even though it only becomes deprecated in 8.7.
* Eliminate a few (harmless) gcc(-9) warnings on Windows and Cygwin.jan.nijtmans2020-03-091-9/+10
|
* Fix [f8f1f0b103]: macosx/README: update Wiki and X11 info. Also change more ↵jan.nijtmans2019-10-041-1/+1
| | | | links to point to the current https://core.tcl-lang.org
* Better fix for [2026405]: winfo id bug in cygwin build. jan.nijtmans2019-09-261-1/+1
| | | Actually, formatting of %p is libc-specific, now that we have TCL_Z_MODIFIER we can make it platform-independant for all cases.
* Add type-casts to many usage of Tcl_WinTCharToUtf(), so Tk compiles without ↵jan.nijtmans2019-09-241-8/+8
| | | | warnings when omitting -DUNICODE.
* Use more explicit *W()-forms of the Win32 API, instead of relying on -DUNICODEjan.nijtmans2019-09-231-33/+29
|
* *A() to *W() Win32 API changes, actually the same because Tk is already ↵jan.nijtmans2019-09-191-29/+29
| | | | compiled in UNICODE mode.
* TCHAR -> WCHAR conversions, since our TCHAR is actually WCHAR when compiling ↵jan.nijtmans2019-09-161-41/+38
| | | | everything in UNICODE mode on Windows.
* Only free "patterns" once, not each time inside the loop. That might crash ↵jan.nijtmans2019-07-301-39/+41
| | | | with long filters.
* Fix [f3c5467f07]: various spelling fixes (from Christopher Chavez)fvogel2019-07-021-2/+2
|
* Don't use "struct ThreadSpecificData", while the type name ↵jan.nijtmans2019-07-021-1/+1
| | | | "ThreadSpecificData" is already sufficient.
* Make Tk run on win32/win64 using -DTCL_UTF_MAX=6. Adapted from androwish.jan.nijtmans2019-03-151-5/+2
|
*-. Merge 8.6 and all changes from original [bug-9e31fd9449] branchjan.nijtmans2019-01-081-2/+2
|\ \
* \ \ Fix [9e31fd9449]: X11/X.h and Windows.h have conflicting symbols jan.nijtmans2018-12-201-2/+2
|\ \ \ | |/ / |/| / | |/ *** POTENTIAL INCOMPATIBILITY *** for Win32 only: On X11 and Mac, "None" can still be used as before
* | Eliminate type-casts, by using size_t type internally in more situations. No ↵jan.nijtmans2018-08-101-2/+2
| | | | | | | | functional changes
* | tkWinDialog.c: Change a LoadLibrary() call to GetModuleHandle(), since ↵jan.nijtmans2017-11-271-6/+1
| | | | | | | | | | "shell32.dll" is already linked to Tk. Also various whitespace changes (mainly at line-ends) and comment fixes. Nothing functional.
* | merge trunk. jan.nijtmans2017-05-181-1/+1
|\ \ | | | | | | Make "font actual" return integers, for compatibility.
| * | minor gcc warning (const usage)jan.nijtmans2017-05-181-1/+1
| | |
* | | Another attempt to fix ↵jan.nijtmans2017-05-151-1/+1
|/ / | | | | | | [434d294df8b053246ee86e7898d06bc3a6d1d771|434d294df8], this time (hopefully) suitable for 8.6. (less changes than the original attempt)
* | On Windows, use Tcl_WinTCharToUtf() in stead of Tcl_NewUnicodeObj(), since ↵jan.nijtmans2017-05-051-8/+44
| | | | | | | | | | | | Tcl_WinTCharToUtf() works correctly when TCL_UTF_MAX==6 while Tcl_NewUnicodeObj() doesn't. All changes taken over from androwish. Thanks to Christian Werner! And ... on the go ... fixed a few memory leaks correctly detected by Christian.
* | (cherry-pick): Bug [64261b50]. Spurious mouse events sent to underlying ↵jan.nijtmans2016-05-121-16/+19
| | | | | | | | window when file dialog is closed.
* | Fixed [b362182e45] - Generation of virtual events through Tk_HandleEvent is ↵fvogel2016-04-211-4/+4
| | | | | | | | unsafe
* | Bug [47af31bd3a] - tk_getSaveFile adds . as extension.ashok2015-10-091-7/+18
| | | | | | Also added more tests for -filetypes and -defaultextension combinations.
* | Fix for [46c83f60] (relative paths ignored in tk_getOpenFile/tk_getSaveFile ↵ashok2015-10-061-11/+20
| | | | | | | | on Vista+). Added tests for -initialdir option.
* | Suggested fix for [2a70627a03]: shobjidl.h include in tkWinDialog.c breaks ↵jan.nijtmans2015-03-221-1/+0
| | | | | | | | mingw cross compile
* | Fix for 4a0451f529. Needed a Tcl_ResetResult after recursive eventashok2014-12-031-0/+15
| | | | | | | | | | | | loop otherwise clicking Cancel would return a non-empty result in case a script was run in the background as part of the event loop. Also updated test suite which did not actually check that a Cancel resulted in an empty event string.
* | Fix [1c0d6e162c8876fd1bc0526c7cc59c320853d23|1c0d6e162c]: tkWinDialog.c ↵jan.nijtmans2014-11-211-14/+19
| | | | | | | | defines type "SIGDN" (enum __MIDL_IShellItem_0001), which is already defined
* | Fix [d43a10ce2fed950e00890049f3c273f2cdd12583|d43a10ce2f]: tk_getOpenFile ↵ashok2014-11-141-3/+18
| | | | | | | | | | | | crashes when passed a bad -typevariable. Crash was caused by access to a list element after the Tcl_Obj was shimmered to a variable intrep.
* | Backout last change, it doesn't solve the issuejan.nijtmans2014-11-131-50/+2
| |
* | Fix [d43a10ce2fed950e00890049f3c273f2cdd12583|d43a10ce2f]: tk_getOpenFile ↵jan.nijtmans2014-11-131-2/+50
| | | | | | | | crashes when passed a bad -typevariable.
* | Quick-fix compilation on VC6/PSDK (reported by Andreas Kurpies)jan.nijtmans2014-10-251-0/+2
| |
* | Make tkWinDialog.c compile with MinGW 4.0.2. jan.nijtmans2014-10-201-197/+222
| | | | | | | | Don't use "this" (possible conflict with C++ compiler). Eliminate end-of-line spaces.
* | Make sure IID_IShellItem is defined even when uuid.lib does not export it. ↵jan.nijtmans2014-10-201-0/+7
| | | | | | | | Idea stolen from here: [http://trac.wxwidgets.org/changeset/71395]
* | - Fix winDialog-9.7 test in case "initialdir" contains capital characters. jan.nijtmans2014-10-201-3/+2
| | | | | | - Add "uuid.lib" as requirement for tkWinDialog.c
* | Previous commit probably broke higher VS versions (>2012) compilation. Fix that.jan.nijtmans2014-10-171-1/+3
| |
* | Fix symbol conflict when compiling with latest (??) MinGW-w64.jan.nijtmans2014-10-171-11/+11
| |
* | Make tkWinDialog.c buildable with gcc 4.8.1, vc6, vs2012. Passes all testsashok2014-10-161-40/+38
| |
* | Fixes to compile with newer Visual Studio versionsashok2014-10-161-19/+20
| |
* | Convert native paths returned from file dialogs to Tcl canonical paths.ashok2014-09-201-3/+11
| |
* | Make -xpstyle a hidden optionashok2014-09-201-30/+29
| |
* | Implemented Vista+ tk_chooseDirectory dialogsashok2014-09-171-478/+239
| |
* | Implemented -filetypes and -typevariable for new Vista file dialogs.ashok2014-09-141-13/+207
| |
* | Implemented multiselect in new file dialogs.ashok2014-09-141-28/+116
| |
* | Implemented more options for new tk_get{Open,Save} file dialogsashok2014-09-131-113/+290
| | | | | | | | Renamed Win32ErrorObj to TkWin32ErrorObj and moved it from tkWinSend.c to be generally available.
* | Get basic new style dialogs working.ashok2014-09-121-145/+695
| |
* | Started on new Vista-style file dialogs. Refactored option processing.ashok2014-09-121-0/+195
| |
* | Fix [http://core.tcl.tk/tcl/info/651e828a52|651e828a52]: Wrong Windows ↵jan.nijtmans2014-02-041-9/+1
|\ \ | |/ | | | | | | version reported for Windows 8.1. Remove some dead code (since Win95/98/ME is no longer supported)