From 1799caae84ded9b8019400ad18d004233bcd1d43 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 1 Jun 2004 22:16:54 +0000 Subject: [PATCH] forgot two more s/int32/enum/. 2004-06-02 Michael Natterer * tools/pdbgen/pdb/gradient_edit.pdb: forgot two more s/int32/enum/. * app/pdb/gradient_edit_cmds.c * libgimp/gimpgradientedit_pdb.[ch]: regenerated. --- ChangeLog | 7 +++++++ app/pdb/gradient_edit_cmds.c | 4 ++-- libgimp/gimpgradientedit_pdb.c | 12 ++++++------ libgimp/gimpgradientedit_pdb.h | 4 ++-- tools/pdbgen/pdb/gradient.pdb | 12 ++++++------ tools/pdbgen/pdb/gradient_edit.pdb | 12 ++++++------ 6 files changed, 29 insertions(+), 22 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9855d813f9..8364595912 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-06-02 Michael Natterer + + * tools/pdbgen/pdb/gradient_edit.pdb: forgot two more s/int32/enum/. + + * app/pdb/gradient_edit_cmds.c + * libgimp/gimpgradientedit_pdb.[ch]: regenerated. + 2004-06-01 Sven Neumann * tools/pdbgen/pdb/image.pdb diff --git a/app/pdb/gradient_edit_cmds.c b/app/pdb/gradient_edit_cmds.c index f278a4d842..1fcb40d586 100644 --- a/app/pdb/gradient_edit_cmds.c +++ b/app/pdb/gradient_edit_cmds.c @@ -1204,7 +1204,7 @@ static ProcArg gradient_segment_get_blending_function_outargs[] = { GIMP_PDB_INT32, "blend_func", - "The blending function of the segment" + "The blending function of the segment: { GIMP_GRADIENT_SEGMENT_LINEAR (0), GIMP_GRADIENT_SEGMENT_CURVED (1), GIMP_GRADIENT_SEGMENT_SINE (2), GIMP_GRADIENT_SEGMENT_SPHERE_INCREASING (3), GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING (4) }" } }; @@ -1422,7 +1422,7 @@ static ProcArg gradient_segment_get_coloring_type_outargs[] = { GIMP_PDB_INT32, "coloring_type", - "The coloring type of the segment" + "The coloring type of the segment: { GIMP_GRADIENT_SEGMENT_RGB (0), GIMP_GRADIENT_SEGMENT_HSV_CCW (1), GIMP_GRADIENT_SEGMENT_HSV_CW (2) }" } }; diff --git a/libgimp/gimpgradientedit_pdb.c b/libgimp/gimpgradientedit_pdb.c index 20ca5649d4..a75b8d261a 100644 --- a/libgimp/gimpgradientedit_pdb.c +++ b/libgimp/gimpgradientedit_pdb.c @@ -473,9 +473,9 @@ gimp_gradient_segment_set_right_pos (const gchar *name, * Returns: TRUE on success. */ gboolean -gimp_gradient_segment_get_blending_function (const gchar *name, - gint segment, - gint *blend_func) +gimp_gradient_segment_get_blending_function (const gchar *name, + gint segment, + GimpGradientSegmentType *blend_func) { GimpParam *return_vals; gint nreturn_vals; @@ -552,9 +552,9 @@ gimp_gradient_segment_set_blending_function (const gchar *name, * Returns: TRUE on success. */ gboolean -gimp_gradient_segment_get_coloring_type (const gchar *name, - gint segment, - gint *coloring_type) +gimp_gradient_segment_get_coloring_type (const gchar *name, + gint segment, + GimpGradientSegmentColor *coloring_type) { GimpParam *return_vals; gint nreturn_vals; diff --git a/libgimp/gimpgradientedit_pdb.h b/libgimp/gimpgradientedit_pdb.h index cfcedd9281..02c88a7fe7 100644 --- a/libgimp/gimpgradientedit_pdb.h +++ b/libgimp/gimpgradientedit_pdb.h @@ -68,14 +68,14 @@ gboolean gimp_gradient_segment_set_right_pos (const gchar gdouble *final_pos); gboolean gimp_gradient_segment_get_blending_function (const gchar *name, gint segment, - gint *blend_func); + GimpGradientSegmentType *blend_func); gboolean gimp_gradient_segment_set_blending_function (const gchar *name, gint start_segment, gint end_segment, GimpGradientSegmentType blending_function); gboolean gimp_gradient_segment_get_coloring_type (const gchar *name, gint segment, - gint *coloring_type); + GimpGradientSegmentColor *coloring_type); gboolean gimp_gradient_segment_set_coloring_type (const gchar *name, gint start_segment, gint end_segment, diff --git a/tools/pdbgen/pdb/gradient.pdb b/tools/pdbgen/pdb/gradient.pdb index 1a736c93ce..258e513879 100644 --- a/tools/pdbgen/pdb/gradient.pdb +++ b/tools/pdbgen/pdb/gradient.pdb @@ -302,9 +302,9 @@ HELP @inargs = &_grad_and_seg_params; @outargs = ( - { name => 'blend_func', type => "int32", - desc => "The blending function of the segment", void_ret => 1, - init => 1 } + { name => 'blend_func', type => 'enum GimpGradientSegmentType', + desc => "The blending function of the segment: { %%desc%% }", + void_ret => 1, init => 1 } ); %invoke = ( @@ -329,9 +329,9 @@ HELP @inargs = &_grad_and_seg_params; @outargs = ( - { name => 'coloring_type', type => "int32", - desc => "The coloring type of the segment", void_ret => 1, - init => 1 } + { name => 'coloring_type', type => 'enum GimpGradientSegmentColor', + desc => "The coloring type of the segment: { %%desc%% }", + void_ret => 1, init => 1 } ); %invoke = ( diff --git a/tools/pdbgen/pdb/gradient_edit.pdb b/tools/pdbgen/pdb/gradient_edit.pdb index 1a736c93ce..258e513879 100644 --- a/tools/pdbgen/pdb/gradient_edit.pdb +++ b/tools/pdbgen/pdb/gradient_edit.pdb @@ -302,9 +302,9 @@ HELP @inargs = &_grad_and_seg_params; @outargs = ( - { name => 'blend_func', type => "int32", - desc => "The blending function of the segment", void_ret => 1, - init => 1 } + { name => 'blend_func', type => 'enum GimpGradientSegmentType', + desc => "The blending function of the segment: { %%desc%% }", + void_ret => 1, init => 1 } ); %invoke = ( @@ -329,9 +329,9 @@ HELP @inargs = &_grad_and_seg_params; @outargs = ( - { name => 'coloring_type', type => "int32", - desc => "The coloring type of the segment", void_ret => 1, - init => 1 } + { name => 'coloring_type', type => 'enum GimpGradientSegmentColor', + desc => "The coloring type of the segment: { %%desc%% }", + void_ret => 1, init => 1 } ); %invoke = (