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)
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)
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);
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);
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
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;
}
}
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;
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"))
{
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