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



commit 3de342e9d898b89539089ee892891afdc470d592
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 e0dedae..5ae41dd 100644
--- a/plug-ins/common/cml-explorer.c
+++ b/plug-ins/common/cml-explorer.c
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]