Changeset f2416ec3 in mainline for uspace/lib/ui/src/popup.c


Ignore:
Timestamp:
2021-05-26T07:40:59Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Children:
6baab83
Parents:
344f8b9
git-author:
Jiri Svoboda <jiri@…> (2021-05-25 18:40:50)
git-committer:
Jiri Svoboda <jiri@…> (2021-05-26 07:40:59)
Message:

Specify parent window when creating popup

This will be used in conjunction with ui_wnd_popup_params_t.place
(a rectangle relative to the parent window) to determine where on
the screen the popup window should appear.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/popup.c

    r344f8b9 rf2416ec3  
    6767 *
    6868 * @param ui User interface
     69 * @param parent Parent window
    6970 * @param params Popup parameters
    7071 * @param rpopup Place to store pointer to new popup window
    7172 * @return EOK on success or an error code
    7273 */
    73 errno_t ui_popup_create(ui_t *ui, ui_popup_params_t *params,
    74     ui_popup_t **rpopup)
     74errno_t ui_popup_create(ui_t *ui, ui_window_t *parent,
     75    ui_popup_params_t *params, ui_popup_t **rpopup)
    7576{
    7677        ui_popup_t *popup;
     
    9394
    9495        popup->ui = ui;
     96        popup->parent = parent;
    9597        popup->window = window;
    9698
Note: See TracChangeset for help on using the changeset viewer.