summaryrefslogtreecommitdiff
path: root/src/wx/content_panel.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-07 21:37:35 +0200
committerCarl Hetherington <cth@carlh.net>2020-08-07 21:37:35 +0200
commit563fc75855b9649cf135cf137cc1b0c43ebc8286 (patch)
treefc9862a10f052725b6bd1a1af0101b167c19891b /src/wx/content_panel.h
parentec65767c7b1b8439b2b1414998db9c1f4048c1de (diff)
Fix layout bug where the stuff in the content panel would be completely
hidden in some cases (seen on Linux only, I think). wxDisplay::GetFromWindow sometimes returns -1 (perhaps when multiple monitors are connected) and we have to set the splitter position in this case.
Diffstat (limited to 'src/wx/content_panel.h')
-rw-r--r--src/wx/content_panel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wx/content_panel.h b/src/wx/content_panel.h
index 13393f632..a4a172a7f 100644
--- a/src/wx/content_panel.h
+++ b/src/wx/content_panel.h
@@ -58,6 +58,8 @@ public:
void film_changed (Film::Property p);
void film_content_changed (int p);
+ void first_shown ();
+
wxWindow* window () const {
return _splitter;
}
@@ -101,6 +103,7 @@ private:
std::list<ContentSubPanel *> panels () const;
wxSplitterWindow* _splitter;
+ wxPanel* _top_panel;
wxNotebook* _notebook;
wxListCtrl* _content;
wxButton* _add_file;