application/application.c

Fri, 11 Dec 2020 11:46:19 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 11 Dec 2020 11:46:19 +0100
changeset 3
c04433993fbb
parent 2
ea89bbb0c4c8
permissions
-rw-r--r--

add drawingarea and textarea group

0
804d8803eade add existing toolkit source
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
1
804d8803eade add existing toolkit source
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
2
804d8803eade add existing toolkit source
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
3 #include "application.h"
804d8803eade add existing toolkit source
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
4
804d8803eade add existing toolkit source
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
5 #include <stdio.h>
804d8803eade add existing toolkit source
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
6 #include <stdlib.h>
804d8803eade add existing toolkit source
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
7 #include <string.h>
804d8803eade add existing toolkit source
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
8
2
ea89bbb0c4c8 toolkit update
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 0
diff changeset
9 #include "menu.h"
ea89bbb0c4c8 toolkit update
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 0
diff changeset
10 #include "window.h"
ea89bbb0c4c8 toolkit update
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 0
diff changeset
11
0
804d8803eade add existing toolkit source
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
12 void application_startup(UiEvent *event, void *data) {
2
ea89bbb0c4c8 toolkit update
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 0
diff changeset
13 menu_init(); // init global menu/toolbar
0
804d8803eade add existing toolkit source
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
14
2
ea89bbb0c4c8 toolkit update
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 0
diff changeset
15 UiObject *win = window_create();
0
804d8803eade add existing toolkit source
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
16 ui_show(win);
804d8803eade add existing toolkit source
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
17 }

mercurial