X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fclef-engraver.cc;h=00b3c3e55a736ef930d8d048afe30c2d74869df3;hb=887eee27389862497fd4754f24348c1d77c91999;hp=ebeb71a7cbd912a733536afb879b772541078616;hpb=e8d5061834a5a658c5ffd078237e9cd660069a7d;p=lilypond.git diff --git a/lily/clef-engraver.cc b/lily/clef-engraver.cc index ebeb71a7cb..00b3c3e55a 100644 --- a/lily/clef-engraver.cc +++ b/lily/clef-engraver.cc @@ -29,6 +29,7 @@ using namespace std; #include "side-position-interface.hh" #include "translator.icc" +#include "lily-imports.hh" class Clef_engraver : public Engraver { @@ -38,7 +39,7 @@ public: protected: void stop_translation_timestep (); void process_music (); - DECLARE_ACKNOWLEDGER (bar_line); + void acknowledge_bar_line (Grob_info); virtual void derived_mark () const; private: @@ -145,7 +146,7 @@ static void apply_on_children (Context *context, SCM fun) scm_call_1 (fun, context->self_scm ()); for (SCM s = context->children_contexts (); scm_is_pair (s); s = scm_cdr (s)) - apply_on_children (Context::unsmob (scm_car (s)), fun); + apply_on_children (unsmob (scm_car (s)), fun); } void @@ -162,8 +163,7 @@ Clef_engraver::inspect_clef_properties () || !ly_is_equal (transposition, prev_transposition_) || to_boolean (force_clef)) { - apply_on_children (context (), - ly_lily_module_constant ("invalidate-alterations")); + apply_on_children (context (), Lily::invalidate_alterations); set_glyph (); if (scm_is_true (prev_cpos_) || to_boolean (get_property ("firstClef"))) @@ -203,7 +203,12 @@ Clef_engraver::stop_translation_timestep () } } -ADD_ACKNOWLEDGER (Clef_engraver, bar_line); +void +Clef_engraver::boot () +{ + ADD_ACKNOWLEDGER (Clef_engraver, bar_line); +} + ADD_TRANSLATOR (Clef_engraver, /* doc */ "Determine and set reference point for pitches.",