(define-guarantee fix-layout "a <fix-layout>")
+(define-method gtk-object-destroy-callback ((layout <fix-layout>))
+ (call-next-method layout)
+ (let ((drawing (fix-layout-drawing layout)))
+ (if drawing (fix-drawing-remove-widget! drawing layout))))
+
(define-integrable (allocate-color! layout spec)
(let* ((colors (fix-layout-colors layout))
(entry (assoc spec colors)))
;; they were added.
(reverse-children define standard initial-value '()))
+(define-method gtk-object-destroy-callback ((container <gtk-container>))
+ (call-next-method container)
+ (for-each gtk-object-destroy (gtk-container-reverse-children container)))
+
(define-guarantee gtk-container "a <gtk-container>")
(define (gtk-container-children container)
(import (gtk pango)
make-pango-layout pango-rectangle pangos->pixels pixels->pangos)
(import (gtk gtk-object)
- parse-gdkcolor set-gtk-object-destroy-callback!)
+ parse-gdkcolor
+ set-gtk-object-destroy-callback!
+ gtk-object-destroy-callback)
(export (gtk)
<fix-layout> fix-layout? make-fix-layout set-fix-layout-size!