#include "wx/unix/private.h"
#include "wx/gtk/win_gtk.h"
+#include "wx/gtk/private.h"
#include <gtk/gtk.h>
+//-----------------------------------------------------------------------------
+// link GnomeVFS
+//-----------------------------------------------------------------------------
+
+#if wxUSE_LIBGNOMEVFS
+#include "wx/html/forcelnk.h"
+FORCE_LINK(gnome_vfs)
+#endif
+
//-----------------------------------------------------------------------------
// global data
//-----------------------------------------------------------------------------
// idle system
//-----------------------------------------------------------------------------
-extern bool g_isIdle;
-
void wxapp_install_idle_handler();
#if wxUSE_THREADS
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
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 );
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();