[gimp] plug-ins: undeprecate after API deprecations



commit 45a7484b6a433eb7ced21355716798235fd3e90d
Author: Michael Natterer <mitch gimp org>
Date:   Fri Jul 9 10:36:52 2010 +0200

    plug-ins: undeprecate after API deprecations

 plug-ins/common/file-tiff-save.c   |    2 +-
 plug-ins/gfig/gfig-dialog.c        |    2 +-
 plug-ins/gfig/gfig.c               |    4 ++--
 plug-ins/ifs-compose/ifs-compose.c |    6 +++---
 4 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/plug-ins/common/file-tiff-save.c b/plug-ins/common/file-tiff-save.c
index f8751af..a0ce6f8 100644
--- a/plug-ins/common/file-tiff-save.c
+++ b/plug-ins/common/file-tiff-save.c
@@ -505,7 +505,7 @@ save_paths (TIFF   *tif,
        * - use iso8859-1 if possible
        * - otherwise use UTF-8, prepended with \xef\xbb\xbf (Byte-Order-Mark)
        */
-      name = gimp_vectors_get_name (vectors[v]);
+      name = gimp_item_get_name (vectors[v]);
       tmpname = g_convert (name, -1, "iso8859-1", "utf-8", NULL, &len, &err);
 
       if (tmpname && err == NULL)
diff --git a/plug-ins/gfig/gfig-dialog.c b/plug-ins/gfig/gfig-dialog.c
index bdacb10..09dd0ae 100644
--- a/plug-ins/gfig/gfig-dialog.c
+++ b/plug-ins/gfig/gfig-dialog.c
@@ -225,7 +225,7 @@ gfig_dialog (void)
    */
   gfig_list = NULL;
   undo_level = -1;
-  parasite = gimp_drawable_parasite_find (gfig_context->drawable_id, "gfig");
+  parasite = gimp_item_parasite_find (gfig_context->drawable_id, "gfig");
   gfig_context->enable_repaint = FALSE;
 
   /* debug */
diff --git a/plug-ins/gfig/gfig.c b/plug-ins/gfig/gfig.c
index c007157..e2179be 100644
--- a/plug-ins/gfig/gfig.c
+++ b/plug-ins/gfig/gfig.c
@@ -725,7 +725,7 @@ gfig_save_as_parasite (void)
 
   g_string_free (string, TRUE);
 
-  if (!gimp_drawable_parasite_attach (gfig_context->drawable_id, parasite))
+  if (!gimp_item_parasite_attach (gfig_context->drawable_id, parasite))
     {
       g_message (_("Error trying to save figure as a parasite: "
                    "can't attach parasite to drawable."));
@@ -745,7 +745,7 @@ gfig_load_from_parasite (void)
   GimpParasite *parasite;
   GFigObj      *gfig;
 
-  parasite = gimp_drawable_parasite_find (gfig_context->drawable_id, "gfig");
+  parasite = gimp_item_parasite_find (gfig_context->drawable_id, "gfig");
   if (! parasite)
     return NULL;
 
diff --git a/plug-ins/ifs-compose/ifs-compose.c b/plug-ins/ifs-compose/ifs-compose.c
index 03495dc..7228366 100644
--- a/plug-ins/ifs-compose/ifs-compose.c
+++ b/plug-ins/ifs-compose/ifs-compose.c
@@ -386,8 +386,8 @@ run (const gchar      *name,
       /*  Possibly retrieve data; first look for a parasite -
        *  if not found, fall back to global values
        */
-      parasite = gimp_drawable_parasite_find (drawable->drawable_id,
-                                              PLUG_IN_PARASITE);
+      parasite = gimp_item_parasite_find (drawable->drawable_id,
+                                          PLUG_IN_PARASITE);
       if (parasite)
         {
           found_parasite = ifsvals_parse_string (gimp_parasite_data (parasite),
@@ -474,7 +474,7 @@ run (const gchar      *name,
                                         GIMP_PARASITE_PERSISTENT |
                                         GIMP_PARASITE_UNDOABLE,
                                         strlen (str) + 1, str);
-          gimp_drawable_parasite_attach (drawable->drawable_id, parasite);
+          gimp_item_parasite_attach (drawable->drawable_id, parasite);
           gimp_parasite_free (parasite);
 
           g_free (str);



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