]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/key-engraver.cc
Issue 4965: Create and use Grob::parent_relative
[lilypond.git] / lily / key-engraver.cc
index 635f293120c4c3bac29327788536ffb0549f2965..115902e89db2b789f80e3d257b471c7a75f07143 100644 (file)
@@ -46,9 +46,9 @@ protected:
   void stop_translation_timestep ();
   void process_music ();
 
-  DECLARE_TRANSLATOR_LISTENER (key_change);
-  DECLARE_ACKNOWLEDGER (clef);
-  DECLARE_ACKNOWLEDGER (bar_line);
+  void listen_key_change (Stream_event *);
+  void acknowledge_clef (Grob_info);
+  void acknowledge_bar_line (Grob_info);
 };
 
 void
@@ -117,6 +117,7 @@ Key_engraver::create_key (bool is_default)
     {
       SCM visibility = get_property ("explicitKeySignatureVisibility");
       item_->set_property ("break-visibility", visibility);
+      item_->set_property ("non-default", SCM_BOOL_T);
     }
 }