Mercurial > molko
comparison examples/example-notify/example-notify.c @ 485:3ff1fe64d0cd
core: window -> mlk_window
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 28 Feb 2023 08:40:35 +0100 |
parents | ca30ff96bbe0 |
children | d6757c30658e |
comparison
equal
deleted
inserted
replaced
484:f14b8290b3ce | 485:3ff1fe64d0cd |
---|---|
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 mlk_panic(); | 55 mlk_panic(); |
56 if (window_open("Example - Notify", W, H) < 0) | 56 if (mlk_window_open("Example - Notify", W, H) < 0) |
57 mlk_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 mlk_panic(); | 59 mlk_panic(); |
60 } | 60 } |
61 | 61 |
112 } | 112 } |
113 | 113 |
114 static void | 114 static void |
115 quit(void) | 115 quit(void) |
116 { | 116 { |
117 window_finish(); | 117 mlk_window_finish(); |
118 ui_finish(); | 118 ui_finish(); |
119 mlk_core_finish(); | 119 mlk_core_finish(); |
120 } | 120 } |
121 | 121 |
122 int | 122 int |