wxASSERT_MSG( m_isWindow, _T("Init() must have been called before!") );
// generate a new id if the user doesn't care about it
- m_windowId = id == -1 ? NewControlId() : id;
+ // No, we keep the -1 from now on. RR.
+// m_windowId = id == -1 ? NewControlId() : id;
SetName(name);
SetWindowStyleFlag(style);
g_isIdle = TRUE;
/* wake up other threads */
+
wxMutexGuiLeave();
wxUsleep(0);
wxMutexGuiEnter();
GdkEvent *WXUNUSED(event),
const wxChar *name )
{
- // to enable logging of the focus events replace 0 with 1
-#if 0
+/*
static bool s_done = FALSE;
if ( !s_done )
{
wxLog::AddTraceMask("focus");
s_done = TRUE;
}
-#endif
wxLogTrace(_T("FOCUS NOW AT: %s"), name);
+*/
return FALSE;
}
wxPrintf( win->GetClassInfo()->GetClassName() );
wxPrintf( _T(".\n") );
*/
-
if (!win->m_hasVMT) return FALSE;
if (g_blockEventsOnDrag) return TRUE;
if (g_blockEventsOnScroll) return TRUE;
g_isIdle = TRUE;
/* wake up other threads */
+
wxMutexGuiLeave();
wxUsleep(0);
wxMutexGuiEnter();
GdkEvent *WXUNUSED(event),
const wxChar *name )
{
- // to enable logging of the focus events replace 0 with 1
-#if 0
+/*
static bool s_done = FALSE;
if ( !s_done )
{
wxLog::AddTraceMask("focus");
s_done = TRUE;
}
-#endif
wxLogTrace(_T("FOCUS NOW AT: %s"), name);
+*/
return FALSE;
}
wxPrintf( win->GetClassInfo()->GetClassName() );
wxPrintf( _T(".\n") );
*/
-
if (!win->m_hasVMT) return FALSE;
if (g_blockEventsOnDrag) return TRUE;
if (g_blockEventsOnScroll) return TRUE;