removed useless event handlers that were breaking focus handling in wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -258,10 +258,6 @@ BEGIN_EVENT_TABLE( wxFrameLayout, wxEvtHandler )
|
|||||||
EVT_LEFT_DCLICK( wxFrameLayout::OnLDblClick )
|
EVT_LEFT_DCLICK( wxFrameLayout::OnLDblClick )
|
||||||
|
|
||||||
EVT_IDLE ( wxFrameLayout::OnIdle )
|
EVT_IDLE ( wxFrameLayout::OnIdle )
|
||||||
EVT_SET_FOCUS ( wxFrameLayout::OnSetFocus )
|
|
||||||
EVT_KILL_FOCUS ( wxFrameLayout::OnKillFocus )
|
|
||||||
|
|
||||||
EVT_ACTIVATE ( wxFrameLayout::OnActivate )
|
|
||||||
|
|
||||||
EVT_ERASE_BACKGROUND( wxFrameLayout::OnEraseBackground )
|
EVT_ERASE_BACKGROUND( wxFrameLayout::OnEraseBackground )
|
||||||
|
|
||||||
@@ -1505,38 +1501,6 @@ void wxFrameLayout::OnIdle( wxIdleEvent& event )
|
|||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void wxFrameLayout::OnKillFocus( wxFocusEvent& WXUNUSED(event) )
|
|
||||||
{
|
|
||||||
//wxMessageBox( "wxFrameLayoutGot Kill Focus!" );
|
|
||||||
//ShowFloatedWindows( false );
|
|
||||||
}
|
|
||||||
|
|
||||||
void wxFrameLayout::OnSetFocus( wxFocusEvent& WXUNUSED(event) )
|
|
||||||
{
|
|
||||||
//ShowFloatedWindows( true );
|
|
||||||
}
|
|
||||||
|
|
||||||
void wxFrameLayout::OnActivate( wxActivateEvent& WXUNUSED(event) )
|
|
||||||
{
|
|
||||||
#if 0
|
|
||||||
if ( event.GetActive() == false )
|
|
||||||
{
|
|
||||||
wxWindow* focus = wxWindow::FindFocus();
|
|
||||||
|
|
||||||
if ( !focus || focus == &GetParentFrame() )
|
|
||||||
{
|
|
||||||
mCheckFocusWhenIdle = true;
|
|
||||||
|
|
||||||
if ( !focus )
|
|
||||||
|
|
||||||
wxMessageBox("Deactivated!" );
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void wxFrameLayout::GetPaneProperties( cbCommonPaneProperties& props, int alignment )
|
void wxFrameLayout::GetPaneProperties( cbCommonPaneProperties& props, int alignment )
|
||||||
{
|
{
|
||||||
props = mPanes[alignment]->mProps;
|
props = mPanes[alignment]->mProps;
|
||||||
|
Reference in New Issue
Block a user