removed one more gimp_channel_ops_duplicate #define.

2001-06-12  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpdrawable.h: removed one more
	gimp_channel_ops_duplicate #define.

	* plug-ins/gap/gap_mov_dialog.c
	* plug-ins/gap/gap_mov_exec.c
	* plug-ins/gap/gap_pdb_calls.[ch]: removed a handmade PDB wrapper
	and use gimp_image_duplicate().
This commit is contained in:
Michael Natterer 2001-06-12 21:43:36 +00:00 committed by Michael Natterer
parent 630afe25b6
commit 2e2f1e161c
6 changed files with 15 additions and 34 deletions

View File

@ -1,3 +1,13 @@
2001-06-12 Michael Natterer <mitch@gimp.org>
* libgimp/gimpdrawable.h: removed one more
gimp_channel_ops_duplicate #define.
* plug-ins/gap/gap_mov_dialog.c
* plug-ins/gap/gap_mov_exec.c
* plug-ins/gap/gap_pdb_calls.[ch]: removed a handmade PDB wrapper
and use gimp_image_duplicate().
2001-06-12 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/scripts/3d-outline.scm

View File

@ -28,7 +28,6 @@ extern "C" {
/* For information look into the C source or the html documentation */
#define gimp_drawable_offset gimp_channel_ops_offset
#define gimp_drawable_image_id gimp_drawable_image
#define gimp_drawable_bpp gimp_drawable_bytes

View File

@ -400,7 +400,7 @@ long p_move_dialog (t_mov_data *mov_ptr)
p_update_point_labels(path_ptr);
/* duplicate the curerent image (for flatten & preview) */
pvals->tmp_image_id = p_gimp_channel_ops_duplicate(pvals->dst_image_id);
pvals->tmp_image_id = gimp_image_duplicate(pvals->dst_image_id);
/* flatten image, and get the (only) resulting drawable */
l_drawable_ptr = p_get_prevw_drawable(path_ptr);
@ -752,7 +752,7 @@ mov_upvw_callback (GtkWidget *widget,
/* replace the temporary image */
if(path_ptr->preview_frame_nr == path_ptr->ainfo_ptr->curr_frame_nr)
{
l_new_tmp_image_id = p_gimp_channel_ops_duplicate(path_ptr->ainfo_ptr->image_id);
l_new_tmp_image_id = gimp_image_duplicate(path_ptr->ainfo_ptr->image_id);
}
else
{
@ -3204,7 +3204,7 @@ p_fetch_src_frame(t_mov_values *pvals, gint32 wanted_frame_nr)
/* always take the current source frame from the already opened image
* not only for speedup reasons. (the diskfile may contain non actual imagedata)
*/
pvals->cache_tmp_image_id = p_gimp_channel_ops_duplicate(pvals->src_image_id);
pvals->cache_tmp_image_id = gimp_image_duplicate(pvals->src_image_id);
wanted_frame_nr = pvals->cache_ainfo_ptr->curr_frame_nr;
}
else

View File

@ -118,7 +118,7 @@ p_mov_call_render(t_mov_data *mov_ptr, t_mov_current *cur_ptr, gint apv_layersta
if(mov_ptr->val_ptr->apv_src_frame >= 0)
{
/* anim preview uses one constant (prescaled) frame */
l_tmp_image_id = p_gimp_channel_ops_duplicate(mov_ptr->val_ptr->apv_src_frame);
l_tmp_image_id = gimp_image_duplicate(mov_ptr->val_ptr->apv_src_frame);
}
else
{
@ -835,7 +835,7 @@ p_mov_anim_preview(t_mov_values *pvals_orig, t_anim_info *ainfo_ptr, gint previe
if(l_pvals->src_stepmode < GAP_STEP_FRAME)
{
/* copy and scale the source object image */
l_tmp_image_id = p_gimp_channel_ops_duplicate(pvals_orig->src_image_id);
l_tmp_image_id = gimp_image_duplicate(pvals_orig->src_image_id);
l_pvals->src_image_id = l_tmp_image_id;
l_size_x = MAX(1, (gimp_image_width(l_tmp_image_id) * l_pvals->apv_scalex) / 100);

View File

@ -523,32 +523,6 @@ gint p_gimp_rotate(gint32 drawable_id, gint32 interpolation, gdouble angle_deg)
} /* end p_gimp_rotate */
/* ============================================================================
* p_gimp_channel_ops_duplicate
* ============================================================================
*/
gint32 p_gimp_channel_ops_duplicate (gint32 image_ID)
{
GimpParam *return_vals;
int nreturn_vals;
gint32 new_image_ID;
return_vals = gimp_run_procedure ("gimp_channel_ops_duplicate",
&nreturn_vals,
GIMP_PDB_IMAGE, image_ID,
GIMP_PDB_END);
new_image_ID = -1;
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
{
new_image_ID = return_vals[1].data.d_image;
}
gimp_destroy_params (return_vals, nreturn_vals);
return new_image_ID;
} /* end p_gimp_channel_ops_duplicate */
/* ============================================================================
* p_gimp_drawable_set_image
*

View File

@ -59,8 +59,6 @@ gint32 p_gimp_image_delete_guide(gint32 image_id, gint32 guide_id);
gint p_gimp_selection_none(gint32 image_id);
gint p_gimp_rotate(gint32 drawable_id, gint32 interpolation, gdouble angle_deg);
gint32 p_gimp_channel_ops_duplicate (gint32 image_ID);
gint p_gimp_drawable_set_image(gint32 drawable_id, gint32 image_id);