X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fclearlooks-newer%2Fclearlooks_style.c;h=c5e588b74f89d8b484a5e2e5034c862979d66e66;hb=657ba64ad23eaaa3cbf0e2da778a185fbc47a354;hp=b1257f4878379553de26c84fc17cccc2e02c90b4;hpb=22b07e0233a29d9633ffa825a79503befaf2e16e;p=ardour.git diff --git a/libs/clearlooks-newer/clearlooks_style.c b/libs/clearlooks-newer/clearlooks_style.c index b1257f4878..c5e588b74f 100644 --- a/libs/clearlooks-newer/clearlooks_style.c +++ b/libs/clearlooks-newer/clearlooks_style.c @@ -56,7 +56,7 @@ static ClearlooksStyleClass *clearlooks_style_class; static GtkStyleClass *clearlooks_parent_class; static void -clearlooks_set_widget_parameters (const GtkWidget *widget, +clearlooks_set_widget_parameters (GtkWidget *widget, const GtkStyle *style, GtkStateType state_type, WidgetParameters *params) @@ -200,16 +200,16 @@ clearlooks_style_draw_shadow (DRAW_ARGS) else if (DETAIL ("frame")) { WidgetParameters params; - FrameParameters frame; - frame.shadow = shadow_type; - frame.gap_x = -1; /* No gap will be drawn */ - frame.border = &colors->shade[4]; + FrameParameters sample; + sample.shadow = shadow_type; + sample.gap_x = -1; /* No gap will be drawn */ + sample.border = &colors->shade[4]; clearlooks_set_widget_parameters (widget, style, state_type, ¶ms); params.corners = CR_CORNER_NONE; if (widget && !g_str_equal ("XfcePanelWindow", gtk_widget_get_name (gtk_widget_get_toplevel (widget)))) - STYLE_FUNCTION(draw_frame) (cr, colors, ¶ms, &frame, + STYLE_FUNCTION(draw_sample) (cr, colors, ¶ms, &sample, x, y, width, height); } else if (DETAIL ("scrolled_window") || DETAIL ("viewport") || detail == NULL) @@ -223,15 +223,15 @@ clearlooks_style_draw_shadow (DRAW_ARGS) else { WidgetParameters params; - FrameParameters frame; + FrameParameters sample; - frame.shadow = shadow_type; - frame.gap_x = -1; - frame.border = &colors->shade[5]; + sample.shadow = shadow_type; + sample.gap_x = -1; + sample.border = &colors->shade[5]; clearlooks_set_widget_parameters (widget, style, state_type, ¶ms); params.corners = CR_CORNER_ALL; - STYLE_FUNCTION(draw_frame) (cr, colors, ¶ms, &frame, x, y, width, height); + STYLE_FUNCTION(draw_sample) (cr, colors, ¶ms, &sample, x, y, width, height); } cairo_destroy (cr); @@ -255,14 +255,14 @@ clearlooks_style_draw_box_gap (DRAW_ARGS, if (DETAIL ("notebook")) { WidgetParameters params; - FrameParameters frame; + FrameParameters sample; gboolean start, end; - frame.shadow = shadow_type; - frame.gap_side = gap_side; - frame.gap_x = gap_x; - frame.gap_width = gap_width; - frame.border = &colors->shade[5]; + sample.shadow = shadow_type; + sample.gap_side = gap_side; + sample.gap_x = gap_x; + sample.gap_width = gap_width; + sample.border = &colors->shade[5]; clearlooks_set_widget_parameters (widget, style, state_type, ¶ms); @@ -315,7 +315,7 @@ clearlooks_style_draw_box_gap (DRAW_ARGS, ge_cairo_set_color (cr, &colors->bg[GTK_STATE_NORMAL]); cairo_fill (cr); - STYLE_FUNCTION(draw_frame) (cr, colors, ¶ms, &frame, + STYLE_FUNCTION(draw_sample) (cr, colors, ¶ms, &sample, x, y, width, height); } else @@ -709,9 +709,9 @@ clearlooks_style_draw_box (DRAW_ARGS) if (!params.ltr) { - if (progressbar.orientation == GTK_PROGRESS_LEFT_TO_RIGHT) + if (progressbar.orientation == (ClearlooksOrientation)GTK_PROGRESS_LEFT_TO_RIGHT) progressbar.orientation = GTK_PROGRESS_RIGHT_TO_LEFT; - else if (progressbar.orientation == GTK_PROGRESS_RIGHT_TO_LEFT) + else if (progressbar.orientation == (ClearlooksOrientation)GTK_PROGRESS_RIGHT_TO_LEFT) progressbar.orientation = GTK_PROGRESS_LEFT_TO_RIGHT; } @@ -738,8 +738,8 @@ clearlooks_style_draw_box (DRAW_ARGS) } else { - if (progressbar.orientation == GTK_PROGRESS_RIGHT_TO_LEFT || - progressbar.orientation == GTK_PROGRESS_LEFT_TO_RIGHT) + if (progressbar.orientation == (ClearlooksOrientation)GTK_PROGRESS_RIGHT_TO_LEFT || + progressbar.orientation == (ClearlooksOrientation)GTK_PROGRESS_LEFT_TO_RIGHT) { tmp.x -= 1; tmp.width += 2; @@ -853,7 +853,7 @@ clearlooks_style_draw_box (DRAW_ARGS) clearlooks_set_widget_parameters (widget, style, state_type, ¶ms); - STYLE_FUNCTION(draw_menu_frame) (cr, colors, ¶ms, x, y, width, height); + STYLE_FUNCTION(draw_menu_sample) (cr, colors, ¶ms, x, y, width, height); } else if (DETAIL ("hseparator") || DETAIL ("vseparator")) { @@ -1101,19 +1101,19 @@ clearlooks_style_draw_shadow_gap (DRAW_ARGS, if (DETAIL ("frame")) { WidgetParameters params; - FrameParameters frame; + FrameParameters sample; - frame.shadow = shadow_type; - frame.gap_side = gap_side; - frame.gap_x = gap_x; - frame.gap_width = gap_width; - frame.border = &colors->shade[5]; + sample.shadow = shadow_type; + sample.gap_side = gap_side; + sample.gap_x = gap_x; + sample.gap_width = gap_width; + sample.border = &colors->shade[5]; clearlooks_set_widget_parameters (widget, style, state_type, ¶ms); params.corners = CR_CORNER_ALL; - STYLE_FUNCTION(draw_frame) (cr, colors, ¶ms, &frame, + STYLE_FUNCTION(draw_sample) (cr, colors, ¶ms, &sample, x, y, width, height); } else