app: add a "shell" property to GimpCanvasItem

and pass it to all constructors. The GimpDisplayShell is needed
because items are going to become more powerful soon.
This commit is contained in:
Michael Natterer
2010-10-01 14:13:45 +02:00
parent 26d0035be0
commit 201bfe3e25
34 changed files with 232 additions and 124 deletions

View File

@ -49,10 +49,12 @@ struct _GimpCanvasPolygonClass
GType gimp_canvas_polygon_get_type (void) G_GNUC_CONST;
GimpCanvasItem * gimp_canvas_polygon_new (const GimpVector2 *points,
GimpCanvasItem * gimp_canvas_polygon_new (GimpDisplayShell *shell,
const GimpVector2 *points,
gint n_points,
gboolean filled);
GimpCanvasItem * gimp_canvas_polygon_new_from_coords (const GimpCoords *points,
GimpCanvasItem * gimp_canvas_polygon_new_from_coords (GimpDisplayShell *shell,
const GimpCoords *points,
gint n_points,
gboolean filled);