From ece5cca1776fc6283d3078a80ea9f6bb8c987231 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 12 Jul 2015 22:49:23 +0100 Subject: [PATCH] Add close button to timeline dialog on Linux. --- src/wx/timeline_dialog.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/wx/timeline_dialog.cc b/src/wx/timeline_dialog.cc index ab2162b39..e4e83850a 100644 --- a/src/wx/timeline_dialog.cc +++ b/src/wx/timeline_dialog.cc @@ -45,6 +45,13 @@ TimelineDialog::TimelineDialog (ContentPanel* cp, shared_ptr film) sizer->Add (controls, 0, wxALL, 12); sizer->Add (&_timeline, 1, wxEXPAND | wxALL, 12); +#ifdef DCPOMATIC_LINUX + wxSizer* buttons = CreateSeparatedButtonSizer (wxCLOSE); + if (buttons) { + sizer->Add (buttons, wxSizerFlags().Expand().DoubleBorder()); + } +#endif + SetSizer (sizer); sizer->Layout (); sizer->SetSizeHints (this); -- 2.30.2