Changeset 3583ffb in mainline for uspace/lib/ui/src/label.c


Ignore:
Timestamp:
2020-11-08T19:51:04Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f93e4e3
Parents:
8c772c4
Message:

Revert "Create UI controls based on UI object…"

This was a mistake. Controls need ui_resource object, which must be
(at least currently) specific to a window and cannot be obtained from
ui_t.

File:
1 edited

Legend:

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

    r8c772c4 r3583ffb  
    4545#include "../private/label.h"
    4646#include "../private/resource.h"
    47 #include "../private/ui.h"
    4847
    4948static void ui_label_ctl_destroy(void *);
     
    6564 * @return EOK on success, ENOMEM if out of memory
    6665 */
    67 errno_t ui_label_create(ui_t *ui, const char *text,
     66errno_t ui_label_create(ui_resource_t *resource, const char *text,
    6867    ui_label_t **rlabel)
    6968{
     
    8887        }
    8988
    90         label->res = ui->resource;
     89        label->res = resource;
    9190        label->halign = gfx_halign_left;
    9291        *rlabel = label;
Note: See TracChangeset for help on using the changeset viewer.