summaryrefslogtreecommitdiff
path: root/libs/clearlooks-newer/clearlooks_draw.c
diff options
context:
space:
mode:
authorJulien de Kozak <jdekozak@hotmail.com>2013-03-24 14:55:56 +0100
committerJulien de Kozak <jdekozak@hotmail.com>2013-03-30 18:09:40 +0100
commit27d77b8719c15254369391e57227d20c4cfcbb20 (patch)
tree363073c33ff720705caff6554c750f0b1c2a6003 /libs/clearlooks-newer/clearlooks_draw.c
parentdeaceb4727effced797ecac67fa55e5eef75b003 (diff)
Fix some compilation warnings
Diffstat (limited to 'libs/clearlooks-newer/clearlooks_draw.c')
-rw-r--r--libs/clearlooks-newer/clearlooks_draw.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/libs/clearlooks-newer/clearlooks_draw.c b/libs/clearlooks-newer/clearlooks_draw.c
index 167c458dd9..e44610b4ee 100644
--- a/libs/clearlooks-newer/clearlooks_draw.c
+++ b/libs/clearlooks-newer/clearlooks_draw.c
@@ -1088,7 +1088,7 @@ clearlooks_draw_frame (cairo_t *cr,
int x, int y, int width, int height)
{
const CairoColor *border = frame->border;
- const CairoColor *dark = (CairoColor*)&colors->shade[4];
+ const CairoColor *dark = (const CairoColor*)&colors->shade[4];
ClearlooksRectangle bevel_clip = {0, 0, 0, 0};
ClearlooksRectangle frame_clip = {0, 0, 0, 0};
double radius = MIN (params->radius, MIN ((width - 2.0) / 2.0, (height - 2.0) / 2.0));
@@ -1623,7 +1623,6 @@ clearlooks_draw_scrollbar_stepper (cairo_t *cr,
CairoColor border;
CairoColor s1, s2, s3, s4;
cairo_pattern_t *pattern;
- ShadowParameters shadow;
double radius = MIN (widget->radius, MIN ((width - 2.0) / 2.0, (height - 2.0) / 2.0));
ge_shade_color(&colors->shade[6], 1.05, &border);
@@ -1675,12 +1674,6 @@ clearlooks_draw_scrollbar_stepper (cairo_t *cr,
cairo_stroke (cr);
cairo_translate (cr, 0.5, 0.5);
- shadow.shadow = CL_SHADOW_OUT;
- shadow.corners = corners;
- /*
- clearlooks_draw_highlight_and_shade (cr, &shadow,
- width,
- height, params->radius);*/
}
static void
@@ -1892,17 +1885,14 @@ clearlooks_draw_handle (cairo_t *cr,
{
const CairoColor *fill = &colors->bg[params->state_type];
int num_bars = 6; /* shut up gcc warnings */
- int bar_spacing;
switch (handle->type)
{
case CL_HANDLE_TOOLBAR:
num_bars = 6;
- bar_spacing = 3;
break;
case CL_HANDLE_SPLITTER:
num_bars = 16;
- bar_spacing = 3;
break;
}