Commit 92d6b927 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

libgimp/gimp.[ch] libgimp/gimpdrawable.[ch] changed attach_new_parasite

2005-03-02  Manish Singh  <yosh@gimp.org>

        * libgimp/gimp.[ch]
        * libgimp/gimpdrawable.[ch]
        * libgimp/gimpimage.[ch]: changed attach_new_parasite variants
        to return success or failure.
parent 35f69271
2005-03-02 Manish Singh <yosh@gimp.org>
* libgimp/gimp.[ch]
* libgimp/gimpdrawable.[ch]
* libgimp/gimpimage.[ch]: changed attach_new_parasite variants
to return success or failure.
2005-03-02 Sven Neumann <sven@gimp.org>
* app/dialogs/resize-dialog.c (resize_dialog_reset)
......
......@@ -1374,19 +1374,25 @@ gimp_extension_process (guint timeout)
* Convenience function that creates a parasite and attaches it
* to the GIMP.
*
* Return value: TRUE on successful creation and attachment of
* the new parasite.
*
* See Also: gimp_parasite_attach()
*/
void
gboolean
gimp_attach_new_parasite (const gchar *name,
gint flags,
gint size,
gconstpointer data)
{
GimpParasite *parasite = gimp_parasite_new (name, flags, size, data);
gboolean success;
gimp_parasite_attach (parasite);
success = gimp_parasite_attach (parasite);
gimp_parasite_free (parasite);
return success;
}
......
......@@ -326,7 +326,7 @@ gint gimp_monitor_number (void) G_GNUC_CONST;
const gchar * gimp_get_progname (void) G_GNUC_CONST;
void gimp_attach_new_parasite (const gchar *name,
gboolean gimp_attach_new_parasite (const gchar *name,
gint flags,
gint size,
gconstpointer data);
......
......@@ -331,9 +331,12 @@ gimp_drawable_get_sub_thumbnail_data (gint32 drawable_ID,
* Convenience function that creates a parasite and attaches it
* to the GIMP.
*
* Return value: TRUE on successful creation and attachment of
* the new parasite.
*
* See Also: gimp_drawable_parasite_attach()
*/
void
gboolean
gimp_drawable_attach_new_parasite (gint32 drawable_ID,
const gchar *name,
gint flags,
......@@ -341,8 +344,11 @@ gimp_drawable_attach_new_parasite (gint32 drawable_ID,
gconstpointer data)
{
GimpParasite *parasite = gimp_parasite_new (name, flags, size, data);
gboolean success;
gimp_drawable_parasite_attach (drawable_ID, parasite);
success = gimp_drawable_parasite_attach (drawable_ID, parasite);
gimp_parasite_free (parasite);
return success;
}
......@@ -69,7 +69,7 @@ guchar * gimp_drawable_get_sub_thumbnail_data (gint32 drawable_ID,
gint *dest_height,
gint *bpp);
void gimp_drawable_attach_new_parasite (gint32 drawable_ID,
gboolean gimp_drawable_attach_new_parasite (gint32 drawable_ID,
const gchar *name,
gint flags,
gint size,
......
......@@ -145,9 +145,12 @@ gimp_image_get_thumbnail_data (gint32 image_ID,
* Convenience function that creates a parasite and attaches it
* to the GIMP.
*
* Return value: TRUE on successful creation and attachment of
* the new parasite.
*
* See Also: gimp_image_parasite_attach()
*/
void
gboolean
gimp_image_attach_new_parasite (gint32 image_ID,
const gchar *name,
gint flags,
......@@ -155,8 +158,11 @@ gimp_image_attach_new_parasite (gint32 image_ID,
gconstpointer data)
{
GimpParasite *parasite = gimp_parasite_new (name, flags, size, data);
gboolean success;
gimp_image_parasite_attach (image_ID, parasite);
success = gimp_image_parasite_attach (image_ID, parasite);
gimp_parasite_free (parasite);
return success;
}
......@@ -46,7 +46,7 @@ guchar * gimp_image_get_thumbnail_data (gint32 image_ID,
gint *height,
gint *bpp);
void gimp_image_attach_new_parasite (gint32 image_ID,
gboolean gimp_image_attach_new_parasite (gint32 image_ID,
const gchar *name,
gint flags,
gint size,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment