X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftweak-engraver.cc;h=b145f3dd4b3113d8d92eda0d75da0d2247a2902e;hb=35725a573e47be7c02c51964641ea534fb88be6b;hp=a851c5a8ef2a4aa7eef369f66a1f4870abc8d1e8;hpb=abbdb46061be5c0a0682059d1f86bf3e44ca5cf3;p=lilypond.git diff --git a/lily/tweak-engraver.cc b/lily/tweak-engraver.cc index a851c5a8ef..b145f3dd4b 100644 --- a/lily/tweak-engraver.cc +++ b/lily/tweak-engraver.cc @@ -1,10 +1,21 @@ /* - tweak-engraver.cc -- implement Tweak_engraver + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 2005--2012 Han-Wen Nienhuys - (c) 2005--2006 Han-Wen Nienhuys + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "engraver.hh" @@ -21,7 +32,7 @@ protected: DECLARE_ACKNOWLEDGER (grob); }; -Tweak_engraver::Tweak_engraver() +Tweak_engraver::Tweak_engraver () { } @@ -31,18 +42,25 @@ Tweak_engraver::acknowledge_grob (Grob_info info) if (Stream_event *ev = info.event_cause ()) { for (SCM s = ev->get_property ("tweaks"); - scm_is_pair (s); s = scm_cdr (s)) - { - info.grob ()->internal_set_property (scm_caar (s), scm_cdar (s)); - } + scm_is_pair (s); s = scm_cdr (s)) + { + info.grob ()->set_property (scm_caar (s), scm_cdar (s)); + } } } ADD_ACKNOWLEDGER (Tweak_engraver, grob); ADD_TRANSLATOR (Tweak_engraver, - /* doc */ "Read the @code{tweaks} property from the originating event, and set properties." , - - /* create */ "", - /* accept */ "", - /* read */ "", - /* write */ ""); + /* doc */ + "Read the @code{tweaks} property from the originating event," + " and set properties.", + + /* create */ + "", + + /* read */ + "", + + /* write */ + "" + );