add reload

This commit is contained in:
Nishi 2025-12-28 17:29:00 +09:00
commit ef89c2dac9
Signed by: nishi
GPG key ID: 27EF69B208EB9343
11 changed files with 283 additions and 121 deletions

View file

@ -54,7 +54,7 @@ static void tick(MwWidget handle, void* user, void* client) {
free(children);
}
void module(MwWidget box, xl_node_t* node) {
MwWidget module(MwWidget box, xl_node_t* node) {
MwWidget b = MwVaCreateWidget(MwBoxClass, "time", box, 0, 0, 0, 0,
MwNfixedSize, 64,
MwNbackground, "#bebdb2",
@ -80,4 +80,6 @@ void module(MwWidget box, xl_node_t* node) {
MwAddUserHandler(b, MwNtickHandler, tick, NULL);
MwAddTickList(b);
return b;
}