From c43054bc4d03d059509ad79784df283b872a3929 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 2 Apr 2008 08:31:26 +0200 Subject: [PATCH] [progressbar] check_settings should be static Signed-off-by: Julien Danjou --- widgets/progressbar.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/widgets/progressbar.c b/widgets/progressbar.c index ef8fe026..d75bf1d0 100644 --- a/widgets/progressbar.c +++ b/widgets/progressbar.c @@ -71,9 +71,7 @@ typedef struct XColor *bordercolor; } Data; -Bool check_settings(Data *, int); - -Bool +static Bool check_settings(Data *d, int status_height) { int simple, h_total; @@ -367,9 +365,7 @@ progressbar_draw(Widget *widget, DrawCtx *ctx, int offset, for(rectangle.x = pb_x + (unit - d->ticks_gap); pb_x + pb_width - d->ticks_gap >= rectangle.x; rectangle.x += unit) - { draw_rectangle(ctx, rectangle, 1.0, True, d->bg[i]); - } } pb_offset += pb_height + d->gap + 2 * (d->border_width + d->border_padding);