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



commit edf1bb794f6829279dcd9eabbd3d51789914b684
Author: Michael Natterer <mitch gimp org>
Date:   Sun Sep 5 23:22:17 2010 +0200

    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 833d43a..f92fd3b 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 57f0c0f..42f007a 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]