Interpret default file name relatively to initial dir in wxGTK wxFileDialog.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 28 Feb 2012 02:04:57 +0000 (02:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 28 Feb 2012 02:04:57 +0000 (02:04 +0000)
commit257d35aead848ef7ea2009c4291dd2499b9ae94f
treeea08482196c238d0f40a6c60a45c54f261180c08
parent54c45be005b3ffc43c63cfb9da63852c905cf3a9
Interpret default file name relatively to initial dir in wxGTK wxFileDialog.

Use the initial dialog directory to build the absolute path required by GTK+
in wxFileDialog instead of the current working directory. This makes more
sense and makes specifying the default directory and (just) the default file
name work correctly and avoids GTK+ warnings like

Gtk-CRITICAL **: gtk_file_folder_unix_get_info: assertion `strcmp (dirname, folder_unix->filename) == 0' failed

(and in some older versions of GTK+ -- 2.10? -- this even results in a crash).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/filedlg.cpp