aboutsummaryrefslogtreecommitdiff
path: root/module/vcomponent/util/instance/methods.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-02-23 03:22:04 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2023-02-23 05:40:51 +0100
commit11ebbefb55127eee884a9080ece4aa201ad579c1 (patch)
tree8b7ee9a89f9d901b06e23d186cecea5e8a61327c /module/vcomponent/util/instance/methods.scm
parentStart using (vcomponent create) in tests. (diff)
downloadcalp-11ebbefb55127eee884a9080ece4aa201ad579c1.tar.gz
calp-11ebbefb55127eee884a9080ece4aa201ad579c1.tar.xz
Change child/parent interface for vcomponent.
Diffstat (limited to 'module/vcomponent/util/instance/methods.scm')
-rw-r--r--module/vcomponent/util/instance/methods.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/vcomponent/util/instance/methods.scm b/module/vcomponent/util/instance/methods.scm
index 75510009..fef83958 100644
--- a/module/vcomponent/util/instance/methods.scm
+++ b/module/vcomponent/util/instance/methods.scm
@@ -125,7 +125,7 @@
;;; with the same UID, which is BAD.
(define-method (add-event (this <events>) calendar event)
- (add-child! calendar event)
+ (reparent! calendar event)
(unless (prop event 'UID)
(set! (prop event 'UID) (uuid)))
@@ -184,7 +184,7 @@
;; remove old instance of event from runtime
(remove-event this old-event)
- (remove-child! old-calendar old-event)
+ (abandon! old-calendar old-event)
;; Add new event to runtime,
;; MUST be done after since the two events SHOULD share UID.