]> git.donarmstrong.com Git - lilypond.git/commitdiff
Eliminate grob::x-parent-width
authorDavid Kastrup <dak@gnu.org>
Thu, 18 Apr 2013 15:50:41 +0000 (17:50 +0200)
committerDavid Kastrup <dak@gnu.org>
Tue, 23 Apr 2013 06:21:47 +0000 (08:21 +0200)
scm/define-grobs.scm
scm/output-lib.scm

index 00ee2cf8e45ce1986aea1599e73597426db897ab..6a1a5ce7f814945a1584b2c91058c96ccbc1f0d2 100644 (file)
 
     (SpanBarStub
      . (
-        (X-extent . ,grob::x-parent-width)
+        (X-extent . ,(grob::inherit-parent-property
+                      X 'X-extent))
        (extra-spacing-height . ,pure-from-neighbor-interface::extra-spacing-height)
        ; we want this to be ignored, so empty, but the extra spacing height
        ; should preserve the span bar's presence for horizontal spacing
index 1d094172df7cfb17336ec3eae0e74830a63fab3c..3348ca470df0011e8140ad15b5575254994f136a 100644 (file)
@@ -26,9 +26,6 @@
 (define-public (grob::is-live? grob)
   (pair? (ly:grob-basic-properties grob)))
 
-(define-public (grob::x-parent-width grob)
-  (ly:grob-property (ly:grob-parent grob X) 'X-extent))
-
 (define-public (make-stencil-boxer thickness padding callback)
   "Return function that adds a box around the grob passed as argument."
   (lambda (grob)