[progressbar] check_settings should be static
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
30baa4bebd
commit
c43054bc4d
|
@ -71,9 +71,7 @@ typedef struct
|
||||||
XColor *bordercolor;
|
XColor *bordercolor;
|
||||||
} Data;
|
} Data;
|
||||||
|
|
||||||
Bool check_settings(Data *, int);
|
static Bool
|
||||||
|
|
||||||
Bool
|
|
||||||
check_settings(Data *d, int status_height)
|
check_settings(Data *d, int status_height)
|
||||||
{
|
{
|
||||||
int simple, h_total;
|
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);
|
for(rectangle.x = pb_x + (unit - d->ticks_gap);
|
||||||
pb_x + pb_width - d->ticks_gap >= rectangle.x;
|
pb_x + pb_width - d->ticks_gap >= rectangle.x;
|
||||||
rectangle.x += unit)
|
rectangle.x += unit)
|
||||||
{
|
|
||||||
draw_rectangle(ctx, rectangle, 1.0, True, d->bg[i]);
|
draw_rectangle(ctx, rectangle, 1.0, True, d->bg[i]);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pb_offset += pb_height + d->gap + 2 * (d->border_width + d->border_padding);
|
pb_offset += pb_height + d->gap + 2 * (d->border_width + d->border_padding);
|
||||||
|
|
Loading…
Reference in New Issue