From c3a30557ced3689db089865b249a7b0301e3da6a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 22 Apr 2007 21:18:44 +0000 Subject: [PATCH] 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 --- src/gtk/app.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 780924b4eb..010ee269a7 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -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();