]> de.git.xonotic.org Git - xonotic/netradiant.git/commit
Improving native Windows file dialog in Rambetter-temp-fixes branch some
authorrambetter <rambetter>
Sat, 18 Dec 2010 03:03:55 +0000 (03:03 +0000)
committerrambetter <rambetter>
Sat, 18 Dec 2010 03:03:55 +0000 (03:03 +0000)
commitb1b208f12e64cdac5c3ada7348492d62e882dd91
tree2b7ab2871a8944c2e35430c04db524bf99bde9f0
parentf482df40a1c1e26f17734fd52e757314020650c0
Improving native Windows file dialog in Rambetter-temp-fixes branch some
more.  This adds new code and improves code committed in revision 351.

- Calling GetOpenFileName() and GetSaveFileName() from a new thread, thus
allowing the main thread to continue refreshing GtkRadiant while the native
Windows file dialog is open.  Prevents the ugly "hall of mirrors" effect.
A similar approach is used in the open source Inkscape, so I'm not doing
anything too dangerous here.  However, this _is_ hacky in my opinion.

- Using memset() to zero out the memory of the OPENFILENAME structure.
This is safer than selectively setting fields on this structure.  We no
longer need to explicity set certain field to NULL now.

- "all files" filter now lowercase to be consistent with other code.

These changes have been tested on Windows XP and Windows 7.

THIS COMMIT SHOULD BE MERGED INTO TRUNK AT SOME POINT!!!

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/Rambetter-temp-fixes@352 8a3a26a2-13c4-0310-b231-cf6edde360e5
radiant/gtkmisc.cpp
radiant/preferences.cpp