Changeset 8c772c4 in mainline for uspace/lib/ui/src/pbutton.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/pbutton.c

    rd55ab823 r8c772c4  
    4747#include "../private/pbutton.h"
    4848#include "../private/resource.h"
     49#include "../private/ui.h"
    4950
    5051/** Caption movement when button is pressed down */
     
    7273 * @return EOK on success, ENOMEM if out of memory
    7374 */
    74 errno_t ui_pbutton_create(ui_resource_t *resource, const char *caption,
     75errno_t ui_pbutton_create(ui_t *ui, const char *caption,
    7576    ui_pbutton_t **rpbutton)
    7677{
     
    9697        }
    9798
    98         pbutton->res = resource;
     99        pbutton->res = ui->resource;
    99100        *rpbutton = pbutton;
    100101        return EOK;
Note: See TracChangeset for help on using the changeset viewer.