Changeset 8c772c4 in mainline for uspace/lib/ui/src/label.c


Ignore:
Timestamp:
2020-11-07T22:12:12Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3583ffb
Parents:
d55ab823
Message:

Create UI controls based on UI object instead of based on UI resource

We want to be a bit more generic. Better not expose UI resource
(at least not in this particular case).

File:
1 edited

Legend:

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

    rd55ab823 r8c772c4  
    4545#include "../private/label.h"
    4646#include "../private/resource.h"
     47#include "../private/ui.h"
    4748
    4849static void ui_label_ctl_destroy(void *);
     
    6465 * @return EOK on success, ENOMEM if out of memory
    6566 */
    66 errno_t ui_label_create(ui_resource_t *resource, const char *text,
     67errno_t ui_label_create(ui_t *ui, const char *text,
    6768    ui_label_t **rlabel)
    6869{
     
    8788        }
    8889
    89         label->res = resource;
     90        label->res = ui->resource;
    9091        label->halign = gfx_halign_left;
    9192        *rlabel = label;
Note: See TracChangeset for help on using the changeset viewer.