[gimp/gtk3-port: 174/228] plug-ins: don't use style->black and style->white



commit 8608b0cede8d3e1e41a8251552a1f87259d5a060
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 8d6f357..ebbfa7f 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]