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


Ignore:
Timestamp:
2020-11-08T19:51:04Z (5 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/pbutton.c

    r8c772c4 r3583ffb  
    4747#include "../private/pbutton.h"
    4848#include "../private/resource.h"
    49 #include "../private/ui.h"
    5049
    5150/** Caption movement when button is pressed down */
     
    7372 * @return EOK on success, ENOMEM if out of memory
    7473 */
    75 errno_t ui_pbutton_create(ui_t *ui, const char *caption,
     74errno_t ui_pbutton_create(ui_resource_t *resource, const char *caption,
    7675    ui_pbutton_t **rpbutton)
    7776{
     
    9796        }
    9897
    99         pbutton->res = ui->resource;
     98        pbutton->res = resource;
    10099        *rpbutton = pbutton;
    101100        return EOK;
Note: See TracChangeset for help on using the changeset viewer.