// wxTopLevelWindowGTK itself
// ----------------------------------------------------------------------------
-BEGIN_EVENT_TABLE(wxTopLevelWindowGTK, wxTopLevelWindowBase)
- EVT_SET_FOCUS(wxTopLevelWindowGTK::OnSetFocus)
-END_EVENT_TABLE()
-
//-----------------------------------------------------------------------------
// InsertChild for wxTopLevelWindowGTK
//-----------------------------------------------------------------------------
// set the focus if not done yet and if we can already do it
if ( GTK_WIDGET_REALIZED(m_wxwindow) )
{
- if ( g_delayedFocus && wxGetTopLevelParent(g_delayedFocus) == this )
+ if ( g_delayedFocus &&
+ wxGetTopLevelParent((wxWindow*)g_delayedFocus) == this )
{
g_delayedFocus->SetFocus();
g_delayedFocus = NULL;
wxWindow::OnInternalIdle();
}
-void wxTopLevelWindowGTK::OnSetFocus(wxFocusEvent& event)
-{
-#if 0
- if ( !g_delayedFocus || wxGetTopLevelParent(g_delayedFocus) != this )
- {
- // let the base class version set the focus to the first child which
- // accepts it
- event.Skip();
- }
- //else: the focus will be really set from OnInternalIdle() later
-#endif
-}
-
// ----------------------------------------------------------------------------
// frame title/icon
// ----------------------------------------------------------------------------