]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 3581: Allow overriding Translator::{connect_to,disconnect_from}_context
authorHeikki Tauriainen <g034737@welho.com>
Sat, 19 Oct 2013 07:01:06 +0000 (10:01 +0300)
committerDavid Kastrup <dak@gnu.org>
Sat, 19 Oct 2013 09:19:06 +0000 (11:19 +0200)
This is needed to make it easier to implement a custom translator that will
listen to SetProperty events.

Signed-off-by: David Kastrup <dak@gnu.org>
lily/include/translator.hh

index 41e2d9745bd2fcf71c66a82e6aebd3f972fe6711..be6781eb030aec34b5d41cb1077b06347e0be71c 100644 (file)
@@ -136,9 +136,8 @@ public:
   virtual void initialize ();
   virtual void finalize ();
 
-  /* should maybe be virtual */
-  void connect_to_context (Context *c);
-  void disconnect_from_context (Context *c);
+  virtual void connect_to_context (Context *c);
+  virtual void disconnect_from_context (Context *c);
 
   void stop_translation_timestep ();
   void start_translation_timestep ();