]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/group-interface.cc
2003 -> 2004
[lilypond.git] / lily / group-interface.cc
index 3734882ceed0a855441d2183069c98ab9e091cd1..a62dde9a9c9f09fdea31a55f6e61761513629cb4 100644 (file)
@@ -3,30 +3,34 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 1999--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
   
  */
 #include "group-interface.hh"
 #include "grob.hh"
 
-
 void
-Group_interface::add_thing (Grob*me, String name, SCM s)
+Group_interface::add_thing (Grob*me, SCM sym, SCM thing)
 {
-  me->set_grob_property (name.ch_C (),
-                           gh_cons (s, me->get_grob_property (name.ch_C ())));
+  me->add_to_list_property (sym, thing);
 }
 
 
+void
+Group_interface::add_thing (Grob*me, String name, SCM thing)
+{
+  add_thing (me, ly_symbol2scm (name.to_str0 ()), thing);
+}
+
 int
 Group_interface::count (Grob *me, String name)
 {
-  return scm_ilength (me->get_grob_property (name.ch_C ()));
+  return scm_ilength (me->get_grob_property (name.to_str0 ()));
 }
 
 
 void
-Pointer_group_interface::add_element (Grob*me, String name, Grob*p) 
+Pointer_group_interface::add_grob (Grob*me, SCM name, Grob*p) 
 {
   Group_interface::add_thing (me, name, p->self_scm ());
 }