From 1aff0378f5ce1b75a57bb1ca20c86fb6c57fef80 Mon Sep 17 00:00:00 2001 From: Keegan Date: Wed, 26 Oct 2016 21:24:04 -0700 Subject: [PATCH] Use new init method in test app --- clay-test/package.json | 3 ++- clay-test/src/clay-test.c | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clay-test/package.json b/clay-test/package.json index 8401a6b..375f173 100644 --- a/clay-test/package.json +++ b/clay-test/package.json @@ -21,7 +21,8 @@ "aplite", "basalt", "chalk", - "diorite" + "diorite", + "emery" ], "watchapp": { "watchface": false diff --git a/clay-test/src/clay-test.c b/clay-test/src/clay-test.c index 4a1b0b7..7d6dced 100644 --- a/clay-test/src/clay-test.c +++ b/clay-test/src/clay-test.c @@ -28,12 +28,11 @@ static void prv_window_load(Window *window) { static void prv_init(void) { - const ClayCallbacks clay_callbacks = (ClayCallbacks) { + const ClayCallbacks clay_callbacks = { .settings_updated = prv_clay_updated_handler, }; - clay_register_callbacks(&clay_callbacks, NULL); - clay_init(CLAY_INBOX_SIZE); + clay_init(CLAY_INBOX_SIZE, &clay_callbacks, NULL); s_window = window_create(); window_set_window_handlers(s_window, (WindowHandlers) {