projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git.carlh.net/home/carl/git/dcpomatic
[dcpomatic.git]
/
src
/
wx
/
name_format_editor.cc
diff --git
a/src/wx/name_format_editor.cc
b/src/wx/name_format_editor.cc
index 160a554c01d3289216f057a27b0dfd7e51c9f1c0..4a93edb1841c3b690653efc21940b6ec41d82757 100644
(file)
--- a/
src/wx/name_format_editor.cc
+++ b/
src/wx/name_format_editor.cc
@@
-47,7
+47,7
@@
NameFormatEditor::NameFormatEditor (wxWindow* parent, dcp::NameFormat name, dcp:
}
_specification->SetValue (std_to_wx (_name.specification ()));
}
_specification->SetValue (std_to_wx (_name.specification ()));
- _specification->Bind (wxEVT_
COMMAND_TEXT_UPDATED
, boost::bind (&NameFormatEditor::changed, this));
+ _specification->Bind (wxEVT_
TEXT
, boost::bind (&NameFormatEditor::changed, this));
update_example ();
}
update_example ();
}
@@
-64,7
+64,7
@@
NameFormatEditor::update_example ()
{
_name.set_specification (wx_to_std (_specification->GetValue ()));
{
_name.set_specification (wx_to_std (_specification->GetValue ()));
- wxString example = wxString::Format (_("e.g. %s"),
_name.get (_examples, _suffix
));
+ wxString example = wxString::Format (_("e.g. %s"),
std_to_wx (_name.get (_examples, _suffix)
));
wxString wrapped;
for (size_t i = 0; i < example.Length(); ++i) {
if (i > 0 && (i % 40) == 0) {
wxString wrapped;
for (size_t i = 0; i < example.Length(); ++i) {
if (i > 0 && (i % 40) == 0) {