diff options
| author | Dusan Durech <dusan@debian.debian> | 2009-04-12 14:29:51 +0200 |
|---|---|---|
| committer | Dusan Durech <dusan@debian.debian> | 2009-04-12 14:29:51 +0200 |
| commit | 876fc624df9728ee0feee26e1b31b53ed9ef3326 (patch) | |
| tree | e20814ab6d07fb892284dcee11bc492532bdabaa /src/widget/widget.c | |
| parent | dff1cbc31ca8d585c01f5bebd08e50cf07fd2b0c (diff) | |
convert all name function from oldName to new_name
Diffstat (limited to 'src/widget/widget.c')
| -rw-r--r-- | src/widget/widget.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/widget/widget.c b/src/widget/widget.c index b72a463..9cf2e7e 100644 --- a/src/widget/widget.c +++ b/src/widget/widget.c @@ -7,7 +7,7 @@ #include "widget.h" #include "widget_label.h" -widget_t *newWidget(int type, int x, int y, int w, int h, void *private_data) +widget_t *widget_new(int type, int x, int y, int w, int h, void *private_data) { widget_t *new; @@ -22,13 +22,13 @@ widget_t *newWidget(int type, int x, int y, int w, int h, void *private_data) return new; } -void widgetSetLocation(widget_t * p, int x, int y) +void widget_set_location(widget_t * p, int x, int y) { p->x = x; p->y = y; } -void widgetGetLocation(widget_t * p, int *x, int *y) +void widget_get_location(widget_t * p, int *x, int *y) { if (x != NULL) *x = p->x; @@ -37,13 +37,13 @@ void widgetGetLocation(widget_t * p, int *x, int *y) *y = p->y; } -void widgetSetSize(widget_t * p, int w, int h) +void widget_get_size(widget_t * p, int w, int h) { p->w = w; p->h = h; } -void widgetGetSize(widget_t * p, int *w, int *h) +void widget_set_size(widget_t * p, int *w, int *h) { if (w != NULL) *w = p->w; @@ -52,7 +52,7 @@ void widgetGetSize(widget_t * p, int *w, int *h) *h = p->h; } -void destroyWidget(widget_t * p) +void widget_destroy(widget_t * p) { free(p); } |