- 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 (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 ();