{
// Rewrite cursor handling here (away from idle).
win->SetCursor( cevent.GetCursor() );
- win->GTKUpdateCursor();
}
}
{
// Rewrite cursor handling here (away from idle).
win->SetCursor( cevent.GetCursor() );
- win->GTKUpdateCursor();
}
}
bool wxWindowGTK::SetCursor( const wxCursor &cursor )
{
- wxCHECK_MSG( (m_widget != NULL), false, wxT("invalid window") );
-
- if (cursor == m_cursor)
- return false;
+ if ( !wxWindowBase::SetCursor( cursor.Ok() ? cursor : *wxSTANDARD_CURSOR) )
+ return false;
- if (g_isIdle)
- wxapp_install_idle_handler();
+ GTKUpdateCursor();
- return wxWindowBase::SetCursor( cursor.Ok() ? cursor : *wxSTANDARD_CURSOR );
+ return true;
}
void wxWindowGTK::GTKUpdateCursor()