Changeset 3583ffb in mainline for uspace/lib/ui/src/wdecor.c
- Timestamp:
- 2020-11-08T19:51:04Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f93e4e3
- Parents:
- 8c772c4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/wdecor.c
r8c772c4 r3583ffb 46 46 #include <ui/wdecor.h> 47 47 #include "../private/resource.h" 48 #include "../private/ui.h"49 48 #include "../private/wdecor.h" 50 49 … … 62 61 * @return EOK on success, ENOMEM if out of memory 63 62 */ 64 errno_t ui_wdecor_create(ui_ t *ui, const char *caption,63 errno_t ui_wdecor_create(ui_resource_t *resource, const char *caption, 65 64 ui_wdecor_t **rwdecor) 66 65 { … … 78 77 } 79 78 80 rc = ui_pbutton_create( ui, "X", &wdecor->btn_close);79 rc = ui_pbutton_create(resource, "X", &wdecor->btn_close); 81 80 if (rc != EOK) { 82 81 free(wdecor->caption); … … 88 87 (void *)wdecor); 89 88 90 wdecor->res = ui->resource;89 wdecor->res = resource; 91 90 wdecor->active = true; 92 91 *rwdecor = wdecor;
Note:
See TracChangeset
for help on using the changeset viewer.