]> de.git.xonotic.org Git - xonotic/netradiant.git/commit
Improving native Windows file dialog in Rambetter-temp-fixes branch some
authorrambetter <rambetter@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Sat, 18 Dec 2010 03:03:55 +0000 (03:03 +0000)
committerrambetter <rambetter@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Sat, 18 Dec 2010 03:03:55 +0000 (03:03 +0000)
commit6a023763c86da82da339d52dbb6d41b0bc9f5b13
tree2b7ab2871a8944c2e35430c04db524bf99bde9f0
parentd80b481f3c141797fd970bf527dca4ad4ec564ad
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: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/branches/Rambetter-temp-fixes@352 8a3a26a2-13c4-0310-b231-cf6edde360e5
radiant/gtkmisc.cpp
radiant/preferences.cpp