- create_grobs ();
- 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"));
- }
- }
+ Item *item = dynamic_cast<Item *> (info.grob ());
+ if (item && scm_is_string (get_property ("clefGlyph")))
+ create_clef ();