#ifdef __WXDEBUG__
-#define DEBUG_MAIN_THREAD if (wxThread::IsMain() && g_mainThreadLocked) printf("gui reentrance");
+#if wxUSE_THREADS
+# define DEBUG_MAIN_THREAD if (wxThread::IsMain() && g_mainThreadLocked) printf("gui reentrance");
+#else
+# define DEBUG_MAIN_THREAD
+#endif
static gint gtk_debug_focus_in_callback( GtkWidget *WXUNUSED(widget),
GdkEvent *WXUNUSED(event),
}
}
+#else
+#define DEBUG_MAIN_THREAD
#endif // Debug
//-----------------------------------------------------------------------------
GtkStyle *wxWindow::GetWidgetStyle()
{
- if (m_widgetStyle) gtk_style_unref( m_widgetStyle );
+ if (m_widgetStyle) return m_widgetStyle;
GtkStyle *def = gtk_rc_get_style( m_widget );
def = gtk_widget_get_default_style();
m_widgetStyle = gtk_style_copy( def );
- m_widgetStyle->engine_data = def->engine_data;
m_widgetStyle->klass = def->klass;
return m_widgetStyle;