Mercurial > molko
comparison examples/example-notify/example-notify.c @ 465:01f5580e43d1
core: panic -> mlk_panic
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 27 Feb 2023 10:03:52 +0100 |
parents | 5729efd23286 |
children | 0d6206cee6b9 |
comparison
equal
deleted
inserted
replaced
464:b6b1162dafa3 | 465:01f5580e43d1 |
---|---|
50 | 50 |
51 static void | 51 static void |
52 init(void) | 52 init(void) |
53 { | 53 { |
54 if (mlk_core_init("fr.malikania", "example-notify") < 0 || ui_init() < 0) | 54 if (mlk_core_init("fr.malikania", "example-notify") < 0 || ui_init() < 0) |
55 panic(); | 55 mlk_panic(); |
56 if (window_open("Example - Notify", W, H) < 0) | 56 if (window_open("Example - Notify", W, H) < 0) |
57 panic(); | 57 mlk_panic(); |
58 if (mlk_image_openmem(&icon, assets_images_sword, sizeof (assets_images_sword)) < 0) | 58 if (mlk_image_openmem(&icon, assets_images_sword, sizeof (assets_images_sword)) < 0) |
59 panic(); | 59 mlk_panic(); |
60 } | 60 } |
61 | 61 |
62 static void | 62 static void |
63 handle(struct state *st, const union mlk_event *ev) | 63 handle(struct state *st, const union mlk_event *ev) |
64 { | 64 { |