]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/clef.cc
Release: bump Welcome versions.
[lilypond.git] / lily / clef.cc
index f942023c214bfce36464a4a4874c73bb5384fc3a..6f9062190ef46f91b37ffbbc6b99f3cf01dd70f4 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1997--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -28,7 +28,7 @@ MAKE_SCHEME_CALLBACK (Clef, calc_glyph_name, 1);
 SCM
 Clef::calc_glyph_name (SCM smob)
 {
-  Item *s = unsmob_item (smob);
+  Item *s = unsmob<Item> (smob);
   SCM glyph = s->get_property ("glyph");
 
   if (scm_is_string (glyph))
@@ -36,11 +36,11 @@ Clef::calc_glyph_name (SCM smob)
       string str = ly_scm2string (glyph);
 
       if (to_boolean (s->get_property ("non-default"))
-         && s->break_status_dir () != RIGHT
-         && !to_boolean (s->get_property ("full-size-change")))
-       {
-         str += "_change";
-       }
+          && s->break_status_dir () != RIGHT
+          && !to_boolean (s->get_property ("full-size-change")))
+        {
+          str += "_change";
+        }
 
       return ly_string2scm (str);
     }
@@ -53,7 +53,7 @@ MAKE_SCHEME_CALLBACK (Clef, print, 1)
 SCM
 Clef::print (SCM smob)
 {
-  Grob *me = unsmob_grob (smob);
+  Grob *me = unsmob<Grob> (smob);
   SCM glyph_scm = me->get_property ("glyph-name");
   if (!scm_is_string (glyph_scm))
     return SCM_EOL;
@@ -63,16 +63,17 @@ Clef::print (SCM smob)
   Stencil out = fm->find_by_name (glyph);
   if (out.is_empty ())
     me->warning (_f ("clef `%s' not found", glyph.c_str ()));
+
   return out.smobbed_copy ();
 }
 
 ADD_INTERFACE (Clef,
-              "A clef sign.",
-
-              /* properties */
-              "full-size-change "
-              "glyph "
-              "glyph-name "
-              "non-default "
-              );
+               "A clef sign.",
+
+               /* properties */
+               "full-size-change "
+               "glyph "
+               "glyph-name "
+               "non-default "
+              );