]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/context-property.cc
* lily/global-context-scheme.cc: Separated ly:run-translator into
[lilypond.git] / lily / context-property.cc
index 2fc887300d15cb49acee7e9ebc291e6946e519e4..502fc92f11a3c3ef8902999eb7ad9022744c3825 100644 (file)
@@ -4,16 +4,18 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2004--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "context.hh"
 #include "engraver.hh"
+#include "international.hh"
 #include "item.hh"
 #include "main.hh"
+#include "paper-column.hh"
+#include "simple-closure.hh"
 #include "spanner.hh"
 #include "warn.hh"
-#include "paper-column.hh"
 
 SCM
 lookup_nested_property (SCM alist,
@@ -136,9 +138,10 @@ execute_general_pushpop_property (Context *context,
       bool ok = true;
       if (!scm_is_pair (scm_cdr (grob_property_path)))
        {
-         ok = !ly_is_procedure (new_value)
-           && type_check_assignment (symbol, new_value,
-                                     ly_symbol2scm ("backend-type?"));
+         if (!ly_is_procedure (new_value)
+             && !is_simple_closure (new_value))
+           ok = type_check_assignment (symbol, new_value,
+                                       ly_symbol2scm ("backend-type?"));
 
          /*
            tack onto alist.  We can use set_car, since