#include "wx/font.h"
#endif
-#include "wx/file.h"
-#include "wx/filename.h"
#include "wx/thread.h"
#ifdef __WXGPE__
#include <gpe/init.h>
#endif
-#ifdef __WXUNIVERSAL__
- #include "wx/univ/theme.h"
- #include "wx/univ/renderer.h"
-#endif
-
#include "wx/gtk/win_gtk.h"
#include "wx/gtk/private.h"
// link GnomeVFS
//-----------------------------------------------------------------------------
-#if wxUSE_LIBGNOMEVFS
-#include "wx/html/forcelnk.h"
-FORCE_LINK(gnome_vfs)
+#if wxUSE_MIMETYPE && wxUSE_LIBGNOMEVFS
+ #include "wx/link.h"
+ wxFORCE_LINK_MODULE(gnome_vfs)
#endif
//-----------------------------------------------------------------------------
// Release lock again
gdk_threads_leave();
-
+
{
// If another idle source was added, remove it
#if wxUSE_THREADS
bool wxApp::Initialize(int& argc, wxChar **argv)
{
- bool init_result;
+ if ( !wxAppBase::Initialize(argc, argv) )
+ return false;
#if wxUSE_THREADS
if (!g_thread_supported())
g_main_context_set_poll_func(NULL, wxapp_poll_func);
#endif // wxUSE_THREADS
- gtk_set_locale();
-
// We should have the wxUSE_WCHAR_T test on the _outside_
#if wxUSE_WCHAR_T
// gtk+ 2.0 supports Unicode through UTF-8 strings
static wxConvBrokenFileNames fileconv(encName);
wxConvFileName = &fileconv;
+
+ bool init_result;
+
#if wxUSE_UNICODE
// gtk_init() wants UTF-8, not wchar_t, so convert
int i;
{
while ( strcmp(wxConvUTF8.cWX2MB(argv[i]), argvGTK[i]) != 0 )
{
- memmove(argv + i, argv + i + 1, argc - i);
+ memmove(argv + i, argv + i + 1, (argc - i)*sizeof(*argv));
}
}
// we can not enter threads before gtk_init is done
gdk_threads_enter();
- if ( !wxAppBase::Initialize(argc, argv) )
- {
- gdk_threads_leave();
-
- return false;
- }
-
wxSetDetectableAutoRepeat( true );
#if wxUSE_INTL