Fix wxGTK build after WXSetInitialFittingClientSize() change
This should have been part of 136574b1e0
(Make wxSizer::SetSizeHints()
work again, 2021-07-24).
See #19170.
This commit is contained in:
@@ -143,7 +143,7 @@ public:
|
||||
|
||||
virtual void SetMinSize(const wxSize& minSize) wxOVERRIDE;
|
||||
|
||||
virtual void WXSetInitialFittingClientSize(int flags) wxOVERRIDE;
|
||||
virtual void WXSetInitialFittingClientSize(int flags, wxSizer* sizer = NULL) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
// Flags to call WXSetInitialFittingClientSize() with if != 0.
|
||||
|
@@ -1567,10 +1567,11 @@ void wxTopLevelWindowGTK::SetMinSize(const wxSize& minSize)
|
||||
m_pendingFittingClientSizeFlags &= ~wxSIZE_SET_MIN;
|
||||
}
|
||||
|
||||
void wxTopLevelWindowGTK::WXSetInitialFittingClientSize(int flags)
|
||||
void
|
||||
wxTopLevelWindowGTK::WXSetInitialFittingClientSize(int flags, wxSizer* sizer)
|
||||
{
|
||||
// In any case, update the size immediately.
|
||||
wxTopLevelWindowBase::WXSetInitialFittingClientSize(flags);
|
||||
wxTopLevelWindowBase::WXSetInitialFittingClientSize(flags, sizer);
|
||||
|
||||
// But if we're not shown yet, the fitting size may be wrong because GTK
|
||||
// style cache hasn't been updated yet and we need to do it again when the
|
||||
|
Reference in New Issue
Block a user