Move the LimitedSplitter constructor into the .cc file.
authorCarl Hetherington <cth@carlh.net>
Tue, 20 Oct 2020 15:03:08 +0000 (17:03 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 20 Oct 2020 15:03:08 +0000 (17:03 +0200)
src/wx/content_panel.cc
src/wx/content_panel.h

index 0fd21ff8696b8aeb4bc7b342b1454f56bc18f29e..8b6b02316bee43c10adfcb29b2fc6dca50d57b51 100644 (file)
@@ -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)
 {
index ab11a894b95f3dd1e09b7da22239f91154f2646d..52a7e9f3c2bab045243171d54635169de478545d 100644 (file)
@@ -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)
        {