[gimp/gtk3-port: 163/229] app: 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: 163/229] app: don't use style->black and style->white
- Date: Fri, 30 Oct 2015 18:37:34 +0000 (UTC)
commit 8c3e8f058ddc95d6009bebc890fc65de7a162b8f
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]