X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftry_unmount_dialog.cc;h=ddfaec5c09f60470d58a8f924f9ab26952c208c0;hb=28dc02d0b3759f37f66fed9a5f7e35d1c7c61aeb;hp=ffa4af535b7271966db5d38c5616052e48b33196;hpb=39fb8198febde1937019db1c300ec363aab5aa56;p=dcpomatic.git diff --git a/src/wx/try_unmount_dialog.cc b/src/wx/try_unmount_dialog.cc index ffa4af535..ddfaec5c0 100644 --- a/src/wx/try_unmount_dialog.cc +++ b/src/wx/try_unmount_dialog.cc @@ -19,22 +19,29 @@ */ +#include "static_text.h" #include "try_unmount_dialog.h" #include "wx_util.h" -#include "static_text.h" +#include +LIBDCP_DISABLE_WARNINGS #include +LIBDCP_ENABLE_WARNINGS + + +static int constexpr width = 300; TryUnmountDialog::TryUnmountDialog (wxWindow* parent, wxString description) : wxDialog (parent, wxID_ANY, _("DCP-o-matic Disk Writer")) { auto sizer = new wxBoxSizer (wxVERTICAL); - auto text = new StaticText (this, wxEmptyString); + auto text = new StaticText (this, wxEmptyString, wxDefaultPosition, wxSize(width, -1)); sizer->Add (text, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER); text->SetLabelMarkup ( wxString::Format(_("The drive %s is mounted.\n\nIt must be unmounted before DCP-o-matic can write to it.\n\nShould DCP-o-matic try to unmount it now?"), description) ); + text->Wrap(width); auto buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL); if (buttons) {