Allow creation of MIDI control points object tool.
[ardour.git] / libs / clearlooks-newer / clearlooks_draw_gummy.c
index e2a990230bc0ea16049fe5ff1d22e7e0093c97fb..ca208c2ebc2e58bfb7b58ead479fdf224743741a 100644 (file)
@@ -665,7 +665,6 @@ clearlooks_gummy_draw_tab (cairo_t                *cr,
        cairo_pattern_t     *pattern;
 
        double               radius;
-       double               strip_size;
 
        radius = MIN (params->radius, MIN ((width - 2.0) / 2.0, (height - 2.0) / 2.0));
 
@@ -683,7 +682,6 @@ clearlooks_gummy_draw_tab (cairo_t                *cr,
        if (tab->gap_side == CL_GAP_TOP || tab->gap_side == CL_GAP_BOTTOM)
        {
                height += 3.0;
-               strip_size = 2.0/height; /* 2 pixel high strip */
 
                if (tab->gap_side == CL_GAP_TOP)
                        cairo_translate (cr, 0.0, -3.0); /* gap at the other side */
@@ -691,7 +689,6 @@ clearlooks_gummy_draw_tab (cairo_t                *cr,
        else
        {
                width += 3.0;
-               strip_size = 2.0/width;
 
                if (tab->gap_side == CL_GAP_LEFT) 
                        cairo_translate (cr, -3.0, 0.0); /* gap at the other side */
@@ -793,8 +790,10 @@ clearlooks_gummy_draw_separator (cairo_t                   *cr,
                                  const SeparatorParameters *separator,
                                  int x, int y, int width, int height)
 {
-       CairoColor color = colors->shade[3];
        CairoColor hilight;
+       CairoColor color = colors->shade[3];
+
+       (void) widget;
        ge_shade_color (&color, 1.3, &hilight);
 
        cairo_save (cr);
@@ -925,7 +924,6 @@ clearlooks_gummy_draw_scrollbar_stepper (cairo_t                          *cr,
        CairoColor fill;
        CairoColor shade1, shade2, shade3;
        cairo_pattern_t *pattern;
-       ShadowParameters shadow;
        double radius = MIN (widget->radius, MIN ((width - 2.0) / 2.0, (height - 2.0) / 2.0));
 
        if (scrollbar->horizontal)
@@ -975,8 +973,6 @@ clearlooks_gummy_draw_scrollbar_stepper (cairo_t                          *cr,
        cairo_stroke (cr);
 
        cairo_translate (cr, 0.5, 0.5);
-       shadow.shadow  = CL_SHADOW_OUT;
-       shadow.corners = corners;
 }
 
 static void
@@ -1166,9 +1162,14 @@ clearlooks_gummy_draw_toolbar (cairo_t                 *cr,
                                const ToolbarParameters *toolbar,
                                int x, int y, int width, int height)
 {
-       const CairoColor *fill = &colors->bg[GTK_STATE_NORMAL];
-       const CairoColor *dark = &colors->shade[3];
        CairoColor light;
+       const CairoColor *dark;
+       const CairoColor *fill = &colors->bg[GTK_STATE_NORMAL];
+
+       (void) widget;
+
+       dark = &colors->shade[3];
+
        ge_shade_color (fill, toolbar->style == 1 ? 1.1 : 1.05, &light);
 
        cairo_set_line_width (cr, 1.0);
@@ -1304,8 +1305,11 @@ clearlooks_gummy_draw_statusbar (cairo_t                *cr,
                                  const WidgetParameters *widget,
                                  int x, int y, int width, int height)
 {
-       const CairoColor *dark = &colors->shade[3];
        CairoColor hilight;
+       const CairoColor *dark = &colors->shade[3];
+
+       (void) widget;
+       (void) height;
 
        ge_shade_color (dark, 1.3, &hilight);
 
@@ -1338,6 +1342,9 @@ clearlooks_gummy_draw_radiobutton (cairo_t                  *cr,
        gboolean inconsistent;
        gboolean draw_bullet = (checkbox->shadow_type == GTK_SHADOW_IN);
 
+       (void) width;
+       (void) height;
+
        inconsistent = (checkbox->shadow_type == GTK_SHADOW_ETCHED_IN);
        draw_bullet |= inconsistent;