]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/stanza-number-engraver.cc
(struct Simple_spacer): remove
[lilypond.git] / lily / stanza-number-engraver.cc
index 07fa421aae7e968c6a99521c88a88c8b0d6d0619..8904bdd712cc5b4536a7c1cd51f81509848ea8f9 100644 (file)
@@ -3,7 +3,7 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 2000--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>, Glen Prideaux <glenprideaux@iname.com>
+  (c) 2000--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>, Glen Prideaux <glenprideaux@iname.com>
 
 */
 
@@ -22,7 +22,7 @@ class Stanza_number_engraver : public Engraver
    */
   SCM last_stanza_;
 public:
-  TRANSLATOR_DECLARATIONS(Stanza_number_engraver);
+  TRANSLATOR_DECLARATIONS (Stanza_number_engraver);
   virtual void process_music ();
   virtual void stop_translation_timestep ();
   virtual void acknowledge_grob (Grob_info);
@@ -45,13 +45,13 @@ Stanza_number_engraver::process_music ()
 {
   SCM stanza = get_property ("stanza");
   
-  if (gh_string_p (stanza) && stanza != last_stanza_)
+  if (ly_c_string_p (stanza) && stanza != last_stanza_)
     {
       last_stanza_ = stanza;
       
-      text_ = make_item ("StanzaNumber");
-      text_->set_grob_property ("text", stanza);
-      announce_grob (text_, SCM_EOL);
+      text_ = make_item ("StanzaNumber", SCM_EOL);
+      text_->set_property ("text", stanza);
+      
     }
 }
 
@@ -69,15 +69,11 @@ Stanza_number_engraver::acknowledge_grob (Grob_info inf)
 void
 Stanza_number_engraver::stop_translation_timestep ()
 {
-  if (text_)
-    {
-      typeset_grob (text_);
-      text_ = 0;
-    }
+  text_ = 0;
 }
 
 
-ENTER_DESCRIPTION(Stanza_number_engraver,
+ENTER_DESCRIPTION (Stanza_number_engraver,
 /* descr */       "",
 /* creats*/       "StanzaNumber",
 /* accepts */     "",