[gimp] app: remove point drawing API from GimpCanvas, it's not used any longer
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove point drawing API from GimpCanvas, it's not used any longer
- Date: Thu, 26 Aug 2010 19:01:48 +0000 (UTC)
commit a6ce99afe0b49f007b7afe20a26bcc9ae3266f2e
Author: Michael Natterer <mitch gimp org>
Date: Thu Aug 26 21:01:21 2010 +0200
app: remove point drawing API from GimpCanvas, it's not used any longer
app/display/gimpcanvas.c | 48 ----------------------------------------------
app/display/gimpcanvas.h | 8 -------
2 files changed, 0 insertions(+), 56 deletions(-)
---
diff --git a/app/display/gimpcanvas.c b/app/display/gimpcanvas.c
index 9b0402d..2004227 100644
--- a/app/display/gimpcanvas.c
+++ b/app/display/gimpcanvas.c
@@ -350,54 +350,6 @@ gimp_canvas_new (GimpDisplayConfig *config)
}
/**
- * gimp_canvas_draw_point:
- * @canvas: a #GimpCanvas widget
- * @style: one of the enumerated #GimpCanvasStyle's.
- * @x: x coordinate
- * @y: y coordinate
- *
- * Draw a single pixel at the specified location in the specified
- * style.
- **/
-void
-gimp_canvas_draw_point (GimpCanvas *canvas,
- GimpCanvasStyle style,
- gint x,
- gint y)
-{
- if (! gimp_canvas_ensure_style (canvas, style))
- return;
-
- gdk_draw_point (gtk_widget_get_window (GTK_WIDGET (canvas)),
- canvas->gc[style],
- x, y);
-}
-
-/**
- * gimp_canvas_draw_points:
- * @canvas: a #GimpCanvas widget
- * @style: one of the enumerated #GimpCanvasStyle's.
- * @points: an array of GdkPoint x-y pairs.
- * @num_points: the number of points in the array
- *
- * Draws a set of one-pixel points at the locations given in the
- * @points argument, in the specified style.
- **/
-void
-gimp_canvas_draw_points (GimpCanvas *canvas,
- GimpCanvasStyle style,
- GdkPoint *points,
- gint num_points)
-{
- if (! gimp_canvas_ensure_style (canvas, style))
- return;
-
- gdk_draw_points (gtk_widget_get_window (GTK_WIDGET (canvas)),
- canvas->gc[style],
- points, num_points);
-}
-
-/**
* gimp_canvas_draw_line:
* @canvas: a #GimpCanvas widget
* @style: one of the enumerated #GimpCanvasStyle's.
diff --git a/app/display/gimpcanvas.h b/app/display/gimpcanvas.h
index 39a037e..7c7ef45 100644
--- a/app/display/gimpcanvas.h
+++ b/app/display/gimpcanvas.h
@@ -78,14 +78,6 @@ GType gimp_canvas_get_type (void) G_GNUC_CONST;
GtkWidget * gimp_canvas_new (GimpDisplayConfig *config);
-void gimp_canvas_draw_point (GimpCanvas *canvas,
- GimpCanvasStyle style,
- gint x,
- gint y);
-void gimp_canvas_draw_points (GimpCanvas *canvas,
- GimpCanvasStyle style,
- GdkPoint *points,
- gint num_points);
void gimp_canvas_draw_line (GimpCanvas *canvas,
GimpCanvasStyle style,
gint x1,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]