plug-ins: don't use style->black and style->white

This commit is contained in:
Michael Natterer 2011-01-03 14:31:14 +01:00
parent 3374e32264
commit dc529eb3d2
1 changed files with 2 additions and 3 deletions

View File

@ -1778,7 +1778,6 @@ function_graph_draw (GtkWidget *widget,
cairo_t *cr,
gpointer *data)
{
GtkStyle *style = gtk_widget_get_style (widget);
gint x, y;
gint rgbi[3];
gint channel_id = GPOINTER_TO_INT (data[0]);
@ -1813,7 +1812,7 @@ function_graph_draw (GtkWidget *widget,
cairo_move_to (cr, 0, 255);
cairo_line_to (cr, 255, 0);
gdk_cairo_set_source_color (cr, &style->white);
cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
cairo_stroke (cr);
y = 255 * CLAMP (logistic_function (param, 0, param->power),
@ -1827,7 +1826,7 @@ function_graph_draw (GtkWidget *widget,
cairo_line_to (cr, x, 255-y);
}
gdk_cairo_set_source_color (cr, &style->black);
cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
cairo_stroke (cr);
return TRUE;