mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-27 20:36:33 -04:00
Use new init method in test app
This commit is contained in:
@@ -21,7 +21,8 @@
|
||||
"aplite",
|
||||
"basalt",
|
||||
"chalk",
|
||||
"diorite"
|
||||
"diorite",
|
||||
"emery"
|
||||
],
|
||||
"watchapp": {
|
||||
"watchface": false
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user