[gimp/gtk3-port: 162/262] app: don't use style->black and style->white



commit c700db6dba3d0149a5a7f709d9dce3bbbf364cd7
Author: Michael Natterer <mitch gimp org>
Date:   Mon Jan 3 14:00:42 2011 +0100

    app: don't use style->black and style->white

 app/widgets/gimpviewrenderervectors.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimpviewrenderervectors.c b/app/widgets/gimpviewrenderervectors.c
index 0b9d428..97bea3e 100644
--- a/app/widgets/gimpviewrenderervectors.c
+++ b/app/widgets/gimpviewrenderervectors.c
@@ -71,11 +71,10 @@ gimp_view_renderer_vectors_draw (GimpViewRenderer *renderer,
                                  gint              available_width,
                                  gint              available_height)
 {
-  GtkStyle             *style   = gtk_widget_get_style (widget);
   GimpVectors          *vectors = GIMP_VECTORS (renderer->viewable);
   const GimpBezierDesc *desc;
 
-  gdk_cairo_set_source_color (cr, &style->white);
+  cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
 
   cairo_translate (cr,
                    (available_width  - renderer->width)  / 2,
@@ -103,7 +102,7 @@ gimp_view_renderer_vectors_draw (GimpViewRenderer *renderer,
       cairo_device_to_user_distance (cr, &xscale, &yscale);
 
       cairo_set_line_width (cr, MAX (xscale, yscale));
-      gdk_cairo_set_source_color (cr, &style->black);
+      cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
 
       cairo_append_path (cr, (cairo_path_t *) desc);
       cairo_stroke (cr);


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