]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/stanza-number-engraver.cc
* lily/main.cc (main_with_guile): call lilypond-main
[lilypond.git] / lily / stanza-number-engraver.cc
index 1977462635525155233e57fb00d357c3101f45e2..96696bc7c14ef0cc5e1f2f1a6ef2b7a549507873 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,12 +45,12 @@ Stanza_number_engraver::process_music ()
 {
   SCM stanza = get_property ("stanza");
   
-  if (gh_string_p (stanza) && stanza != last_stanza_)
+  if (is_string (stanza) && stanza != last_stanza_)
     {
       last_stanza_ = stanza;
       
-      text_ = new Item (get_property ("StanzaNumber"));
-      text_->set_grob_property ("text", stanza);
+      text_ = make_item ("StanzaNumber");
+      text_->set_property ("text", stanza);
       announce_grob (text_, SCM_EOL);
     }
 }
@@ -77,7 +77,7 @@ Stanza_number_engraver::stop_translation_timestep ()
 }
 
 
-ENTER_DESCRIPTION(Stanza_number_engraver,
+ENTER_DESCRIPTION (Stanza_number_engraver,
 /* descr */       "",
 /* creats*/       "StanzaNumber",
 /* accepts */     "",