diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/content_panel.cc | 10 | ||||
| -rw-r--r-- | 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) { |
