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



commit ab045e4d4effc2fc55b1f26a961186dd330b5604
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 c635873..17518ba 100644
--- a/plug-ins/common/cml-explorer.c
+++ b/plug-ins/common/cml-explorer.c
@@ -1774,7 +1774,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]);
@@ -1809,7 +1808,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),
@@ -1823,7 +1822,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]