]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/balloon.cc
merge (2nd try -- argh git.el)
[lilypond.git] / lily / balloon.cc
index 2a2594ee92f7be678644dcc5262d6b7afe47aad8..560a2f667586ec4ca0eb2fd51067f9a0bb98d8b4 100644 (file)
@@ -3,10 +3,10 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2004--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
-#include "text-item.hh"
+#include "text-interface.hh"
 #include "grob.hh"
 #include "line-interface.hh"
 #include "lookup.hh"
@@ -28,12 +28,7 @@ Balloon_interface::print (SCM smob)
 {
   Grob *me = unsmob_grob (smob);
 
-  SCM cb = me->get_property ("balloon-original-callback");
-  SCM stil = SCM_EOL;
-
-  if (ly_c_procedure_p (cb))
-    stil = scm_call_1 (cb, smob);
-
+  SCM stil = me->get_property ("original-stencil");
   if (!unsmob_stencil (stil))
     return stil;
 
@@ -59,7 +54,7 @@ Balloon_interface::print (SCM smob)
   SCM chain = Font_interface::text_font_alist_chain (me);
   chain = scm_cons (me->get_property ("balloon-text-props"), chain);
 
-  SCM text = Text_interface::interpret_markup (me->get_layout ()->self_scm (),
+  SCM text = Text_interface::interpret_markup (me->layout ()->self_scm (),
                                               chain, bt);
 
   Stencil *text_stil = unsmob_stencil (text);
@@ -85,5 +80,11 @@ Balloon_interface::print (SCM smob)
 
 ADD_INTERFACE (Balloon_interface, "text-balloon-interface",
               "A collection of routines to put text balloons around an object.",
-              "balloon-padding balloon-text-props balloon-text-offset balloon-text balloon-original-callback");
+
+              /* properties */
+              "balloon-padding "
+              "balloon-text-props "
+              "balloon-text-offset "
+              "balloon-text "
+              "original-stencil ");