[gimp] plug-ins: gimp_drawable_get_image() -> gimp_item_get_image()



commit c87025ead62b7b68b593b9cb8ae08324e8b3557e
Author: Michael Natterer <mitch gimp org>
Date:   Fri Jul 9 14:01:53 2010 +0200

    plug-ins: gimp_drawable_get_image() -> gimp_item_get_image()

 plug-ins/common/sample-colorize.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/common/sample-colorize.c b/plug-ins/common/sample-colorize.c
index 46c02d5..b4633f9 100644
--- a/plug-ins/common/sample-colorize.c
+++ b/plug-ins/common/sample-colorize.c
@@ -2491,7 +2491,7 @@ is_layer_alive (gint32 drawable_id)
   if (drawable_id < 0)
     return -1;
 
-  if (gimp_drawable_get_image (drawable_id) < 0)
+  if (gimp_item_get_image (drawable_id) < 0)
     {
       printf ("sample colorize: unknown layer_id %d (Image closed?)\n",
               (int)drawable_id);
@@ -2568,7 +2568,7 @@ init_gdrw (t_GDRW         *gdrw,
       gdrw->index_alpha = 0;      /* there is no alpha channel */
     }
 
-  image_id = gimp_drawable_get_image (drawable->drawable_id);
+  image_id = gimp_item_get_image (drawable->drawable_id);
 
   /* check and see if we have a selection mask */
   sel_channel_id  = gimp_image_get_selection (image_id);
@@ -3087,7 +3087,7 @@ main_colorize (gint mc_flags)
       dst_drawable = gimp_drawable_get (g_values.dst_id);
       if (gimp_drawable_is_gray (g_values.dst_id) &&
           (mc_flags & MC_DST_REMAP))
-        gimp_image_convert_rgb (gimp_drawable_get_image (g_values.dst_id));
+        gimp_image_convert_rgb (gimp_item_get_image (g_values.dst_id));
       colorize_drawable (dst_drawable->drawable_id);
     }
 



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