aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-10-20 17:22:48 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-30 01:50:03 +0800
commit861c878514348699ba66aa440e219e10ce393c9a (patch)
tree10c1f6f31909bc9e29a5c2e568598633d2e83138
parent7d8966eae329d09aec2352c7b0e9a92c777be035 (diff)
downloadgsoc2013-evolution-861c878514348699ba66aa440e219e10ce393c9a.tar.gz
gsoc2013-evolution-861c878514348699ba66aa440e219e10ce393c9a.tar.zst
gsoc2013-evolution-861c878514348699ba66aa440e219e10ce393c9a.zip
gnome-canvas: Remove gnome_canvas_set_stipple_origin()
-rw-r--r--libgnomecanvas/gnome-canvas.c18
-rw-r--r--libgnomecanvas/gnome-canvas.h6
2 files changed, 0 insertions, 24 deletions
diff --git a/libgnomecanvas/gnome-canvas.c b/libgnomecanvas/gnome-canvas.c
index 34e8c0b272..09acab0ce7 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 5ef653aa67..7394ff2514 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