Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1973)

Unified Diff: lily/key-engraver.cc

Issue 294650043: Move translator initializations to X::boot () (Closed)
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lily/keep-alive-together-engraver.cc ('k') | lily/key-performer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/key-engraver.cc
diff --git a/lily/key-engraver.cc b/lily/key-engraver.cc
index 971f55317295e8a56387a6f508dc8a41f20cd96a..635f293120c4c3bac29327788536ffb0549f2965 100644
--- a/lily/key-engraver.cc
+++ b/lily/key-engraver.cc
@@ -120,7 +120,6 @@ Key_engraver::create_key (bool is_default)
}
}
-IMPLEMENT_TRANSLATOR_LISTENER (Key_engraver, key_change);
void
Key_engraver::listen_key_change (Stream_event *ev)
{
@@ -212,8 +211,14 @@ Key_engraver::initialize ()
context ()->set_property ("tonic", p.smobbed_copy ());
}
-ADD_ACKNOWLEDGER (Key_engraver, clef);
-ADD_ACKNOWLEDGER (Key_engraver, bar_line);
+
+void
+Key_engraver::boot ()
+{
+ ADD_LISTENER (Key_engraver, key_change);
+ ADD_ACKNOWLEDGER (Key_engraver, clef);
+ ADD_ACKNOWLEDGER (Key_engraver, bar_line);
+}
ADD_TRANSLATOR (Key_engraver,
/* doc */
« no previous file with comments | « lily/keep-alive-together-engraver.cc ('k') | lily/key-performer.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b