From edf1bb794f6829279dcd9eabbd3d51789914b684 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sun, 5 Sep 2010 23:22:17 +0200 Subject: [PATCH] plug-ins: use gimp_item_to_selection() instead of deprecated API --- plug-ins/common/lcms.c | 2 +- plug-ins/file-xjt/xjt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plug-ins/common/lcms.c b/plug-ins/common/lcms.c index 833d43a737..f92fd3bc8d 100644 --- a/plug-ins/common/lcms.c +++ b/plug-ins/common/lcms.c @@ -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); } diff --git a/plug-ins/file-xjt/xjt.c b/plug-ins/file-xjt/xjt.c index 57f0c0f762..42f007a713 100644 --- a/plug-ins/file-xjt/xjt.c +++ b/plug-ins/file-xjt/xjt.c @@ -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);