mirror of
https://github.com/pebble-dev/clay.git
synced 2026-09-05 08:37:43 -04:00
Use new init method in test app
This commit is contained in:
@@ -21,7 +21,8 @@
|
|||||||
"aplite",
|
"aplite",
|
||||||
"basalt",
|
"basalt",
|
||||||
"chalk",
|
"chalk",
|
||||||
"diorite"
|
"diorite",
|
||||||
|
"emery"
|
||||||
],
|
],
|
||||||
"watchapp": {
|
"watchapp": {
|
||||||
"watchface": false
|
"watchface": false
|
||||||
|
|||||||
@@ -28,12 +28,11 @@ static void prv_window_load(Window *window) {
|
|||||||
|
|
||||||
static void prv_init(void) {
|
static void prv_init(void) {
|
||||||
|
|
||||||
const ClayCallbacks clay_callbacks = (ClayCallbacks) {
|
const ClayCallbacks clay_callbacks = {
|
||||||
.settings_updated = prv_clay_updated_handler,
|
.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();
|
s_window = window_create();
|
||||||
window_set_window_handlers(s_window, (WindowHandlers) {
|
window_set_window_handlers(s_window, (WindowHandlers) {
|
||||||
|
|||||||
Reference in New Issue
Block a user