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

Unified Diff: lily/key-performer.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/key-engraver.cc ('k') | lily/kievan-ligature-engraver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/key-performer.cc
diff --git a/lily/key-performer.cc b/lily/key-performer.cc
index 06666ac53257083095af1323b62df7ec531d0dfa..568357573de7626e90136e4a15731854883b2c94 100644
--- a/lily/key-performer.cc
+++ b/lily/key-performer.cc
@@ -98,7 +98,6 @@ Key_performer::stop_translation_timestep ()
}
}
-IMPLEMENT_TRANSLATOR_LISTENER (Key_performer, key_change);
void
Key_performer::listen_key_change (Stream_event *ev)
{
@@ -106,6 +105,12 @@ Key_performer::listen_key_change (Stream_event *ev)
key_ev_ = ev;
}
+void
+Key_performer::boot ()
+{
+ ADD_LISTENER (Key_performer, key_change);
+}
+
ADD_TRANSLATOR (Key_performer,
/* doc */
"",
« no previous file with comments | « lily/key-engraver.cc ('k') | lily/kievan-ligature-engraver.cc » ('j') | no next file with comments »

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