Make GTKHandleDeferredFocusOut() non-static
Slightly simplify the code by making it a member function. No real changes.
This commit is contained in:
@@ -199,7 +199,7 @@ public:
|
|||||||
bool GTKHandleFocusIn();
|
bool GTKHandleFocusIn();
|
||||||
bool GTKHandleFocusOut();
|
bool GTKHandleFocusOut();
|
||||||
void GTKHandleFocusOutNoDeferring();
|
void GTKHandleFocusOutNoDeferring();
|
||||||
static void GTKHandleDeferredFocusOut();
|
void GTKHandleDeferredFocusOut();
|
||||||
|
|
||||||
// Called when m_widget becomes realized. Derived classes must call the
|
// Called when m_widget becomes realized. Derived classes must call the
|
||||||
// base class method if they override it.
|
// base class method if they override it.
|
||||||
|
@@ -3828,7 +3828,7 @@ bool wxWindowGTK::GTKShowFromOnIdle()
|
|||||||
void wxWindowGTK::OnInternalIdle()
|
void wxWindowGTK::OnInternalIdle()
|
||||||
{
|
{
|
||||||
if ( gs_deferredFocusOut )
|
if ( gs_deferredFocusOut )
|
||||||
GTKHandleDeferredFocusOut();
|
gs_deferredFocusOut->GTKHandleDeferredFocusOut();
|
||||||
|
|
||||||
// Check if we have to show window now
|
// Check if we have to show window now
|
||||||
if (GTKShowFromOnIdle()) return;
|
if (GTKShowFromOnIdle()) return;
|
||||||
@@ -4348,7 +4348,7 @@ bool wxWindowGTK::GTKHandleFocusIn()
|
|||||||
// otherwise we need to send focus-out first
|
// otherwise we need to send focus-out first
|
||||||
wxASSERT_MSG ( gs_deferredFocusOut != this,
|
wxASSERT_MSG ( gs_deferredFocusOut != this,
|
||||||
"GTKHandleFocusIn(GTKFocus_Normal) called even though focus changed back to itself - derived class should handle this" );
|
"GTKHandleFocusIn(GTKFocus_Normal) called even though focus changed back to itself - derived class should handle this" );
|
||||||
GTKHandleDeferredFocusOut();
|
gs_deferredFocusOut->GTKHandleDeferredFocusOut();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -4459,20 +4459,18 @@ void wxWindowGTK::GTKHandleFocusOutNoDeferring()
|
|||||||
GTKProcessEvent( event );
|
GTKProcessEvent( event );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*static*/
|
|
||||||
void wxWindowGTK::GTKHandleDeferredFocusOut()
|
void wxWindowGTK::GTKHandleDeferredFocusOut()
|
||||||
{
|
{
|
||||||
// NB: See GTKHandleFocusOut() for explanation. This function is called
|
// NB: See GTKHandleFocusOut() for explanation. This function is called
|
||||||
// from either GTKHandleFocusIn() or OnInternalIdle() to process
|
// from either GTKHandleFocusIn() or OnInternalIdle() to process
|
||||||
// deferred event.
|
// deferred event for this window.
|
||||||
wxWindowGTK *win = gs_deferredFocusOut;
|
|
||||||
gs_deferredFocusOut = NULL;
|
gs_deferredFocusOut = NULL;
|
||||||
|
|
||||||
wxLogTrace(TRACE_FOCUS,
|
wxLogTrace(TRACE_FOCUS,
|
||||||
"processing deferred focus_out event for %s(%p, %s)",
|
"processing deferred focus_out event for %s(%p, %s)",
|
||||||
win->GetClassInfo()->GetClassName(), win, win->GetLabel());
|
GetClassInfo()->GetClassName(), this, GetLabel());
|
||||||
|
|
||||||
win->GTKHandleFocusOutNoDeferring();
|
GTKHandleFocusOutNoDeferring();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWindowGTK::SetFocus()
|
void wxWindowGTK::SetFocus()
|
||||||
|
Reference in New Issue
Block a user