git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45590
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/gtk/win_gtk.h"
#include "wx/gtk/private.h"
+#include "wx/apptrait.h"
#include <gdk/gdkx.h>
init_result = gtk_init_check( &argc, &argv );
#endif // wxUSE_UNICODE/!wxUSE_UNICODE
- if (!init_result) {
- wxLogError(wxT("Unable to initialize gtk, is DISPLAY set properly?"));
+ // update internal arg[cv] as GTK+ may have removed processed options:
+ this->argc = argc;
+ this->argv = argv;
+
+ if ( !init_result )
+ {
+ wxLogError(_("Unable to initialize GTK+, is DISPLAY set properly?"));
return false;
}