From 89e03dd326ae1fbc47174767e3799ddf55e431d0 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 14 Jun 2008 09:18:51 +0200 Subject: [PATCH] textbox: rename data type Signed-off-by: Julien Danjou --- widgets/textbox.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/widgets/textbox.c b/widgets/textbox.c index 5fe90781b..061c77e8c 100644 --- a/widgets/textbox.c +++ b/widgets/textbox.c @@ -31,7 +31,7 @@ typedef struct { char *text; int width; -} Data; +} textbox_data_t; static int textbox_draw(draw_context_t *ctx, int screen __attribute__ ((unused)), @@ -39,7 +39,7 @@ textbox_draw(draw_context_t *ctx, int screen __attribute__ ((unused)), int offset, int used, void *p __attribute__ ((unused))) { - Data *d = w->widget->data; + textbox_data_t *d = w->widget->data; if(d->width) w->area.width = d->width; @@ -68,7 +68,7 @@ textbox_draw(draw_context_t *ctx, int screen __attribute__ ((unused)), static widget_tell_status_t textbox_tell(widget_t *widget, const char *property, const char *new_value) { - Data *d = widget->data; + textbox_data_t *d = widget->data; if(!a_strcmp(property, "text")) { @@ -87,14 +87,14 @@ widget_t * textbox_new(alignment_t align) { widget_t *w; - Data *d; + textbox_data_t *d; w = p_new(widget_t, 1); widget_common_new(w); w->align = align; w->draw = textbox_draw; w->tell = textbox_tell; - w->data = d = p_new(Data, 1); + w->data = d = p_new(textbox_data_t, 1); return w; }