wlt: fix shl_hook API changes
authorDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 24 Jan 2013 19:17:26 +0000 (20:17 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 24 Jan 2013 19:17:26 +0000 (20:17 +0100)
We changed the hook_add() API but forgot to fix WLT to use the new API.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/wlt_terminal.c
src/wlt_toolkit.c

index 1588285..f9891bb 100644 (file)
 #include <xkbcommon/xkbcommon.h>
 #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"
index 0aa0a97..b1679fb 100644 (file)
@@ -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,