application/main.c

changeset 982
9102a53c5385
parent 981
1d47e71f26b6
child 985
93f07ccfd997
equal deleted inserted replaced
981:1d47e71f26b6 982:9102a53c5385
1288 1288
1289 #endif 1289 #endif
1290 1290
1291 #ifdef UI_SERVER 1291 #ifdef UI_SERVER
1292 1292
1293 void main(int argc, char **argv) { 1293 void application_startup(UiEvent *event, void *userdata) {
1294 1294 UiObject *obj = ui_window("Test", NULL);
1295 ui_show(obj);
1296 }
1297
1298 int main(int argc, char **argv) {
1299 ui_init(NULL, 0, NULL);
1300 ui_onstartup(application_startup, NULL);
1301 ui_main();
1302 return 0;
1295 } 1303 }
1296 1304
1297 1305
1298 #endif 1306 #endif

mercurial