(apply format (cons (current-error-port) (cons string rest)))
(force-output (current-error-port)))))
+
+;; Hmm, actually, the only vars really needed by output-gnome are
+;; * (root (canvas go))
+;; * location
+;; * item-locations
+;; * pixels-per-unit
+;; * text-items
+;;
+;; so this class could be split in two parts / records?
(define-class <gnome-outputter> ()
(page-stencils ;;#:init-value '#()
#:init-keyword #:page-stencils #:accessor page-stencils)
(affine-relative item output-scale 0 0 output-scale 0 0)
(gtype-instance-signal-connect item 'event item-event)
- (if location
- (hashq-set! item-locations item location))
+ (if (location go)
+ (hashq-set! (item-locations go) item (location go)))
item)
#f)))
;; origin -- bad name
(define (define-origin file line col)
;; ughr, why is this not passed as [part of] stencil object
- (set! location (if (procedure? point-and-click)
- ;; duh, only silly string append
- ;; (point-and-click line col file)
- (list line col file)
- #f)))
+ (set! (location go) (if (procedure? point-and-click)
+ ;; duh, only silly string append
+ ;; (point-and-click line col file)
+ (list line col file)
+ #f)))