virtual void DoSetClientSize(int width, int height);
virtual void DoGetClientSize(int *width, int *height) const;
- virtual wxSize DoGetBestSize() const;
// string shown in the title bar
wxString m_title;
GdkEvent * WXUNUSED(event),
wxTopLevelWindow *win )
{
- win->SetIconizeState(true);
+ // hiding the window doesn't count as minimizing it
+ if (win->IsShown())
+ win->SetIconizeState(true);
return false;
}
}
m_deferShowAllowed = false;
}
-wxSize wxTopLevelWindowGTK::DoGetBestSize() const
-{
- // temporarily turn off m_isIconized,
- // so we get an accurate client size from DoGetClientSize
- const bool save = m_isIconized;
- const_cast<wxTopLevelWindowGTK*>(this)->m_isIconized = false;
- const wxSize size = base_type::DoGetBestSize();
- const_cast<wxTopLevelWindowGTK*>(this)->m_isIconized = save;
- return size;
-}
-
void wxTopLevelWindowGTK::DoGetClientSize( int *width, int *height ) const
{
wxASSERT_MSG(m_widget, wxT("invalid frame"));