Commit 1cde0279 authored by Sven Neumann's avatar Sven Neumann

Moved some functions out of paths_dialog.c into the new file

paths.c and did a general namespace cleanup:
s/PATHP/Path*/  s/PATHIMAGELISTP/PathList/ and friends.

Paths are now copied on image duplicate (fixes bug #5726).

Removed Path Tool and XInput Airbrush from the build and
renamed "Layers & Channels" to "Layers, Channels & Paths".

Applied patch from Wolfgang Hofer to xjt.c that enables loading
and saving of paths based on Andy's change explained below.


--Sven
parent 8f6bca32
Wed Feb 16 02:36:48 CET 2000 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/paths.pdb
* app/Makefile.am
* app/bezier_select.c
* app/bezier_select.h
* app/bezier_selectP.h
* app/channel_ops.c
* app/context_manager.c
* app/gimage_cmds.c
* app/gimpimage.c
* app/gimpimage.h
* app/gimpimageP.h
* app/lc_dialog.c
* app/menus.c
* app/path.c: new file
* app/pathsP.h
* app/paths_cmds.c
* app/paths_dialog.c
* app/paths_dialog.h
* app/paths_dialogP.h
* app/pixmaps2.h
* app/tool_options.c
* app/tools.c
* app/toolsF.h
* app/xcf.c:
Moved some functions out of paths_dialog.c into the new file
paths.c and did a general namespace cleanup:
s/PATHP/Path*/ s/PATHIMAGELISTP/PathList/ and friends.
Paths are now copied on image duplicate (fixes bug #5726).
Removed Path Tool and XInput Airbrush from the build and
renamed "Layers & Channels" to "Layers, Channels & Paths".
* plug-ins/xjt/README_xjt_fileformat.txt
* plug-ins/xjt/xjt.c
* plug-ins/xjt/xpdb_calls.c
* plug-ins/xjt/xpdb_calls.h: applied patch from Wolfgang Hofer
that enables loading and saving of paths based on Andy's change
explained below.
Tue Feb 15 23:27:42 GMT 2000 Andy Thomas <alt@gimp.org>
* gimp/app/gimpdrawable.c
......
......@@ -328,13 +328,7 @@ gimp_SOURCES = \
parasitelist.h \
parasitelistF.h \
parasitelistP.h \
path_bezier.c \
path_bezier.h \
path_curves.c \
path_curves.h \
path_tool.c \
path_tool.h \
path_toolP.h \
path.c \
paths_cmds.c \
paths_dialog.c \
paths_dialog.h \
......@@ -434,9 +428,7 @@ gimp_SOURCES = \
unit_cmds.c \
wilber.h \
xcf.c \
xcf.h \
xinput_airbrush.c \
xinput_airbrush.h
xcf.h
EXTRA_DIST = \
colormap_dialog.i.c \
......
......@@ -409,6 +409,13 @@ bezier_select_reset (BezierSelect *bezier_sel)
bezier_sel->scanlines = NULL;
}
void
bezier_select_free (BezierSelect *bezier_sel)
{
bezier_select_reset (bezier_sel);
g_free (bezier_sel);
}
/* Find the curve that points to this curve. This makes to_check point
* the start of a curve.
*/
......
......@@ -22,9 +22,9 @@
/* bezier select functions */
void bezier_select_dialog (void);
Tool * tools_new_bezier_select (void);
void tools_free_bezier_select (Tool *);
gboolean bezier_tool_selected(void);
void bezier_select_dialog (void);
Tool * tools_new_bezier_select (void);
void tools_free_bezier_select (Tool *);
gboolean bezier_tool_selected (void);
#endif /* __BEZIER_SELECT_H__ */
......@@ -18,6 +18,7 @@
#ifndef __BEZIER_SELECTP_H__
#define __BEZIER_SELECTP_H__
#include "draw_core.h"
#define BEZIER_START 1
#define BEZIER_ADD 2
......@@ -41,7 +42,7 @@ typedef struct _bezier_point BezierPoint;
struct _bezier_point
{
int type; /* type of point (anchor/control/move) */
double x, y; /* location of point in image space */
double x, y; /* location of point in image space */
int sx, sy; /* location of point in screen space */
BezierPoint *next; /* next point on curve */
BezierPoint *prev; /* prev point on curve */
......@@ -82,6 +83,7 @@ typedef void (*BezierPointsFunc) (BezierSelect *, GdkPoint *, int,gpointer);
int bezier_select_load (void *, BezierPoint *, int, int);
void bezier_draw_curve (BezierSelect *,BezierPointsFunc, int,gpointer);
void bezier_select_reset (BezierSelect *);
void bezier_select_free (BezierSelect *bezier_sel);
void bezier_add_point (BezierSelect *, int, gdouble, gdouble);
void bezier_paste_bezierselect_to_current (GDisplay *,BezierSelect *);
void bezier_select_mode (gint);
......@@ -91,3 +93,5 @@ gint bezier_distance_along (BezierSelect *, gint, gdouble,gint *
void bezier_draw (GDisplay *,BezierSelect *);
#endif /* __BEZIER_SELECTP_H__ */
......@@ -517,7 +517,7 @@ duplicate (GimpImage *gimage)
Channel *active_channel = NULL;
GimpDrawable *new_floating_sel_drawable = NULL;
GimpDrawable *floating_sel_drawable = NULL;
PathsList *paths;
PathList *paths;
gint count;
gimp_add_busy_cursors_until_idle ();
......@@ -663,22 +663,22 @@ duplicate (GimpImage *gimage)
/* Copy paths */
paths = gimp_image_get_paths (gimage);
#ifdef 0 /* we need a path_duplicate() function */
if (paths)
{
GSList *plist = NULL;
PATHP path;
GSList *new_plist = NULL;
Path *path;
PathList *new_paths;
for (plist = paths->bz_paths; plist; plist = plist->next)
{
path = plist->data;
plist = g_slist_append (plist, path_duplicate (new_gimage, path));
new_plist = g_slist_append (new_plist, path_copy (new_gimage, path));
}
new_paths = pathsList_new (new_gimage, paths->last_selected_row, plist);
new_paths = path_list_new (new_gimage, paths->last_selected_row, new_plist);
gimp_image_set_paths (new_gimage, new_paths);
}
#endif
gimage_enable_undo (new_gimage);
......
......@@ -164,7 +164,7 @@ context_manager_init (void)
case INK:
case DODGEBURN:
case SMUDGE:
case XINPUT_AIRBRUSH:
/* case XINPUT_AIRBRUSH: */
tool_info[i].tool_context =
gimp_context_new (tool_info[i].private_tip, global_tool_context);
break;
......
......@@ -517,7 +517,7 @@ duplicate (GimpImage *gimage)
Channel *active_channel = NULL;
GimpDrawable *new_floating_sel_drawable = NULL;
GimpDrawable *floating_sel_drawable = NULL;
PathsList *paths;
PathList *paths;
gint count;
gimp_add_busy_cursors_until_idle ();
......@@ -663,22 +663,22 @@ duplicate (GimpImage *gimage)
/* Copy paths */
paths = gimp_image_get_paths (gimage);
#ifdef 0 /* we need a path_duplicate() function */
if (paths)
{
GSList *plist = NULL;
PATHP path;
GSList *new_plist = NULL;
Path *path;
PathList *new_paths;
for (plist = paths->bz_paths; plist; plist = plist->next)
{
path = plist->data;
plist = g_slist_append (plist, path_duplicate (new_gimage, path));
new_plist = g_slist_append (new_plist, path_copy (new_gimage, path));
}
new_paths = pathsList_new (new_gimage, paths->last_selected_row, plist);
new_paths = path_list_new (new_gimage, paths->last_selected_row, new_plist);
gimp_image_set_paths (new_gimage, new_paths);
}
#endif
gimage_enable_undo (new_gimage);
......
......@@ -517,7 +517,7 @@ duplicate (GimpImage *gimage)
Channel *active_channel = NULL;
GimpDrawable *new_floating_sel_drawable = NULL;
GimpDrawable *floating_sel_drawable = NULL;
PathsList *paths;
PathList *paths;
gint count;
gimp_add_busy_cursors_until_idle ();
......@@ -663,22 +663,22 @@ duplicate (GimpImage *gimage)
/* Copy paths */
paths = gimp_image_get_paths (gimage);
#ifdef 0 /* we need a path_duplicate() function */
if (paths)
{
GSList *plist = NULL;
PATHP path;
GSList *new_plist = NULL;
Path *path;
PathList *new_paths;
for (plist = paths->bz_paths; plist; plist = plist->next)
{
path = plist->data;
plist = g_slist_append (plist, path_duplicate (new_gimage, path));
new_plist = g_slist_append (new_plist, path_copy (new_gimage, path));
}
new_paths = pathsList_new (new_gimage, paths->last_selected_row, plist);
new_paths = path_list_new (new_gimage, paths->last_selected_row, new_plist);
gimp_image_set_paths (new_gimage, new_paths);
}
#endif
gimage_enable_undo (new_gimage);
......
......@@ -1165,18 +1165,19 @@ gimp_image_get_new_tattoo (GimpImage *image)
{
image->tattoo_state++;
if (image->tattoo_state <= 0)
g_warning("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
g_warning ("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
return (image->tattoo_state);
}
Tattoo
gimp_image_get_tattoo_state(GimpImage *image)
gimp_image_get_tattoo_state (GimpImage *image)
{
return (image->tattoo_state);
}
int
gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
gimp_image_set_tattoo_state (GimpImage *gimage,
Tattoo val)
{
Layer *layer;
GSList *layers = gimage->layers;
......@@ -1184,8 +1185,8 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
Channel *channel;
GSList *channels = gimage->channels;
Tattoo maxval = 0;
PATHP pptr = NULL;
PathsList *plist;
Path *pptr = NULL;
PathList *plist;
while (layers)
{
......@@ -1201,7 +1202,7 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
}
/* Now check path an't got this tattoo */
if(paths_get_path_by_tattoo(gimage,ltattoo) != NULL)
if(path_get_path_by_tattoo(gimage,ltattoo) != NULL)
{
retval = FALSE; /* Oopps duplicated tattoo in layer */
}
......@@ -1219,7 +1220,7 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
if(ctattoo > maxval)
maxval = ctattoo;
/* Now check path an't got this tattoo */
if(paths_get_path_by_tattoo(gimage,ctattoo) != NULL)
if(path_get_path_by_tattoo (gimage, ctattoo) != NULL)
{
retval = FALSE; /* Oopps duplicated tattoo in layer */
}
......@@ -1240,7 +1241,7 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
{
pptr = pl->data;
ptattoo = paths_get_tattoo (pptr);
ptattoo = path_get_tattoo (pptr);
if(ptattoo > maxval)
maxval = ptattoo;
......@@ -1272,12 +1273,12 @@ gimp_image_colormap_changed (GimpImage *image,
void
gimp_image_set_paths (GimpImage *gimage,
PathsList *paths)
PathList *paths)
{
gimage->paths = paths;
}
PathsList *
PathList *
gimp_image_get_paths (GimpImage *gimage)
{
return gimage->paths;
......
......@@ -171,8 +171,8 @@ Tattoo gimp_image_get_new_tattoo (GimpImage *);
int gimp_image_set_tattoo_state (GimpImage *, Tattoo);
Tattoo gimp_image_get_tattoo_state (GimpImage *);
void gimp_image_set_paths (GimpImage *, PathsList *);
PathsList * gimp_image_get_paths (GimpImage *);
void gimp_image_set_paths (GimpImage *, PathList *);
PathList * gimp_image_get_paths (GimpImage *);
/* Temporary hack till colormap manipulation is encapsulated in functions.
Call this whenever you modify an image's colormap. The ncol argument
......
......@@ -1165,18 +1165,19 @@ gimp_image_get_new_tattoo (GimpImage *image)
{
image->tattoo_state++;
if (image->tattoo_state <= 0)
g_warning("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
g_warning ("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
return (image->tattoo_state);
}
Tattoo
gimp_image_get_tattoo_state(GimpImage *image)
gimp_image_get_tattoo_state (GimpImage *image)
{
return (image->tattoo_state);
}
int
gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
gimp_image_set_tattoo_state (GimpImage *gimage,
Tattoo val)
{
Layer *layer;
GSList *layers = gimage->layers;
......@@ -1184,8 +1185,8 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
Channel *channel;
GSList *channels = gimage->channels;
Tattoo maxval = 0;
PATHP pptr = NULL;
PathsList *plist;
Path *pptr = NULL;
PathList *plist;
while (layers)
{
......@@ -1201,7 +1202,7 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
}
/* Now check path an't got this tattoo */
if(paths_get_path_by_tattoo(gimage,ltattoo) != NULL)
if(path_get_path_by_tattoo(gimage,ltattoo) != NULL)
{
retval = FALSE; /* Oopps duplicated tattoo in layer */
}
......@@ -1219,7 +1220,7 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
if(ctattoo > maxval)
maxval = ctattoo;
/* Now check path an't got this tattoo */
if(paths_get_path_by_tattoo(gimage,ctattoo) != NULL)
if(path_get_path_by_tattoo (gimage, ctattoo) != NULL)
{
retval = FALSE; /* Oopps duplicated tattoo in layer */
}
......@@ -1240,7 +1241,7 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
{
pptr = pl->data;
ptattoo = paths_get_tattoo (pptr);
ptattoo = path_get_tattoo (pptr);
if(ptattoo > maxval)
maxval = ptattoo;
......@@ -1272,12 +1273,12 @@ gimp_image_colormap_changed (GimpImage *image,
void
gimp_image_set_paths (GimpImage *gimage,
PathsList *paths)
PathList *paths)
{
gimage->paths = paths;
}
PathsList *
PathList *
gimp_image_get_paths (GimpImage *gimage)
{
return gimage->paths;
......
......@@ -171,8 +171,8 @@ Tattoo gimp_image_get_new_tattoo (GimpImage *);
int gimp_image_set_tattoo_state (GimpImage *, Tattoo);
Tattoo gimp_image_get_tattoo_state (GimpImage *);
void gimp_image_set_paths (GimpImage *, PathsList *);
PathsList * gimp_image_get_paths (GimpImage *);
void gimp_image_set_paths (GimpImage *, PathList *);
PathList * gimp_image_get_paths (GimpImage *);
/* Temporary hack till colormap manipulation is encapsulated in functions.
Call this whenever you modify an image's colormap. The ncol argument
......
......@@ -1165,18 +1165,19 @@ gimp_image_get_new_tattoo (GimpImage *image)
{
image->tattoo_state++;
if (image->tattoo_state <= 0)
g_warning("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
g_warning ("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
return (image->tattoo_state);
}
Tattoo
gimp_image_get_tattoo_state(GimpImage *image)
gimp_image_get_tattoo_state (GimpImage *image)
{
return (image->tattoo_state);
}
int
gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
gimp_image_set_tattoo_state (GimpImage *gimage,
Tattoo val)
{
Layer *layer;
GSList *layers = gimage->layers;
......@@ -1184,8 +1185,8 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
Channel *channel;
GSList *channels = gimage->channels;
Tattoo maxval = 0;
PATHP pptr = NULL;
PathsList *plist;
Path *pptr = NULL;
PathList *plist;
while (layers)
{
......@@ -1201,7 +1202,7 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
}
/* Now check path an't got this tattoo */
if(paths_get_path_by_tattoo(gimage,ltattoo) != NULL)
if(path_get_path_by_tattoo(gimage,ltattoo) != NULL)
{
retval = FALSE; /* Oopps duplicated tattoo in layer */
}
......@@ -1219,7 +1220,7 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
if(ctattoo > maxval)
maxval = ctattoo;
/* Now check path an't got this tattoo */
if(paths_get_path_by_tattoo(gimage,ctattoo) != NULL)
if(path_get_path_by_tattoo (gimage, ctattoo) != NULL)
{
retval = FALSE; /* Oopps duplicated tattoo in layer */
}
......@@ -1240,7 +1241,7 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
{
pptr = pl->data;
ptattoo = paths_get_tattoo (pptr);
ptattoo = path_get_tattoo (pptr);
if(ptattoo > maxval)
maxval = ptattoo;
......@@ -1272,12 +1273,12 @@ gimp_image_colormap_changed (GimpImage *image,
void
gimp_image_set_paths (GimpImage *gimage,
PathsList *paths)
PathList *paths)
{
gimage->paths = paths;
}
PathsList *
PathList *
gimp_image_get_paths (GimpImage *gimage)
{
return gimage->paths;
......
......@@ -171,8 +171,8 @@ Tattoo gimp_image_get_new_tattoo (GimpImage *);
int gimp_image_set_tattoo_state (GimpImage *, Tattoo);
Tattoo gimp_image_get_tattoo_state (GimpImage *);
void gimp_image_set_paths (GimpImage *, PathsList *);
PathsList * gimp_image_get_paths (GimpImage *);
void gimp_image_set_paths (GimpImage *, PathList *);
PathList * gimp_image_get_paths (GimpImage *);
/* Temporary hack till colormap manipulation is encapsulated in functions.
Call this whenever you modify an image's colormap. The ncol argument
......
......@@ -1165,18 +1165,19 @@ gimp_image_get_new_tattoo (GimpImage *image)
{
image->tattoo_state++;
if (image->tattoo_state <= 0)
g_warning("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
g_warning ("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
return (image->tattoo_state);
}
Tattoo
gimp_image_get_tattoo_state(GimpImage *image)
gimp_image_get_tattoo_state (GimpImage *image)
{
return (image->tattoo_state);
}
int
gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
gimp_image_set_tattoo_state (GimpImage *gimage,
Tattoo val)
{
Layer *layer;
GSList *layers = gimage->layers;
......@@ -1184,8 +1185,8 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
Channel *channel;
GSList *channels = gimage->channels;
Tattoo maxval = 0;
PATHP pptr = NULL;
PathsList *plist;
Path *pptr = NULL;
PathList *plist;
while (layers)
{
......@@ -1201,7 +1202,7 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
}
/* Now check path an't got this tattoo */
if(paths_get_path_by_tattoo(gimage,ltattoo) != NULL)
if(path_get_path_by_tattoo(gimage,ltattoo) != NULL)
{
retval = FALSE; /* Oopps duplicated tattoo in layer */
}
......@@ -1219,7 +1220,7 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
if(ctattoo > maxval)
maxval = ctattoo;
/* Now check path an't got this tattoo */
if(paths_get_path_by_tattoo(gimage,ctattoo) != NULL)
if(path_get_path_by_tattoo (gimage, ctattoo) != NULL)
{
retval = FALSE; /* Oopps duplicated tattoo in layer */
}
......@@ -1240,7 +1241,7 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
{
pptr = pl->data;
ptattoo = paths_get_tattoo (pptr);
ptattoo = path_get_tattoo (pptr);
if(ptattoo > maxval)
maxval = ptattoo;
......@@ -1272,12 +1273,12 @@ gimp_image_colormap_changed (GimpImage *image,
void
gimp_image_set_paths (GimpImage *gimage,
PathsList *paths)
PathList *paths)
{
gimage->paths = paths;
}
PathsList *
PathList *
gimp_image_get_paths (GimpImage *gimage)
{
return gimage->paths;
......
......@@ -171,8 +171,8 @@ Tattoo gimp_image_get_new_tattoo (GimpImage *);
int gimp_image_set_tattoo_state (GimpImage *, Tattoo);
Tattoo gimp_image_get_tattoo_state (GimpImage *);
void gimp_image_set_paths (GimpImage *, PathsList *);
PathsList * gimp_image_get_paths (GimpImage *);
void gimp_image_set_paths (GimpImage *, PathList *);
PathList * gimp_image_get_paths (GimpImage *);
/* Temporary hack till colormap manipulation is encapsulated in functions.
Call this whenever you modify an image's colormap. The ncol argument
......
......@@ -1165,18 +1165,19 @@ gimp_image_get_new_tattoo (GimpImage *image)
{
image->tattoo_state++;
if (image->tattoo_state <= 0)
g_warning("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
g_warning ("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
return (image->tattoo_state);
}
Tattoo
gimp_image_get_tattoo_state(GimpImage *image)
gimp_image_get_tattoo_state (GimpImage *image)
{
return (image->tattoo_state);
}
int
gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
gimp_image_set_tattoo_state (GimpImage *gimage,
Tattoo val)
{
Layer *layer;
GSList *layers = gimage->layers;
......@@ -1184,8 +1185,8 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
Channel *channel;
GSList *channels = gimage->channels;
Tattoo maxval = 0;
PATHP pptr = NULL;
PathsList *plist;
Path *pptr = NULL;
PathList *plist;
while (layers)
{
......@@ -1201,7 +1202,7 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
}
/* Now check path an't got this tattoo */
if(paths_get_path_by_tattoo(gimage,ltattoo) != NULL)
if(path_get_path_by_tattoo(gimage,ltattoo) != NULL)
{
retval = FALSE; /* Oopps duplicated tattoo in layer */
}
......@@ -1219,7 +1220,7 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
if(ctattoo > maxval)
maxval = ctattoo;
/* Now check path an't got this tattoo */
if(paths_get_path_by_tattoo(gimage,ctattoo) != NULL)
if(path_get_path_by_tattoo (gimage, ctattoo) != NULL)
{
retval = FALSE; /* Oopps duplicated tattoo in layer */
}
......@@ -1240,7 +1241,7 @@ gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
{
pptr = pl->data;
ptattoo = paths_get_tattoo (pptr);
ptattoo = path_get_tattoo (pptr);
if(ptattoo > maxval)
maxval = ptattoo;
......@@ -1272,12 +1273,12 @@ gimp_image_colormap_changed (GimpImage *image,
void
gimp_image_set_paths (GimpImage *gimage,
PathsList *paths)
PathList *paths)
{
gimage->paths = paths;
}
PathsList *
PathList *
gimp_image_get_paths (GimpImage *gimage)
{
return gimage->paths;
......
......@@ -171,8 +171,8 @@ Tattoo gimp_image_get_new_tattoo (GimpImage *);
int gimp_image_set_tattoo_state (GimpImage *, Tattoo);
Tattoo gimp_image_get_tattoo_state (GimpImage *);
void gimp_image_set_paths (GimpImage *, PathsList *);
PathsList * gimp_image_get_paths (GimpImage *);
void gimp_image_set_paths (GimpImage *, PathList *);
PathList * gimp_image_get_paths (GimpImage *);
/* Temporary hack till colormap manipulation is encapsulated in functions.
Call this whenever you modify an image's colormap. The ncol argument
......
......@@ -1165,18 +1165,19 @@ gimp_image_get_new_tattoo (GimpImage *image)
{
image->tattoo_state++;
if (image->tattoo_state <= 0)
g_warning("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
g_warning ("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
return (image->tattoo_state);
}
Tattoo
gimp_image_get_tattoo_state(GimpImage *image)
gimp_image_get_tattoo_state (GimpImage *image)
{
return (image->tattoo_state);
}
int
gimp_image_set_tattoo_state(GimpImage *gimage, Tattoo val)
gimp_image_set_tattoo_state (GimpImage *gimage,
Tattoo val)
{