Make recently added wxRibbonPage::GetPanelCount() const

Closes #24333.

Closes #24334.
This commit is contained in:
Blake Madden 2024-02-16 12:12:07 -05:00 committed by Vadim Zeitlin
parent 63a40637eb
commit 7150e6ecb3
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ public:
wxRibbonPanel* GetPanel(int n); wxRibbonPanel* GetPanel(int n);
wxRibbonPanel* GetPanelById(wxWindowID id); wxRibbonPanel* GetPanelById(wxWindowID id);
size_t GetPanelCount(); size_t GetPanelCount() const;
protected: protected:
virtual wxSize DoGetBestSize() const override; virtual wxSize DoGetBestSize() const override;

View file

@ -1137,7 +1137,7 @@ wxRibbonPanel* wxRibbonPage::GetPanelById(wxWindowID id)
return nullptr; return nullptr;
} }
size_t wxRibbonPage::GetPanelCount() size_t wxRibbonPage::GetPanelCount() const
{ {
size_t panelCount = 0; size_t panelCount = 0;
for ( wxWindowList::compatibility_iterator node = GetChildren().GetFirst(); for ( wxWindowList::compatibility_iterator node = GetChildren().GetFirst();