Early versions of GTK+2 don't have has_toplevel_focus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1070,9 +1070,15 @@ bool wxTopLevelWindowGTK::SetShape(const wxRegion& region)
|
|||||||
bool wxTopLevelWindowGTK::IsActive()
|
bool wxTopLevelWindowGTK::IsActive()
|
||||||
{
|
{
|
||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
|
// Order the conditions like this so we don't
|
||||||
|
// have to decide how to include version for GTK+ 1 versus 2
|
||||||
|
#if GTK_CHECK_VERSION(2,2,0)
|
||||||
return GTK_WINDOW( m_widget )->has_toplevel_focus;
|
return GTK_WINDOW( m_widget )->has_toplevel_focus;
|
||||||
#else
|
#else
|
||||||
return wxTopLevelWindowBase::IsActive();
|
return wxTopLevelWindowBase::IsActive();
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
return wxTopLevelWindowBase::IsActive();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1070,9 +1070,15 @@ bool wxTopLevelWindowGTK::SetShape(const wxRegion& region)
|
|||||||
bool wxTopLevelWindowGTK::IsActive()
|
bool wxTopLevelWindowGTK::IsActive()
|
||||||
{
|
{
|
||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
|
// Order the conditions like this so we don't
|
||||||
|
// have to decide how to include version for GTK+ 1 versus 2
|
||||||
|
#if GTK_CHECK_VERSION(2,2,0)
|
||||||
return GTK_WINDOW( m_widget )->has_toplevel_focus;
|
return GTK_WINDOW( m_widget )->has_toplevel_focus;
|
||||||
#else
|
#else
|
||||||
return wxTopLevelWindowBase::IsActive();
|
return wxTopLevelWindowBase::IsActive();
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
return wxTopLevelWindowBase::IsActive();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user