Changeset c9927c66 in mainline for uspace/lib/ui/src/popup.c
- Timestamp:
- 2021-06-10T13:22:33Z (4 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9e84d2c
- Parents:
- c68c18b9
- git-author:
- Jiri Svoboda <jiri@…> (2021-05-27 17:00:30)
- git-committer:
- jxsvoboda <5887334+jxsvoboda@…> (2021-06-10 13:22:33)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/popup.c
rc68c18b9 rc9927c66 78 78 ui_window_t *window = NULL; 79 79 ui_wnd_params_t wparams; 80 gfx_coord2_t parent_pos; 80 81 errno_t rc; 81 82 … … 83 84 if (popup == NULL) 84 85 return ENOMEM; 86 87 rc = ui_window_get_pos(parent, &parent_pos); 88 if (rc != EOK) 89 goto error; 85 90 86 91 ui_wnd_params_init(&wparams); … … 88 93 wparams.caption = ""; 89 94 wparams.style &= ~ui_wds_decorated; 95 wparams.placement = ui_wnd_place_popup; 96 97 /* Compute position of parent rectangle relative to the screen */ 98 gfx_rect_translate(&parent_pos, ¶ms->place, &wparams.prect); 90 99 91 100 rc = ui_window_create(ui, &wparams, &window);
Note:
See TracChangeset
for help on using the changeset viewer.