Changeset 10cb47e in mainline for uspace/lib/gui/window.c


Ignore:
Timestamp:
2016-08-31T15:43:01Z (8 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bdfdc51c
Parents:
58563585
Message:

add support for custom client data into widgets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/window.c

    r58563585 r10cb47e  
    591591}
    592592
    593 window_t *window_open(const char *winreg, window_flags_t flags,
    594     const char *caption)
     593window_t *window_open(const char *winreg, const void *data,
     594    window_flags_t flags, const char *caption)
    595595{
    596596        window_t *win = (window_t *) malloc(sizeof(window_t));
     
    604604        fibril_mutex_initialize(&win->guard);
    605605       
    606         widget_init(&win->root, NULL);
     606        widget_init(&win->root, NULL, data);
    607607        win->root.window = win;
    608608        win->root.destroy = root_destroy;
Note: See TracChangeset for help on using the changeset viewer.