[evolution/rendering-cleanup: 80/97] gnome-canvas: Remove gnome_canvas_set_stipple_origin()



commit 8a4bf8ce9fe560f17ee275efa258779a6d4900b1
Author: Benjamin Otte <otte redhat com>
Date:   Wed Oct 20 11:22:48 2010 +0200

    gnome-canvas: Remove gnome_canvas_set_stipple_origin()

 libgnomecanvas/gnome-canvas.c |   18 ------------------
 libgnomecanvas/gnome-canvas.h |    6 ------
 2 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/libgnomecanvas/gnome-canvas.c b/libgnomecanvas/gnome-canvas.c
index 76528c7..204eb1e 100644
--- a/libgnomecanvas/gnome-canvas.c
+++ b/libgnomecanvas/gnome-canvas.c
@@ -3536,24 +3536,6 @@ gnome_canvas_get_color_pixel (GnomeCanvas *canvas, guint rgba)
 	return color.pixel;
 }
 
-/**
- * gnome_canvas_set_stipple_origin:
- * @canvas: A canvas.
- * @gc: GC on which to set the stipple origin.
- *
- * Sets the stipple origin of the specified GC as is appropriate for the canvas,
- * so that it will be aligned with other stipple patterns used by canvas items.
- * This is typically only needed by item implementations.
- **/
-void
-gnome_canvas_set_stipple_origin (GnomeCanvas *canvas, GdkGC *gc)
-{
-	g_return_if_fail (GNOME_IS_CANVAS (canvas));
-	g_return_if_fail (GDK_IS_GC (gc));
-
-	gdk_gc_set_ts_origin (gc, -canvas->draw_xofs, -canvas->draw_yofs);
-}
-
 static gboolean
 boolean_handled_accumulator (GSignalInvocationHint *ihint,
 			     GValue                *return_accu,
diff --git a/libgnomecanvas/gnome-canvas.h b/libgnomecanvas/gnome-canvas.h
index 5ef653a..7394ff2 100644
--- a/libgnomecanvas/gnome-canvas.h
+++ b/libgnomecanvas/gnome-canvas.h
@@ -520,12 +520,6 @@ gint gnome_canvas_get_color (GnomeCanvas *canvas, const gchar *spec, GdkColor *c
 gulong gnome_canvas_get_color_pixel (GnomeCanvas *canvas,
 				     guint        rgba);
 
-/* Sets the stipple origin of the specified gc so that it will be aligned with
- * all the stipples used in the specified canvas.  This is intended for use only
- * by canvas item implementations.
- */
-void gnome_canvas_set_stipple_origin (GnomeCanvas *canvas, GdkGC *gc);
-
 G_END_DECLS
 
 #endif



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