Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset c68c18b9 in mainline for uspace/lib/ui/src/menuentry.c


Ignore:
Timestamp:
2021-06-10T13:22:33Z (6 months ago)
Author:
jxsvoboda <5887334+jxsvoboda@…>
Branches:
master
Children:
c9927c66
Parents:
3c8c580
git-author:
Jiri Svoboda <jiri@…> (2021-05-25 18:40:50)
git-committer:
jxsvoboda <5887334+jxsvoboda@…> (2021-06-10 13:22:33)
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

    r3c8c580 rc68c18b9  
    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.