Commit 5166c11c authored by Simon Budig's avatar Simon Budig Committed by Simon Budig

app/core/gimpdrawable.c fix the warnings about the interface

2006-11-24  Simon Budig  <simon@gimp.org>

	* app/core/gimpdrawable.c
	* app/core/gimpprojection.c: fix the warnings about the interface
	initialization.
parent a8f50bfe
2006-11-24 Simon Budig <simon@gimp.org>
* app/core/gimpdrawable.c
* app/core/gimpprojection.c: fix the warnings about the interface
initialization.
2006-11-24 Simon Budig <simon@gimp.org>
* libgimpmodule/gimpmodule.[ch]: put the module prototypes into a
......
......@@ -227,13 +227,15 @@ gimp_drawable_init (GimpDrawable *drawable)
drawable->preview_valid = FALSE;
}
/* sorry for the evil casts */
static void
gimp_drawable_pickable_iface_init (GimpPickableInterface *iface)
{
iface->get_image = gimp_item_get_image;
iface->get_image_type = gimp_drawable_type;
iface->get_bytes = gimp_drawable_bytes;
iface->get_tiles = gimp_drawable_get_tiles;
iface->get_image = (GimpImage * (*) (GimpPickable *pickable)) gimp_item_get_image;
iface->get_image_type = (GimpImageType (*) (GimpPickable *pickable)) gimp_drawable_type;
iface->get_bytes = (gint (*) (GimpPickable *pickable)) gimp_drawable_bytes;
iface->get_tiles = (TileManager * (*) (GimpPickable *pickable)) gimp_drawable_get_tiles;
iface->get_color_at = gimp_drawable_get_color_at;
}
......
......@@ -148,14 +148,16 @@ gimp_projection_init (GimpProjection *proj)
proj->construct_flag = FALSE;
}
/* sorry for the evil casts */
static void
gimp_projection_pickable_iface_init (GimpPickableInterface *iface)
{
iface->flush = gimp_projection_pickable_flush;
iface->get_image = gimp_projection_get_image;
iface->get_image_type = gimp_projection_get_image_type;
iface->get_bytes = gimp_projection_get_bytes;
iface->get_tiles = gimp_projection_get_tiles;
iface->get_image = (GimpImage * (*) (GimpPickable *pickable)) gimp_projection_get_image;
iface->get_image_type = (GimpImageType (*) (GimpPickable *pickable)) gimp_projection_get_image_type;
iface->get_bytes = (gint (*) (GimpPickable *pickable)) gimp_projection_get_bytes;
iface->get_tiles = (TileManager * (*) (GimpPickable *pickable)) gimp_projection_get_tiles;
iface->get_color_at = gimp_projection_get_color_at;
iface->get_opacity_at = gimp_projection_get_opacity_at;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment