Ignore:
File:
1 edited

Legend:

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

    r10cb47e r6d5e378  
    3636#include "widget.h"
    3737
    38 /** Link widget with parent and initialize default position and size. */
    39 void widget_init(widget_t *widget, widget_t *parent, const void *data)
     38void widget_init(widget_t *widget, widget_t *parent)
    4039{
    4140        link_initialize(&widget->link);
    4241        list_initialize(&widget->children);
    43        
    4442        if (parent) {
    4543                widget->parent = parent;
     
    5048                widget->window = NULL;
    5149        }
    52        
    53         widget->data = data;
    54        
     50
    5551        widget->hpos = 0;
    5652        widget->vpos = 0;
    5753        widget->width = 0;
    5854        widget->height = 0;
    59        
     55
    6056        widget->width_min = 0;
    6157        widget->height_min = 0;
     
    6662}
    6763
    68 /** Change position and size of the widget. */
    6964void widget_modify(widget_t *widget, sysarg_t hpos, sysarg_t vpos,
    7065    sysarg_t width, sysarg_t height)
     
    7671}
    7772
    78 /** Get custom client data */
    79 const void *widget_get_data(widget_t *widget)
    80 {
    81         return widget->data;
    82 }
    83 
    84 /** Unlink widget from its parent. */
    8573void widget_deinit(widget_t *widget)
    8674{
    87         if (widget->parent)
     75        if (widget->parent) {
    8876                list_remove(&widget->link);
     77        }
    8978}
    9079
Note: See TracChangeset for help on using the changeset viewer.