Fix OS X build.
[dcpomatic.git] / src / wx / key_dialog.cc
index 6133e85834a350ea8514f335379082c1891a27ed..2062a2341aa060f75aa4fac62b029b880b4ae487 100644 (file)
 
 #include "key_dialog.h"
 #include "wx_util.h"
+#include <iostream>
 
 using std::cout;
 
 KeyDialog::KeyDialog (wxWindow* parent, dcp::Key key)
-       : TableDialog (parent, _("Key"), 3, true)
+       : TableDialog (parent, _("Key"), 3, 1, true)
 {
        add (_("Key"), true);
 
@@ -41,7 +42,7 @@ KeyDialog::KeyDialog (wxWindow* parent, dcp::Key key)
 
         validator.SetIncludes (list);
 
-       _key = add (new wxTextCtrl (this, wxID_ANY, _(""), wxDefaultPosition, size, 0, validator));
+       _key = add (new wxTextCtrl (this, wxID_ANY, wxT (""), wxDefaultPosition, size, 0, validator));
        _key->SetValue (std_to_wx (key.hex ()));
        _key->SetMaxLength (32);