Commit 446a11e9 authored by Marc Lehmann's avatar Marc Lehmann
Browse files

*** empty log message ***

parent f0eb5d5b
Sat Feb 13 19:05:16 CET 1999 Marc Lehmann <pcg@goof.com>
* app/internal_procs.c
* app/parasite_cmds.h
* app/parasite_cmds.c
* app/gimpparasite.h
* app/gimpparasite.c
* app/gimage_cmds.h
* app/gimage_cmds.c
* app/gimpimage.h
* app/gimpimage.c
* app/drawable_cmds.h
* app/drawable_cmds.c
* app/gimpdrawable.h
* app/gimpdrawable.c
Added parasite_list functions for global parasites, drawables and
images as internal (C) and pdb functions.
Wed Feb 10 23:44:00 MET 1999 Sven Neumann <sven@gimp.org>
* app/preferences_dialog.c: provide a simple way to change the
......@@ -5,12 +24,11 @@ Wed Feb 10 23:44:00 MET 1999 Sven Neumann <sven@gimp.org>
* app/scale.c: also update the title when using the zoom tool
Mon Feb 8 18:47:00 CST 1999 Seth Burgess <sjburges@gimp.org>
* plug-ins/perl/examples/feedback.pl
* plug-ins/perl/examples/xachblocks.pl
* plug-ins/perl/examples/xachshadows.pl: Updated version
* plug-ins/perl/examples/feedback.pl
* plug-ins/perl/examples/xachblocks.pl
* plug-ins/perl/examples/xachshadows.pl: Updated version
information on my Gimp-Perl plugins that were improved by Marc
Lehamn so I can keep track better.
Lehmann so I can keep track better.
Mon Feb 8 19:17:58 GMT 1999 Adam D. Moss <adam@gimp.org>
......
......@@ -46,5 +46,23 @@ gimp_find_parasite (char *name)
return parasite_list_find(parasites, name);
}
static void list_func(char *key, Parasite *p, char ***cur)
{
*(*cur)++ = (char *) g_strdup (key);
}
char **
gimp_parasite_list (gint *count)
{
char **list, **cur;
*count = parasite_list_length (parasites);
cur = list = (char **) g_malloc (sizeof (char *) * *count);
parasite_list_foreach (parasites, (GHFunc)list_func, &cur);
return list;
}
......@@ -24,5 +24,6 @@ void gimp_init_parasites (void);
void gimp_attach_parasite (Parasite *p);
void gimp_detach_parasite (char *name);
Parasite * gimp_find_parasite (char *name);
char ** gimp_parasite_list (gint *count);
#endif /* __GIMP_PARASITE_H__ */
......@@ -390,6 +390,24 @@ gimp_drawable_find_parasite (const GimpDrawable *drawable, const char *name)
return parasite_list_find(drawable->parasites, name);
}
static void list_func(char *key, Parasite *p, char ***cur)
{
*(*cur)++ = (char *) g_strdup (key);
}
char **
gimp_drawable_parasite_list (GimpDrawable *drawable, gint *count)
{
char **list, **cur;
*count = parasite_list_length (drawable->parasites);
cur = list = (char **) g_malloc (sizeof (char *) * *count);
parasite_list_foreach (drawable->parasites, (GHFunc)list_func, &cur);
return list;
}
void
gimp_drawable_attach_parasite (GimpDrawable *drawable, Parasite *parasite)
{
......
......@@ -78,6 +78,10 @@ Parasite * gimp_drawable_find_parasite (const GimpDrawable *,
void gimp_drawable_attach_parasite (GimpDrawable *, Parasite *);
void gimp_drawable_detach_parasite (GimpDrawable *,
const char *);
Parasite * gimp_drawable_find_parasite (const GimpDrawable *,
const char *);
char ** gimp_drawable_parasite_list (GimpDrawable *drawable,
gint *count);
Tattoo gimp_drawable_get_tattoo (const GimpDrawable *);
GimpDrawable * gimp_drawable_get_ID (int);
......
......@@ -924,6 +924,24 @@ gimp_image_find_parasite (const GimpImage *gimage, const char *name)
return parasite_list_find(gimage->parasites, name);
}
static void list_func(char *key, Parasite *p, char ***cur)
{
*(*cur)++ = (char *) g_strdup (key);
}
char **
gimp_image_parasite_list (GimpImage *image, gint *count)
{
char **list, **cur;
*count = parasite_list_length (image->parasites);
cur = list = (char **) g_malloc (sizeof (char *) * *count);
parasite_list_foreach (image->parasites, (GHFunc)list_func, &cur);
return list;
}
void
gimp_image_attach_parasite (GimpImage *gimage, Parasite *parasite)
{
......
......@@ -141,6 +141,8 @@ void gimp_image_delete_guide (GimpImage *, Guide *);
Parasite * gimp_image_find_parasite (const GimpImage *,
const char *name);
char ** gimp_image_parasite_list (GimpImage *image,
gint *count);
void gimp_image_attach_parasite (GimpImage *, Parasite *);
void gimp_image_detach_parasite (GimpImage *, const char *);
......
......@@ -924,6 +924,24 @@ gimp_image_find_parasite (const GimpImage *gimage, const char *name)
return parasite_list_find(gimage->parasites, name);
}
static void list_func(char *key, Parasite *p, char ***cur)
{
*(*cur)++ = (char *) g_strdup (key);
}
char **
gimp_image_parasite_list (GimpImage *image, gint *count)
{
char **list, **cur;
*count = parasite_list_length (image->parasites);
cur = list = (char **) g_malloc (sizeof (char *) * *count);
parasite_list_foreach (image->parasites, (GHFunc)list_func, &cur);
return list;
}
void
gimp_image_attach_parasite (GimpImage *gimage, Parasite *parasite)
{
......
......@@ -141,6 +141,8 @@ void gimp_image_delete_guide (GimpImage *, Guide *);
Parasite * gimp_image_find_parasite (const GimpImage *,
const char *name);
char ** gimp_image_parasite_list (GimpImage *image,
gint *count);
void gimp_image_attach_parasite (GimpImage *, Parasite *);
void gimp_image_detach_parasite (GimpImage *, const char *);
......
......@@ -924,6 +924,24 @@ gimp_image_find_parasite (const GimpImage *gimage, const char *name)
return parasite_list_find(gimage->parasites, name);
}
static void list_func(char *key, Parasite *p, char ***cur)
{
*(*cur)++ = (char *) g_strdup (key);
}
char **
gimp_image_parasite_list (GimpImage *image, gint *count)
{
char **list, **cur;
*count = parasite_list_length (image->parasites);
cur = list = (char **) g_malloc (sizeof (char *) * *count);
parasite_list_foreach (image->parasites, (GHFunc)list_func, &cur);
return list;
}
void
gimp_image_attach_parasite (GimpImage *gimage, Parasite *parasite)
{
......
......@@ -141,6 +141,8 @@ void gimp_image_delete_guide (GimpImage *, Guide *);
Parasite * gimp_image_find_parasite (const GimpImage *,
const char *name);
char ** gimp_image_parasite_list (GimpImage *image,
gint *count);
void gimp_image_attach_parasite (GimpImage *, Parasite *);
void gimp_image_detach_parasite (GimpImage *, const char *);
......
......@@ -924,6 +924,24 @@ gimp_image_find_parasite (const GimpImage *gimage, const char *name)
return parasite_list_find(gimage->parasites, name);
}
static void list_func(char *key, Parasite *p, char ***cur)
{
*(*cur)++ = (char *) g_strdup (key);
}
char **
gimp_image_parasite_list (GimpImage *image, gint *count)
{
char **list, **cur;
*count = parasite_list_length (image->parasites);
cur = list = (char **) g_malloc (sizeof (char *) * *count);
parasite_list_foreach (image->parasites, (GHFunc)list_func, &cur);
return list;
}
void
gimp_image_attach_parasite (GimpImage *gimage, Parasite *parasite)
{
......
......@@ -141,6 +141,8 @@ void gimp_image_delete_guide (GimpImage *, Guide *);
Parasite * gimp_image_find_parasite (const GimpImage *,
const char *name);
char ** gimp_image_parasite_list (GimpImage *image,
gint *count);
void gimp_image_attach_parasite (GimpImage *, Parasite *);
void gimp_image_detach_parasite (GimpImage *, const char *);
......
......@@ -924,6 +924,24 @@ gimp_image_find_parasite (const GimpImage *gimage, const char *name)
return parasite_list_find(gimage->parasites, name);
}
static void list_func(char *key, Parasite *p, char ***cur)
{
*(*cur)++ = (char *) g_strdup (key);
}
char **
gimp_image_parasite_list (GimpImage *image, gint *count)
{
char **list, **cur;
*count = parasite_list_length (image->parasites);
cur = list = (char **) g_malloc (sizeof (char *) * *count);
parasite_list_foreach (image->parasites, (GHFunc)list_func, &cur);
return list;
}
void
gimp_image_attach_parasite (GimpImage *gimage, Parasite *parasite)
{
......
......@@ -141,6 +141,8 @@ void gimp_image_delete_guide (GimpImage *, Guide *);
Parasite * gimp_image_find_parasite (const GimpImage *,
const char *name);
char ** gimp_image_parasite_list (GimpImage *image,
gint *count);
void gimp_image_attach_parasite (GimpImage *, Parasite *);
void gimp_image_detach_parasite (GimpImage *, const char *);
......
......@@ -924,6 +924,24 @@ gimp_image_find_parasite (const GimpImage *gimage, const char *name)
return parasite_list_find(gimage->parasites, name);
}
static void list_func(char *key, Parasite *p, char ***cur)
{
*(*cur)++ = (char *) g_strdup (key);
}
char **
gimp_image_parasite_list (GimpImage *image, gint *count)
{
char **list, **cur;
*count = parasite_list_length (image->parasites);
cur = list = (char **) g_malloc (sizeof (char *) * *count);
parasite_list_foreach (image->parasites, (GHFunc)list_func, &cur);
return list;
}
void
gimp_image_attach_parasite (GimpImage *gimage, Parasite *parasite)
{
......
......@@ -141,6 +141,8 @@ void gimp_image_delete_guide (GimpImage *, Guide *);
Parasite * gimp_image_find_parasite (const GimpImage *,
const char *name);
char ** gimp_image_parasite_list (GimpImage *image,
gint *count);
void gimp_image_attach_parasite (GimpImage *, Parasite *);
void gimp_image_detach_parasite (GimpImage *, const char *);
......
......@@ -46,5 +46,23 @@ gimp_find_parasite (char *name)
return parasite_list_find(parasites, name);
}
static void list_func(char *key, Parasite *p, char ***cur)
{
*(*cur)++ = (char *) g_strdup (key);
}
char **
gimp_parasite_list (gint *count)
{
char **list, **cur;
*count = parasite_list_length (parasites);
cur = list = (char **) g_malloc (sizeof (char *) * *count);
parasite_list_foreach (parasites, (GHFunc)list_func, &cur);
return list;
}
......@@ -24,5 +24,6 @@ void gimp_init_parasites (void);
void gimp_attach_parasite (Parasite *p);
void gimp_detach_parasite (char *name);
Parasite * gimp_find_parasite (char *name);
char ** gimp_parasite_list (gint *count);
#endif /* __GIMP_PARASITE_H__ */
......@@ -924,6 +924,24 @@ gimp_image_find_parasite (const GimpImage *gimage, const char *name)
return parasite_list_find(gimage->parasites, name);
}
static void list_func(char *key, Parasite *p, char ***cur)
{
*(*cur)++ = (char *) g_strdup (key);
}
char **
gimp_image_parasite_list (GimpImage *image, gint *count)
{
char **list, **cur;
*count = parasite_list_length (image->parasites);
cur = list = (char **) g_malloc (sizeof (char *) * *count);
parasite_list_foreach (image->parasites, (GHFunc)list_func, &cur);
return list;
}
void
gimp_image_attach_parasite (GimpImage *gimage, Parasite *parasite)
{
......
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