[gimp] libgimp, plug-ins: change the parasite function calls in more places
- From: Mikael Magnusson <mikachu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimp, plug-ins: change the parasite function calls in more places
- Date: Wed, 2 Mar 2011 20:58:06 +0000 (UTC)
commit c913c1512adad92c90da2eaad2a5d72c3630c8d4
Author: Mikael Magnusson <mikachu src gnome org>
Date: Wed Mar 2 20:53:35 2011 +0100
libgimp, plug-ins: change the parasite function calls in more places
devel-docs/libgimp/libgimp-sections.txt | 4 ++--
libgimp/gimp.def | 4 ++--
plug-ins/pygimp/pygimp-drawable.c | 5 +++--
plug-ins/pygimp/pygimp-vectors.c | 5 +++--
4 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/devel-docs/libgimp/libgimp-sections.txt b/devel-docs/libgimp/libgimp-sections.txt
index b0aba32..174df19 100644
--- a/devel-docs/libgimp/libgimp-sections.txt
+++ b/devel-docs/libgimp/libgimp-sections.txt
@@ -664,8 +664,8 @@ gimp_item_get_tattoo
gimp_item_set_tattoo
gimp_item_attach_parasite
gimp_item_detach_parasite
-gimp_item_find_parasite
-gimp_item_list_parasites
+gimp_item_get_parasite
+gimp_item_get_parasite_list
</SECTION>
<SECTION>
diff --git a/libgimp/gimp.def b/libgimp/gimp.def
index 8bf1600..1cda729 100644
--- a/libgimp/gimp.def
+++ b/libgimp/gimp.def
@@ -451,12 +451,13 @@ EXPORTS
gimp_item_attach_parasite
gimp_item_delete
gimp_item_detach_parasite
- gimp_item_find_parasite
gimp_item_get_children
gimp_item_get_image
gimp_item_get_linked
gimp_item_get_lock_content
gimp_item_get_name
+ gimp_item_get_parasite
+ gimp_item_get_parasite_list
gimp_item_get_parent
gimp_item_get_tattoo
gimp_item_get_visible
@@ -469,7 +470,6 @@ EXPORTS
gimp_item_is_text_layer
gimp_item_is_valid
gimp_item_is_vectors
- gimp_item_list_parasites
gimp_item_set_linked
gimp_item_set_lock_content
gimp_item_set_name
diff --git a/plug-ins/pygimp/pygimp-drawable.c b/plug-ins/pygimp/pygimp-drawable.c
index 65bb1ba..8c97a40 100644
--- a/plug-ins/pygimp/pygimp-drawable.c
+++ b/plug-ins/pygimp/pygimp-drawable.c
@@ -229,7 +229,7 @@ drw_parasite_find(PyGimpDrawable *self, PyObject *args)
if (!PyArg_ParseTuple(args, "s:parasite_find", &name))
return NULL;
- return pygimp_parasite_new(gimp_item_find_parasite(self->ID, name));
+ return pygimp_parasite_new(gimp_item_get_parasite(self->ID, name));
}
static PyObject *
@@ -308,7 +308,8 @@ drw_parasite_list(PyGimpDrawable *self)
gint num_parasites;
gchar **parasites;
- if (gimp_item_list_parasites(self->ID, &num_parasites, ¶sites)) {
+ parasites = gimp_item_get_parasite_list(self->ID, &num_parasites);
+ if (parasites) {
PyObject *ret;
gint i;
diff --git a/plug-ins/pygimp/pygimp-vectors.c b/plug-ins/pygimp/pygimp-vectors.c
index 76b28c2..504efd1 100644
--- a/plug-ins/pygimp/pygimp-vectors.c
+++ b/plug-ins/pygimp/pygimp-vectors.c
@@ -650,7 +650,7 @@ vectors_parasite_find(PyGimpVectors *self, PyObject *args)
if (!PyArg_ParseTuple(args, "s:parasite_find", &name))
return NULL;
- return pygimp_parasite_new(gimp_item_find_parasite(self->ID, name));
+ return pygimp_parasite_new(gimp_item_get_parasite(self->ID, name));
}
static PyObject *
@@ -698,7 +698,8 @@ vectors_parasite_list(PyGimpVectors *self)
gint num_parasites;
gchar **parasites;
- if (gimp_item_list_parasites(self->ID, &num_parasites, ¶sites)) {
+ parasites = gimp_item_get_parasite_list(self->ID, &num_parasites);
+ if (parasites) {
PyObject *ret;
gint i;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]