update wxApp::argc/argv to remove the options parsed by GTK+ itself from them [backport from HEAD]

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-04-22 21:18:44 +00:00
parent 139779bc3f
commit c3a30557ce

View File

@@ -504,6 +504,10 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
return false;
}
// update internal arg[cv] as GTK+ may have removed processed options:
this->argc = argc;
this->argv = argv;
// we can not enter threads before gtk_init is done
gdk_threads_enter();