made it compile again
This commit is contained in:
15
ChangeLog
15
ChangeLog
@ -1,3 +1,18 @@
|
|||||||
|
2001-02-28 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
Please, do not change the files in app/pdb directly, they are
|
||||||
|
autogenerated. And, please, whatever you change, type make in
|
||||||
|
the toplevel srcdir, since pdbgen might decide it has to change
|
||||||
|
some more files because of your changes.
|
||||||
|
|
||||||
|
* app/pdb/layer_cmds.c
|
||||||
|
* app/pdb/tools_cmds.c
|
||||||
|
* app/tools/crop.c
|
||||||
|
* libgimp/gimpenums.h
|
||||||
|
* plug-ins/script-fu/script-fu-constants.c
|
||||||
|
* tools/pdbgen/enums.pl
|
||||||
|
* tools/pdbgen/pdb/tools.pdb: made everything compile again
|
||||||
|
|
||||||
2001-02-27 Jay Cox <jaycox@gimp.org>
|
2001-02-27 Jay Cox <jaycox@gimp.org>
|
||||||
|
|
||||||
* app/appenums.h
|
* app/appenums.h
|
||||||
|
@ -304,7 +304,7 @@ layer_create_mask_invoker (Argument *args)
|
|||||||
success = FALSE;
|
success = FALSE;
|
||||||
|
|
||||||
mask_type = args[1].value.pdb_int;
|
mask_type = args[1].value.pdb_int;
|
||||||
if (mask_type < ADD_WHITE_MASK || mask_type > ADD_ALPHA_MASK)
|
if (mask_type < ADD_WHITE_MASK || mask_type > ADD_INV_SELECTION_MASK)
|
||||||
success = FALSE;
|
success = FALSE;
|
||||||
|
|
||||||
if (success)
|
if (success)
|
||||||
@ -328,7 +328,7 @@ static ProcArg layer_create_mask_inargs[] =
|
|||||||
{
|
{
|
||||||
PDB_INT32,
|
PDB_INT32,
|
||||||
"mask_type",
|
"mask_type",
|
||||||
"The type of mask: { WHITE_MASK (0), BLACK_MASK (1), ALPHA_MASK (2) }"
|
"The type of mask: { WHITE_MASK (0), BLACK_MASK (1), ALPHA_MASK (2), SELECTION_MASK (3), INV_SELECTION_MASK (4) }"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -34,7 +34,6 @@
|
|||||||
#include "tools/bucket_fill.h"
|
#include "tools/bucket_fill.h"
|
||||||
#include "tools/by_color_select.h"
|
#include "tools/by_color_select.h"
|
||||||
#include "tools/clone.h"
|
#include "tools/clone.h"
|
||||||
#include "tools/gimpcolorpickertool.h"
|
|
||||||
#include "tools/convolve.h"
|
#include "tools/convolve.h"
|
||||||
#include "tools/crop.h"
|
#include "tools/crop.h"
|
||||||
#include "tools/dodgeburn.h"
|
#include "tools/dodgeburn.h"
|
||||||
@ -43,6 +42,7 @@
|
|||||||
#include "tools/flip_tool.h"
|
#include "tools/flip_tool.h"
|
||||||
#include "tools/free_select.h"
|
#include "tools/free_select.h"
|
||||||
#include "tools/fuzzy_select.h"
|
#include "tools/fuzzy_select.h"
|
||||||
|
#include "tools/gimpcolorpickertool.h"
|
||||||
#include "tools/gimppaintbrushtool.h"
|
#include "tools/gimppaintbrushtool.h"
|
||||||
#include "tools/pencil.h"
|
#include "tools/pencil.h"
|
||||||
#include "tools/perspective_tool.h"
|
#include "tools/perspective_tool.h"
|
||||||
@ -1928,8 +1928,8 @@ paintbrush_invoker (Argument *args)
|
|||||||
success = FALSE;
|
success = FALSE;
|
||||||
|
|
||||||
if (success)
|
if (success)
|
||||||
success = gimp_paintbrush_tool_non_gui (drawable, num_strokes, strokes, fade_out,
|
success = gimp_paintbrush_tool_non_gui (drawable, num_strokes, strokes,
|
||||||
method, gradient_length);
|
fade_out, method, gradient_length);
|
||||||
|
|
||||||
return procedural_db_return_args (&paintbrush_proc, success);
|
return procedural_db_return_args (&paintbrush_proc, success);
|
||||||
}
|
}
|
||||||
|
@ -1658,11 +1658,12 @@ gimp_crop_tool_destroy (GtkObject *object)
|
|||||||
void
|
void
|
||||||
gimp_crop_tool_register (void)
|
gimp_crop_tool_register (void)
|
||||||
{
|
{
|
||||||
tool_manager_register_tool(GIMP_TYPE_CROP_TOOL,
|
tool_manager_register_tool (GIMP_TYPE_CROP_TOOL,
|
||||||
"gimp:crop_tool",
|
FALSE,
|
||||||
_("Crop Tool"),
|
"gimp:crop_tool",
|
||||||
_("Crop or Resize an image"),
|
_("Crop Tool"),
|
||||||
N_("/Tools/Crop Tool"), "<shift>C",
|
_("Crop or Resize an image"),
|
||||||
NULL, "tools/crop_tool.html",
|
N_("/Tools/Crop Tool"), "<shift>C",
|
||||||
(const gchar **) crop_bits);
|
NULL, "tools/crop_tool.html",
|
||||||
|
(const gchar **) crop_bits);
|
||||||
}
|
}
|
||||||
|
@ -1658,11 +1658,12 @@ gimp_crop_tool_destroy (GtkObject *object)
|
|||||||
void
|
void
|
||||||
gimp_crop_tool_register (void)
|
gimp_crop_tool_register (void)
|
||||||
{
|
{
|
||||||
tool_manager_register_tool(GIMP_TYPE_CROP_TOOL,
|
tool_manager_register_tool (GIMP_TYPE_CROP_TOOL,
|
||||||
"gimp:crop_tool",
|
FALSE,
|
||||||
_("Crop Tool"),
|
"gimp:crop_tool",
|
||||||
_("Crop or Resize an image"),
|
_("Crop Tool"),
|
||||||
N_("/Tools/Crop Tool"), "<shift>C",
|
_("Crop or Resize an image"),
|
||||||
NULL, "tools/crop_tool.html",
|
N_("/Tools/Crop Tool"), "<shift>C",
|
||||||
(const gchar **) crop_bits);
|
NULL, "tools/crop_tool.html",
|
||||||
|
(const gchar **) crop_bits);
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,9 @@ typedef enum
|
|||||||
{
|
{
|
||||||
GIMP_WHITE_MASK,
|
GIMP_WHITE_MASK,
|
||||||
GIMP_BLACK_MASK,
|
GIMP_BLACK_MASK,
|
||||||
GIMP_ALPHA_MASK
|
GIMP_ALPHA_MASK,
|
||||||
|
GIMP_SELECTION_MASK,
|
||||||
|
GIMP_INV_SELECTION_MASK
|
||||||
} GimpAddMaskType;
|
} GimpAddMaskType;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
@ -26,6 +26,8 @@ init_generated_constants (void)
|
|||||||
setvar (cintern ("WHITE-MASK"), flocons (0), NIL);
|
setvar (cintern ("WHITE-MASK"), flocons (0), NIL);
|
||||||
setvar (cintern ("BLACK-MASK"), flocons (1), NIL);
|
setvar (cintern ("BLACK-MASK"), flocons (1), NIL);
|
||||||
setvar (cintern ("ALPHA-MASK"), flocons (2), NIL);
|
setvar (cintern ("ALPHA-MASK"), flocons (2), NIL);
|
||||||
|
setvar (cintern ("SELECTION-MASK"), flocons (3), NIL);
|
||||||
|
setvar (cintern ("INV-SELECTION-MASK"), flocons (4), NIL);
|
||||||
|
|
||||||
setvar (cintern ("FG-BG-RGB"), flocons (0), NIL);
|
setvar (cintern ("FG-BG-RGB"), flocons (0), NIL);
|
||||||
setvar (cintern ("FG-BG-HSV"), flocons (1), NIL);
|
setvar (cintern ("FG-BG-HSV"), flocons (1), NIL);
|
||||||
|
@ -125,13 +125,18 @@ package Gimp::CodeGen::enums;
|
|||||||
AddMaskType =>
|
AddMaskType =>
|
||||||
{ contig => 1,
|
{ contig => 1,
|
||||||
header => 'appenums.h',
|
header => 'appenums.h',
|
||||||
symbols => [ qw(ADD_WHITE_MASK ADD_BLACK_MASK ADD_ALPHA_MASK) ],
|
symbols => [ qw(ADD_WHITE_MASK ADD_BLACK_MASK ADD_ALPHA_MASK
|
||||||
|
ADD_SELECTION_MASK ADD_INV_SELECTION_MASK) ],
|
||||||
mapping => { ADD_WHITE_MASK => '0',
|
mapping => { ADD_WHITE_MASK => '0',
|
||||||
ADD_BLACK_MASK => '1',
|
ADD_BLACK_MASK => '1',
|
||||||
ADD_ALPHA_MASK => '2' },
|
ADD_ALPHA_MASK => '2',
|
||||||
|
ADD_SELECTION_MASK => '3',
|
||||||
|
ADD_INV_SELECTION_MASK => '4' },
|
||||||
nicks => { ADD_WHITE_MASK => 'WHITE_MASK',
|
nicks => { ADD_WHITE_MASK => 'WHITE_MASK',
|
||||||
ADD_BLACK_MASK => 'BLACK_MASK',
|
ADD_BLACK_MASK => 'BLACK_MASK',
|
||||||
ADD_ALPHA_MASK => 'ALPHA_MASK' }
|
ADD_ALPHA_MASK => 'ALPHA_MASK',
|
||||||
|
ADD_SELECTION_MASK => 'SELECTION_MASK',
|
||||||
|
ADD_INV_SELECTION_MASK => 'INV_SELECTION_MASK' }
|
||||||
},
|
},
|
||||||
GradientPaintMode =>
|
GradientPaintMode =>
|
||||||
{ contig => 1,
|
{ contig => 1,
|
||||||
|
@ -412,7 +412,7 @@ HELP
|
|||||||
);
|
);
|
||||||
|
|
||||||
%invoke = (
|
%invoke = (
|
||||||
headers => [ qw("tools/color_picker.h") ],
|
headers => [ qw("tools/gimpcolorpickertool.h") ],
|
||||||
code => <<'CODE'
|
code => <<'CODE'
|
||||||
{
|
{
|
||||||
if (!sample_merged)
|
if (!sample_merged)
|
||||||
@ -865,10 +865,10 @@ HELP
|
|||||||
);
|
);
|
||||||
|
|
||||||
%invoke = (
|
%invoke = (
|
||||||
headers => [ qw("tools/paintbrush.h") ],
|
headers => [ qw("tools/gimppaintbrushtool.h") ],
|
||||||
code => <<'CODE'
|
code => <<'CODE'
|
||||||
success = paintbrush_non_gui (drawable, num_strokes, strokes, fade_out,
|
success = gimp_paintbrush_tool_non_gui (drawable, num_strokes, strokes,
|
||||||
method, gradient_length);
|
fade_out, method, gradient_length);
|
||||||
CODE
|
CODE
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -902,9 +902,9 @@ HELP
|
|||||||
);
|
);
|
||||||
|
|
||||||
%invoke = (
|
%invoke = (
|
||||||
headers => [ qw("tools/paintbrush.h") ],
|
headers => [ qw("tools/gimppaintbrushtool.h") ],
|
||||||
code => <<'CODE'
|
code => <<'CODE'
|
||||||
success = paintbrush_non_gui_default (drawable, num_strokes, strokes);
|
success = gimp_paintbrush_tool_non_gui_default (drawable, num_strokes, strokes);
|
||||||
CODE
|
CODE
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -412,7 +412,7 @@ HELP
|
|||||||
);
|
);
|
||||||
|
|
||||||
%invoke = (
|
%invoke = (
|
||||||
headers => [ qw("tools/color_picker.h") ],
|
headers => [ qw("tools/gimpcolorpickertool.h") ],
|
||||||
code => <<'CODE'
|
code => <<'CODE'
|
||||||
{
|
{
|
||||||
if (!sample_merged)
|
if (!sample_merged)
|
||||||
@ -865,10 +865,10 @@ HELP
|
|||||||
);
|
);
|
||||||
|
|
||||||
%invoke = (
|
%invoke = (
|
||||||
headers => [ qw("tools/paintbrush.h") ],
|
headers => [ qw("tools/gimppaintbrushtool.h") ],
|
||||||
code => <<'CODE'
|
code => <<'CODE'
|
||||||
success = paintbrush_non_gui (drawable, num_strokes, strokes, fade_out,
|
success = gimp_paintbrush_tool_non_gui (drawable, num_strokes, strokes,
|
||||||
method, gradient_length);
|
fade_out, method, gradient_length);
|
||||||
CODE
|
CODE
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -902,9 +902,9 @@ HELP
|
|||||||
);
|
);
|
||||||
|
|
||||||
%invoke = (
|
%invoke = (
|
||||||
headers => [ qw("tools/paintbrush.h") ],
|
headers => [ qw("tools/gimppaintbrushtool.h") ],
|
||||||
code => <<'CODE'
|
code => <<'CODE'
|
||||||
success = paintbrush_non_gui_default (drawable, num_strokes, strokes);
|
success = gimp_paintbrush_tool_non_gui_default (drawable, num_strokes, strokes);
|
||||||
CODE
|
CODE
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -412,7 +412,7 @@ HELP
|
|||||||
);
|
);
|
||||||
|
|
||||||
%invoke = (
|
%invoke = (
|
||||||
headers => [ qw("tools/color_picker.h") ],
|
headers => [ qw("tools/gimpcolorpickertool.h") ],
|
||||||
code => <<'CODE'
|
code => <<'CODE'
|
||||||
{
|
{
|
||||||
if (!sample_merged)
|
if (!sample_merged)
|
||||||
@ -865,10 +865,10 @@ HELP
|
|||||||
);
|
);
|
||||||
|
|
||||||
%invoke = (
|
%invoke = (
|
||||||
headers => [ qw("tools/paintbrush.h") ],
|
headers => [ qw("tools/gimppaintbrushtool.h") ],
|
||||||
code => <<'CODE'
|
code => <<'CODE'
|
||||||
success = paintbrush_non_gui (drawable, num_strokes, strokes, fade_out,
|
success = gimp_paintbrush_tool_non_gui (drawable, num_strokes, strokes,
|
||||||
method, gradient_length);
|
fade_out, method, gradient_length);
|
||||||
CODE
|
CODE
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -902,9 +902,9 @@ HELP
|
|||||||
);
|
);
|
||||||
|
|
||||||
%invoke = (
|
%invoke = (
|
||||||
headers => [ qw("tools/paintbrush.h") ],
|
headers => [ qw("tools/gimppaintbrushtool.h") ],
|
||||||
code => <<'CODE'
|
code => <<'CODE'
|
||||||
success = paintbrush_non_gui_default (drawable, num_strokes, strokes);
|
success = gimp_paintbrush_tool_non_gui_default (drawable, num_strokes, strokes);
|
||||||
CODE
|
CODE
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -412,7 +412,7 @@ HELP
|
|||||||
);
|
);
|
||||||
|
|
||||||
%invoke = (
|
%invoke = (
|
||||||
headers => [ qw("tools/color_picker.h") ],
|
headers => [ qw("tools/gimpcolorpickertool.h") ],
|
||||||
code => <<'CODE'
|
code => <<'CODE'
|
||||||
{
|
{
|
||||||
if (!sample_merged)
|
if (!sample_merged)
|
||||||
@ -865,10 +865,10 @@ HELP
|
|||||||
);
|
);
|
||||||
|
|
||||||
%invoke = (
|
%invoke = (
|
||||||
headers => [ qw("tools/paintbrush.h") ],
|
headers => [ qw("tools/gimppaintbrushtool.h") ],
|
||||||
code => <<'CODE'
|
code => <<'CODE'
|
||||||
success = paintbrush_non_gui (drawable, num_strokes, strokes, fade_out,
|
success = gimp_paintbrush_tool_non_gui (drawable, num_strokes, strokes,
|
||||||
method, gradient_length);
|
fade_out, method, gradient_length);
|
||||||
CODE
|
CODE
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -902,9 +902,9 @@ HELP
|
|||||||
);
|
);
|
||||||
|
|
||||||
%invoke = (
|
%invoke = (
|
||||||
headers => [ qw("tools/paintbrush.h") ],
|
headers => [ qw("tools/gimppaintbrushtool.h") ],
|
||||||
code => <<'CODE'
|
code => <<'CODE'
|
||||||
success = paintbrush_non_gui_default (drawable, num_strokes, strokes);
|
success = gimp_paintbrush_tool_non_gui_default (drawable, num_strokes, strokes);
|
||||||
CODE
|
CODE
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user