From ed94e34207c9d8dbd495ca4b0ef468b79126f26a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 20 Oct 2020 17:03:08 +0200 Subject: [PATCH] Move the LimitedSplitter constructor into the .cc file. --- src/wx/content_panel.cc | 10 ++++++++++ src/wx/content_panel.h | 9 +-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index 0fd21ff86..8b6b02316 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -801,6 +801,16 @@ ContentPanel::panels () const } +LimitedSplitter::LimitedSplitter (wxWindow* parent) + : wxSplitterWindow (parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_NOBORDER | wxSP_3DSASH | wxSP_LIVE_UPDATE) +{ + /* This value doesn't really mean much but we just want to stop double-click on the + divider from shrinking the bottom panel (#1601). + */ + SetMinimumPaneSize (64); +} + + void LimitedSplitter::first_shown (wxWindow* top, wxWindow* bottom) { diff --git a/src/wx/content_panel.h b/src/wx/content_panel.h index ab11a894b..52a7e9f3c 100644 --- a/src/wx/content_panel.h +++ b/src/wx/content_panel.h @@ -45,14 +45,7 @@ class FilmViewer; class LimitedSplitter : public wxSplitterWindow { public: - LimitedSplitter (wxWindow* parent) - : wxSplitterWindow (parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_NOBORDER | wxSP_3DSASH | wxSP_LIVE_UPDATE) - { - /* This value doesn't really mean much but we just want to stop double-click on the - divider from shrinking the bottom panel (#1601). - */ - SetMinimumPaneSize (64); - } + LimitedSplitter (wxWindow* parent); bool OnSashPositionChange (int new_position) { -- 2.30.2