diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-12-08 01:11:35 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-12-08 01:11:35 +0000 |
| commit | 8b2a3f31b6b4238d8534549f495e7276174ddfba (patch) | |
| tree | b8c55a3ff05f488044d98871da46a0e4f52f306d /src/wx/key_dialog.cc | |
| parent | 9c1bb2e5ca7c80c4e26b1b2e41159aa171360a94 (diff) | |
Support buttons.
Diffstat (limited to 'src/wx/key_dialog.cc')
| -rw-r--r-- | src/wx/key_dialog.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/key_dialog.cc b/src/wx/key_dialog.cc index 414e61d37..2d8cd4c37 100644 --- a/src/wx/key_dialog.cc +++ b/src/wx/key_dialog.cc @@ -20,6 +20,7 @@ #include "key_dialog.h" #include "wx_util.h" +#include "dcpomatic_button.h" #include <iostream> using std::cout; @@ -47,7 +48,7 @@ KeyDialog::KeyDialog (wxWindow* parent, dcp::Key key) _key->SetValue (std_to_wx (key.hex ())); _key->SetMaxLength (32); - _random = add (new wxButton (this, wxID_ANY, _("Random"))); + _random = add (new Button(this, _("Random"))); _key->Bind (wxEVT_TEXT, boost::bind (&KeyDialog::key_changed, this)); _random->Bind (wxEVT_BUTTON, boost::bind (&KeyDialog::random, this)); |
