plug-ins: use gimp_item_to_selection() instead of deprecated API

This commit is contained in:
Michael Natterer 2010-09-05 23:22:17 +02:00
parent 8ab4fbcf28
commit edf1bb794f
2 changed files with 2 additions and 2 deletions

View File

@ -915,7 +915,7 @@ lcms_image_apply_profile (gint32 image,
if (saved_selection != -1)
{
gimp_selection_load (saved_selection);
gimp_item_to_selection (saved_selection, GIMP_CHANNEL_OP_REPLACE);
gimp_image_remove_channel (image, saved_selection);
}

View File

@ -3602,7 +3602,7 @@ load_xjt_image (const gchar *filename,
if (xjt_debug) printf ("XJT-DEBUG: SELECTION loaded channel id = %d\n",
(int) l_channel_id);
gimp_selection_load (l_channel_id);
gimp_item_to_selection (l_channel_id, GIMP_CHANNEL_OP_REPLACE);
/* delete the channel after load into selection */
gimp_drawable_delete (l_channel_id);