Changeset f2416ec3 in mainline for uspace/lib/ui/src/menuentry.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/menuentry.c

    r344f8b9 rf2416ec3  
    4646#include <ui/paint.h>
    4747#include <ui/menuentry.h>
     48#include <ui/window.h>
    4849#include "../private/menubar.h"
    4950#include "../private/menuentry.h"
     
    209210         * resource instead.
    210211         */
    211         res = mentry->menu->mbar->res;
     212        res = ui_window_get_res(mentry->menu->mbar->window);
    212213
    213214        *caption_w = gfx_text_width(res->font, mentry->caption);
     
    235236         * resource instead.
    236237         */
    237         res = menu->mbar->res;
     238        res = ui_window_get_res(menu->mbar->window);
    238239
    239240        if (res->textmode)
     
    274275         * resource instead.
    275276         */
    276         res = mentry->menu->mbar->res;
     277        res = ui_window_get_res(mentry->menu->mbar->window);
    277278
    278279        if (res->textmode) {
Note: See TracChangeset for help on using the changeset viewer.