Add close button to timeline dialog on Linux.
authorCarl Hetherington <cth@carlh.net>
Sun, 12 Jul 2015 21:49:23 +0000 (22:49 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 12 Jul 2015 21:49:23 +0000 (22:49 +0100)
src/wx/timeline_dialog.cc

index ab2162b3964181ae65cf0ee5b7be4695d019855d..e4e83850af3d59c8078b645595460b54132d457e 100644 (file)
@@ -45,6 +45,13 @@ TimelineDialog::TimelineDialog (ContentPanel* cp, shared_ptr<Film> 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);