[gimp/gtk3-port: 194/239] plug-ins: don't use style->black and style->white
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 194/239] plug-ins: don't use style->black and style->white
- Date: Thu, 21 Apr 2011 22:28:27 +0000 (UTC)
commit 38453ee274ddee9523a9f768d3366f67735a9d82
Author: Michael Natterer <mitch gimp org>
Date: Mon Jan 3 14:31:14 2011 +0100
plug-ins: don't use style->black and style->white
plug-ins/common/cml-explorer.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/common/cml-explorer.c b/plug-ins/common/cml-explorer.c
index 3bbc3d7..a08e28c 100644
--- a/plug-ins/common/cml-explorer.c
+++ b/plug-ins/common/cml-explorer.c
@@ -1775,7 +1775,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]);
@@ -1810,7 +1809,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),
@@ -1824,7 +1823,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]