summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-10-20 17:03:08 +0200
committerCarl Hetherington <cth@carlh.net>2020-10-20 17:03:08 +0200
commited94e34207c9d8dbd495ca4b0ef468b79126f26a (patch)
tree6e6aac753b6e950db49737856e215603c97d9b5b
parent15723e1ba0574d4c62458321e9b6d64236e7e429 (diff)
Move the LimitedSplitter constructor into the .cc file.
-rw-r--r--src/wx/content_panel.cc10
-rw-r--r--src/wx/content_panel.h9
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)
{