From 3930702bd2c006976dde5a09b71ba30416d825c2 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Wed, 27 Sep 2023 23:20:05 +0100 Subject: [PATCH] LibGUI: Make `Statusbar::set_segment_count()` public This allows the GML compiler to handle the `segment_count` property and allows the status bar segment count to be changed after construction. --- Userland/Libraries/LibGUI/Statusbar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGUI/Statusbar.h b/Userland/Libraries/LibGUI/Statusbar.h index fa3a8d3f99..548825f982 100644 --- a/Userland/Libraries/LibGUI/Statusbar.h +++ b/Userland/Libraries/LibGUI/Statusbar.h @@ -63,6 +63,7 @@ public: }; Segment& segment(size_t index) { return m_segments.at(index); } + void set_segment_count(size_t); protected: explicit Statusbar(int segment_count = 1); @@ -70,7 +71,6 @@ protected: virtual void resize_event(ResizeEvent&) override; private: - void set_segment_count(size_t); size_t segment_count() const { return m_segments.size(); } void update_segment(size_t); NonnullRefPtr create_segment();