{
if (g_isIdle)
wxapp_install_idle_handler();
-
+
switch ( g_sendActivateEvent )
{
case -1:
event.SetEventObject(g_activeFrame);
g_activeFrame->GetEventHandler()->ProcessEvent(event);
- return TRUE;
+ return FALSE;
}
//-----------------------------------------------------------------------------
g_activeFrame = NULL;
- return TRUE;
+ return FALSE;
}
//-----------------------------------------------------------------------------
{
bool activate = g_sendActivateEvent != 0;
+ // if (!activate) wxPrintf( wxT("de") );
+ // wxPrintf( wxT("activate\n") );
+
// do it only once
g_sendActivateEvent = -1;
{
// not yet, notify it
win->m_hasFocus = TRUE;
-
+
if ( DoSendFocusEvents(win) )
{
gtk_signal_emit_stop_by_name( GTK_OBJECT(widget), "focus_in_event" );
{
if (m_focusWidget == NULL)
m_focusWidget = m_widget;
-
+
gtk_signal_connect( GTK_OBJECT(m_focusWidget), "focus_in_event",
GTK_SIGNAL_FUNC(gtk_window_focus_in_callback), (gpointer)this );
{
if (g_isIdle)
wxapp_install_idle_handler();
-
+
switch ( g_sendActivateEvent )
{
case -1:
event.SetEventObject(g_activeFrame);
g_activeFrame->GetEventHandler()->ProcessEvent(event);
- return TRUE;
+ return FALSE;
}
//-----------------------------------------------------------------------------
g_activeFrame = NULL;
- return TRUE;
+ return FALSE;
}
//-----------------------------------------------------------------------------
{
bool activate = g_sendActivateEvent != 0;
+ // if (!activate) wxPrintf( wxT("de") );
+ // wxPrintf( wxT("activate\n") );
+
// do it only once
g_sendActivateEvent = -1;
{
// not yet, notify it
win->m_hasFocus = TRUE;
-
+
if ( DoSendFocusEvents(win) )
{
gtk_signal_emit_stop_by_name( GTK_OBJECT(widget), "focus_in_event" );
{
if (m_focusWidget == NULL)
m_focusWidget = m_widget;
-
+
gtk_signal_connect( GTK_OBJECT(m_focusWidget), "focus_in_event",
GTK_SIGNAL_FUNC(gtk_window_focus_in_callback), (gpointer)this );