fix the cairo-fletcher-fluctuation
[ardour.git] / libs / clearlooks-newer / clearlooks_style.c
index 48b6647df382449690da0e3fa7d002cc9ea2d07c..d1ac8d5d3991e88024fa1687ac6f1164d8fb08cd 100644 (file)
@@ -536,7 +536,6 @@ clearlooks_style_draw_box (DRAW_ARGS)
        else if (DETAIL ("button") || DETAIL ("buttondefault"))
        {
                WidgetParameters params;
-               ShadowParameters shadow = { CR_CORNER_ALL, CL_SHADOW_NONE } ;
                clearlooks_set_widget_parameters (widget, style, state_type, &params);
 
                if (ge_is_in_combo_box(widget))
@@ -545,23 +544,21 @@ clearlooks_style_draw_box (DRAW_ARGS)
                                params.corners = CR_CORNER_TOPRIGHT | CR_CORNER_BOTTOMRIGHT;
                        else
                                params.corners = CR_CORNER_TOPLEFT | CR_CORNER_BOTTOMLEFT;
-                       
-                       shadow.shadow = CL_SHADOW_IN;
 
                        if (params.xthickness > 2)
                        {
                                if (params.ltr)
                                        x--;
                                width++;
-                       }                       
+                       }
                }
                else
                {
                        params.corners    = CR_CORNER_ALL;
                        /* if (!(ge_is_combo_box (widget, FALSE))) */
                        params.enable_glow = TRUE;
-               }               
-       
+               }
+
                if (GE_IS_TOGGLE_BUTTON (widget) &&
                    gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)))
                        params.active = TRUE;
@@ -959,12 +956,14 @@ clearlooks_style_draw_slider (DRAW_ARGS, GtkOrientation orientation)
 static void
 clearlooks_style_draw_option (DRAW_ARGS)
 {
-       ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
        const ClearlooksColors *colors;
        WidgetParameters params;
        CheckboxParameters checkbox;
        cairo_t *cr;
+       ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
        
+       (void) detail;
+
        CHECK_ARGS
        SANITIZE_SIZE
 
@@ -1020,11 +1019,18 @@ clearlooks_style_draw_vline (GtkStyle               *style,
                              gint                    y2,
                              gint                    x)
 {
-       ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
        const ClearlooksColors *colors;
-       SeparatorParameters separator = { FALSE };
+       SeparatorParameters separator;
        cairo_t *cr;
 
+       ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
+
+       (void) state_type;
+       (void) widget;
+       (void) detail;
+
+       separator.horizontal = FALSE;
+
        CHECK_ARGS
 
        colors = &clearlooks_style->colors;
@@ -1050,10 +1056,13 @@ clearlooks_style_draw_hline (GtkStyle               *style,
                              gint                    x2,
                              gint                    y)
 {
-       ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
        const ClearlooksColors *colors;
        cairo_t *cr;
        SeparatorParameters separator;
+       ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
+
+       (void) state_type;
+       (void) widget;
 
        CHECK_ARGS
 
@@ -1130,11 +1139,14 @@ clearlooks_style_draw_resize_grip (GtkStyle       *style,
                   gint            width,
                   gint            height)
 {
-       ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
-       ClearlooksColors *colors = &clearlooks_style->colors;
+       ClearlooksColors *colors;
        cairo_t *cr;
        WidgetParameters params;
        ResizeGripParameters grip;
+       ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
+
+       (void) detail;
+       colors = &clearlooks_style->colors;
 
        CHECK_ARGS
        SANITIZE_SIZE
@@ -1156,11 +1168,15 @@ clearlooks_style_draw_resize_grip (GtkStyle       *style,
 static void
 clearlooks_style_draw_tab (DRAW_ARGS)
 {
-       ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
-       ClearlooksColors *colors = &clearlooks_style->colors;
+       ClearlooksColors *colors;
        WidgetParameters params;
        ArrowParameters  arrow;          
        cairo_t *cr;
+       ClearlooksStyle *clearlooks_style = CLEARLOOKS_STYLE (style);
+
+       (void) shadow_type;
+       (void) detail;
+       colors = &clearlooks_style->colors;
 
        CHECK_ARGS
        SANITIZE_SIZE
@@ -1191,11 +1207,18 @@ clearlooks_style_draw_arrow (GtkStyle  *style,
                        gint           width,
                        gint           height)
 {
-       ClearlooksStyle  *clearlooks_style = CLEARLOOKS_STYLE (style);
-       ClearlooksColors *colors = &clearlooks_style->colors;
+       ClearlooksColors *colors;
        WidgetParameters params;
        ArrowParameters  arrow;
-       cairo_t *cr = ge_gdk_drawable_to_cairo (window, area);
+       cairo_t *cr;
+       ClearlooksStyle  *clearlooks_style = CLEARLOOKS_STYLE (style);
+
+       (void) shadow;
+       (void) detail;
+       (void) fill;
+
+       cr = ge_gdk_drawable_to_cairo (window, area);
+       colors = &clearlooks_style->colors;
 
        CHECK_ARGS
        SANITIZE_SIZE
@@ -1238,7 +1261,7 @@ clearlooks_style_init_from_rc (GtkStyle * style,
        
        clearlooks_parent_class->init_from_rc (style, rc_style);
        
-       g_assert ((CLEARLOOKS_RC_STYLE (rc_style)->style >= 0) && (CLEARLOOKS_RC_STYLE (rc_style)->style < CL_NUM_STYLES));
+       g_assert ((CLEARLOOKS_RC_STYLE (rc_style)->style < CL_NUM_STYLES));
        clearlooks_style->style         = CLEARLOOKS_RC_STYLE (rc_style)->style;
        
        clearlooks_style->menubarstyle      = CLEARLOOKS_RC_STYLE (rc_style)->menubarstyle;
@@ -1462,6 +1485,7 @@ clearlooks_style_draw_layout (GtkStyle * style,
 {
        GdkGC *gc;
 
+       (void) detail;
        g_return_if_fail (GTK_IS_STYLE (style));
        g_return_if_fail (window != NULL);
 
@@ -1508,14 +1532,20 @@ clearlooks_style_draw_render_icon (GtkStyle            *style,
              GtkWidget           *widget,
              const char          *detail)
 {
-       int width = 1;
-       int height = 1;
+       int width;
+       int height;
        GdkPixbuf *scaled;
        GdkPixbuf *stated;
        GdkPixbuf *base_pixbuf;
        GdkScreen *screen;
        GtkSettings *settings;
-       
+
+       width = 1;
+       height = 1;
+
+       (void) direction;
+       (void) detail;
+
        /* Oddly, style can be NULL in this function, because
         * GtkIconSet can be used without a style and if so
         * it uses this function.
@@ -1579,6 +1609,7 @@ clearlooks_style_draw_render_icon (GtkStyle            *style,
 static void
 clearlooks_style_init (ClearlooksStyle * style)
 {
+       (void) style;
 }
 
 static void