summaryrefslogtreecommitdiff
path: root/src/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout.c')
-rw-r--r--src/layout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout.c b/src/layout.c
index f1a1490..1c341b6 100644
--- a/src/layout.c
+++ b/src/layout.c
@@ -13,7 +13,7 @@
#include <stdio.h>
#include "layout.h"
-#include "dom/event.h"
+#include "dom/watcher.h"
#include "util/dom-str.h"
@@ -62,7 +62,7 @@ nslayout_error nslayout_layout_create(
l->pw = pw;
/* TODO: error handling */
- nsl_dom_event_layout_init(l);
+ nsl_dom_watcher_add_for_layout(l);
*layout = l;
return NSLAYOUT_OK;
@@ -77,7 +77,7 @@ nslayout_error nslayout_layout_destroy(
/* TODO: free/unref the stuff we own in the layout */
/* TODO: error handling */
- nsl_dom_event_layout_fini(layout);
+ nsl_dom_watcher_remove_for_layout(layout);
free(layout);
return NSLAYOUT_OK;