IsShown() now returns false for non-selected wxNotebook pages, see #4343
This commit is contained in:
parent
34b53e13f9
commit
9cfda3ca4d
@ -64,6 +64,7 @@ public:
|
||||
virtual void Lower() wxOVERRIDE;
|
||||
|
||||
virtual bool Show( bool show = true ) wxOVERRIDE;
|
||||
virtual bool IsShown() const wxOVERRIDE;
|
||||
|
||||
virtual bool IsRetained() const wxOVERRIDE;
|
||||
|
||||
|
@ -3329,6 +3329,12 @@ bool wxWindowGTK::Show( bool show )
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxWindowGTK::IsShown() const
|
||||
{
|
||||
// return false for non-selected wxNotebook pages
|
||||
return m_isShown && (m_widget == NULL || gtk_widget_get_child_visible(m_widget));
|
||||
}
|
||||
|
||||
void wxWindowGTK::DoEnable( bool enable )
|
||||
{
|
||||
wxCHECK_RET( (m_widget != NULL), wxT("invalid window") );
|
||||
|
Loading…
Reference in New Issue
Block a user