8 |
8 |
9 #include <stdio.h> |
9 #include <stdio.h> |
10 #include <stdlib.h> |
10 #include <stdlib.h> |
11 |
11 |
12 UIWIDGET document_browser_create(UiObject *obj) { |
12 UIWIDGET document_browser_create(UiObject *obj) { |
13 ui_layout_width(obj, 250); |
13 ui_layout_width(obj, 220); |
14 UIWIDGET browser = ui_drawingarea(obj, browser_draw, NULL); |
14 UIWIDGET browser = ui_drawingarea(obj, browser_draw, NULL); |
15 return browser; |
15 return browser; |
16 } |
16 } |
17 |
17 |
18 void browser_draw(UiEvent *event, UiGraphics *g, void *udata) { |
18 void browser_draw(UiEvent *event, UiGraphics *g, void *udata) { |