-/**
- Generate a clef at the start of a measure. (when you see a Bar,
- ie. a breakpoint)
- */
-void
-Clef_engraver::acknowledge_grob (Grob_info info)
-{
- deprecated_process_music ();
- Item * item =dynamic_cast <Item *> (info.elem_l_);
- if (item)
- {
- if (Bar::has_interface (info.elem_l_)
- && gh_string_p (get_property ("clefGlyph")))
- create_clef ();
-
-
- if (Note_head::has_interface (item)
- || Local_key_item::has_interface (item)
- || Custos::has_interface (item)
- )
- {
- int p = int (Staff_symbol_referencer::position_f (item))
- + gh_scm2int (get_property ("centralCPosition"));
- Staff_symbol_referencer::set_position (item, p);
- }
- else if (Key_item::has_interface (item))
- {
- /*
- Key_item adapts its formatting to make sure that the
- accidentals stay in the upper half of the staff. It needs
- to know c0-pos for this. (?)
- */
-
- item->set_grob_property ("c0-position", get_property ("centralCPosition"));
- }
- }
+ execute_pushpop_property (context (), basic, glyph_sym, SCM_UNDEFINED);
+ execute_pushpop_property (context (), basic, glyph_sym, get_property ("clefGlyph"));