X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ab9a53699b34bd9f4a4934fd1f6c9c4c78f6599..760f0fc2f4b875beb06e5ecd6d69b891d8360efe:/src/gtk/app.cpp diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 9f3abf88b9..8f8e0869dc 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -74,9 +74,19 @@ #include "wx/unix/private.h" #include "wx/gtk/win_gtk.h" +#include "wx/gtk/private.h" #include +//----------------------------------------------------------------------------- +// link GnomeVFS +//----------------------------------------------------------------------------- + +#if wxUSE_LIBGNOMEVFS +#include "wx/html/forcelnk.h" +FORCE_LINK(gnome_vfs) +#endif + //----------------------------------------------------------------------------- // global data //----------------------------------------------------------------------------- @@ -90,8 +100,6 @@ static GtkWidget *gs_RootWindow = (GtkWidget*) NULL; // idle system //----------------------------------------------------------------------------- -extern bool g_isIdle; - void wxapp_install_idle_handler(); #if wxUSE_THREADS @@ -249,11 +257,11 @@ static gint wxapp_idle_callback( gpointer WXUNUSED(data) ) wxTheApp->m_idleTag = 0; } - bool moreIdles = false; + bool moreIdles; // Send idle event to all who request them as long as // no events have popped up in the event queue. - while (moreIdles = wxTheApp->ProcessIdle() && (gtk_events_pending() == 0)) + while ( (moreIdles = wxTheApp->ProcessIdle()) && gtk_events_pending() == 0) ; // Release lock again @@ -535,7 +543,7 @@ GdkVisual *wxApp::GetGdkVisual() if (m_glVisualInfo) visual = gdkx_visual_get( ((XVisualInfo *) m_glVisualInfo)->visualid ); else - visual = gdk_window_get_visual( wxGetRootWindow()->window ); + visual = gdk_drawable_get_visual( wxGetRootWindow()->window ); wxASSERT( visual ); @@ -547,18 +555,8 @@ bool wxApp::Initialize(int& argc, wxChar **argv) bool init_result; #if wxUSE_THREADS - // GTK 1.2 up to version 1.2.3 has broken threads - if ((gtk_major_version == 1) && - (gtk_minor_version == 2) && - (gtk_micro_version < 4)) - { - printf( "wxWidgets warning: GUI threading disabled due to outdated GTK version\n" ); - } - else - { - if (!g_thread_supported()) - g_thread_init(NULL); - } + if (!g_thread_supported()) + g_thread_init(NULL); #endif // wxUSE_THREADS gtk_set_locale();