From 6a7cbd8fc06e41eb8fa5212394123de7d65159dd Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Thu, 24 Jan 2013 20:17:26 +0100 Subject: [PATCH] wlt: fix shl_hook API changes We changed the hook_add() API but forgot to fix WLT to use the new API. Signed-off-by: David Herrmann --- src/wlt_terminal.c | 2 +- src/wlt_toolkit.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wlt_terminal.c b/src/wlt_terminal.c index 1588285..f9891bb 100644 --- a/src/wlt_terminal.c +++ b/src/wlt_terminal.c @@ -37,10 +37,10 @@ #include #include "conf.h" #include "eloop.h" +#include "font.h" #include "log.h" #include "pty.h" #include "shl_misc.h" -#include "text.h" #include "tsm_unicode.h" #include "tsm_screen.h" #include "tsm_vte.h" diff --git a/src/wlt_toolkit.c b/src/wlt_toolkit.c index 0aa0a97..b1679fb 100644 --- a/src/wlt_toolkit.c +++ b/src/wlt_toolkit.c @@ -1230,7 +1230,7 @@ int wlt_display_register_cb(struct wlt_display *disp, if (!disp) return -EINVAL; - return shl_hook_add_cast(disp->listeners, cb, data); + return shl_hook_add_cast(disp->listeners, cb, data, false); } void wlt_display_unregister_cb(struct wlt_display *disp,