Changeset 3583ffb in mainline for uspace/app
- Timestamp:
- 2020-11-08T19:51:04Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f93e4e3
- Parents:
- 8c772c4
- Location:
- uspace/app
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/terminal/terminal.c
r8c772c4 r3583ffb 835 835 836 836 term->gc = ui_window_get_gc(term->window); 837 term->ui_res = ui_window_get_res(term->window); 837 838 838 839 ui_window_set_cb(term->window, &terminal_window_cb, (void *) term); -
uspace/app/terminal/terminal.h
r8c772c4 r3583ffb 57 57 ui_t *ui; 58 58 ui_window_t *window; 59 ui_resource_t *ui_res; 59 60 gfx_context_t *gc; 60 61 -
uspace/app/uidemo/uidemo.c
r8c772c4 r3583ffb 99 99 ui_demo_t demo; 100 100 gfx_rect_t rect; 101 ui_resource_t *ui_res; 101 102 errno_t rc; 102 103 … … 126 127 demo.window = window; 127 128 129 ui_res = ui_window_get_res(window); 130 128 131 rc = ui_fixed_create(&demo.fixed); 129 132 if (rc != EOK) { … … 132 135 } 133 136 134 rc = ui_label_create(ui , "Hello there!", &demo.label);137 rc = ui_label_create(ui_res, "Hello there!", &demo.label); 135 138 if (rc != EOK) { 136 139 printf("Error creating label.\n"); … … 151 154 } 152 155 153 rc = ui_pbutton_create(ui , "Confirm", &demo.pb1);156 rc = ui_pbutton_create(ui_res, "Confirm", &demo.pb1); 154 157 if (rc != EOK) { 155 158 printf("Error creating button.\n"); … … 173 176 } 174 177 175 rc = ui_pbutton_create(ui , "Cancel", &demo.pb2);178 rc = ui_pbutton_create(ui_res, "Cancel", &demo.pb2); 176 179 if (rc != EOK) { 177 180 printf("Error creating button.\n");
Note:
See TracChangeset
for help on using the changeset viewer.