pdb: remove -private suffixes

from gimp-drawable-append-filter and -merge-filters. They are not
needed any longer, and it's not an API change because they are
private.
This commit is contained in:
Michael Natterer 2025-07-05 14:15:17 +02:00
parent 6221bdb503
commit fd3852af31
5 changed files with 106 additions and 106 deletions

View file

@ -605,12 +605,12 @@ drawable_mask_intersect_invoker (GimpProcedure *procedure,
}
static GimpValueArray *
drawable_append_filter_private_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error)
drawable_append_filter_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error)
{
gboolean success = TRUE;
GimpDrawable *drawable;
@ -666,12 +666,12 @@ drawable_append_filter_private_invoker (GimpProcedure *procedure,
}
static GimpValueArray *
drawable_merge_filter_private_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error)
drawable_merge_filter_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error)
{
gboolean success = TRUE;
GimpDrawable *drawable;
@ -1711,11 +1711,11 @@ register_drawable_procs (GimpPDB *pdb)
g_object_unref (procedure);
/*
* gimp-drawable-append-filter-private
* gimp-drawable-append-filter
*/
procedure = gimp_procedure_new (drawable_append_filter_private_invoker, TRUE);
procedure = gimp_procedure_new (drawable_append_filter_invoker, TRUE);
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-append-filter-private");
"gimp-drawable-append-filter");
gimp_procedure_set_static_help (procedure,
"Append the specified effect to the top of the list of drawable effects.",
"This procedure adds the specified drawable effect at the top of the effect list of @drawable.\n"
@ -1743,11 +1743,11 @@ register_drawable_procs (GimpPDB *pdb)
g_object_unref (procedure);
/*
* gimp-drawable-merge-filter-private
* gimp-drawable-merge-filter
*/
procedure = gimp_procedure_new (drawable_merge_filter_private_invoker, TRUE);
procedure = gimp_procedure_new (drawable_merge_filter_invoker, TRUE);
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-merge-filter-private");
"gimp-drawable-merge-filter");
gimp_procedure_set_static_help (procedure,
"Apply the specified effect directly to the drawable.",
"This procedure applies the specified drawable effect on @drawable and merge it (therefore before non-destructive effects are computed).\n"

View file

@ -461,7 +461,7 @@ gimp_drawable_append_filter (GimpDrawable *drawable,
g_return_if_fail (GIMP_IS_DRAWABLE_FILTER (filter));
gimp_drawable_filter_update (filter);
_gimp_drawable_append_filter_private (drawable, filter);
_gimp_drawable_append_filter (drawable, filter);
}
/**
@ -491,7 +491,7 @@ gimp_drawable_merge_filter (GimpDrawable *drawable,
g_return_if_fail (GIMP_IS_DRAWABLE_FILTER (filter));
gimp_drawable_filter_update (filter);
_gimp_drawable_merge_filter_private (drawable, filter);
_gimp_drawable_merge_filter (drawable, filter);
}
/**

View file

@ -677,7 +677,7 @@ gimp_drawable_mask_intersect (GimpDrawable *drawable,
}
/**
* _gimp_drawable_append_filter_private:
* _gimp_drawable_append_filter:
* @drawable: The drawable.
* @filter: The drawable filter to append.
*
@ -702,8 +702,8 @@ gimp_drawable_mask_intersect (GimpDrawable *drawable,
* Since: 3.0
**/
gboolean
_gimp_drawable_append_filter_private (GimpDrawable *drawable,
GimpDrawableFilter *filter)
_gimp_drawable_append_filter (GimpDrawable *drawable,
GimpDrawableFilter *filter)
{
GimpValueArray *args;
GimpValueArray *return_vals;
@ -715,7 +715,7 @@ _gimp_drawable_append_filter_private (GimpDrawable *drawable,
G_TYPE_NONE);
return_vals = _gimp_pdb_run_procedure_array (gimp_get_pdb (),
"gimp-drawable-append-filter-private",
"gimp-drawable-append-filter",
args);
gimp_value_array_unref (args);
@ -727,7 +727,7 @@ _gimp_drawable_append_filter_private (GimpDrawable *drawable,
}
/**
* _gimp_drawable_merge_filter_private:
* _gimp_drawable_merge_filter:
* @drawable: The drawable.
* @filter: The drawable filter to merge.
*
@ -752,8 +752,8 @@ _gimp_drawable_append_filter_private (GimpDrawable *drawable,
* Since: 3.0
**/
gboolean
_gimp_drawable_merge_filter_private (GimpDrawable *drawable,
GimpDrawableFilter *filter)
_gimp_drawable_merge_filter (GimpDrawable *drawable,
GimpDrawableFilter *filter)
{
GimpValueArray *args;
GimpValueArray *return_vals;
@ -765,7 +765,7 @@ _gimp_drawable_merge_filter_private (GimpDrawable *drawable,
G_TYPE_NONE);
return_vals = _gimp_pdb_run_procedure_array (gimp_get_pdb (),
"gimp-drawable-merge-filter-private",
"gimp-drawable-merge-filter",
args);
gimp_value_array_unref (args);

View file

@ -32,80 +32,80 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
G_GNUC_INTERNAL gchar* _gimp_drawable_get_format (GimpDrawable *drawable);
G_GNUC_INTERNAL gchar* _gimp_drawable_get_thumbnail_format (GimpDrawable *drawable);
GeglColor* gimp_drawable_get_pixel (GimpDrawable *drawable,
gint x_coord,
gint y_coord);
gboolean gimp_drawable_set_pixel (GimpDrawable *drawable,
gint x_coord,
gint y_coord,
GeglColor *color);
GimpImageType gimp_drawable_type (GimpDrawable *drawable);
GimpImageType gimp_drawable_type_with_alpha (GimpDrawable *drawable);
gboolean gimp_drawable_has_alpha (GimpDrawable *drawable);
gboolean gimp_drawable_is_rgb (GimpDrawable *drawable);
gboolean gimp_drawable_is_gray (GimpDrawable *drawable);
gboolean gimp_drawable_is_indexed (GimpDrawable *drawable);
gint gimp_drawable_get_bpp (GimpDrawable *drawable);
gint gimp_drawable_get_width (GimpDrawable *drawable);
gint gimp_drawable_get_height (GimpDrawable *drawable);
gboolean gimp_drawable_get_offsets (GimpDrawable *drawable,
gint *offset_x,
gint *offset_y);
gboolean gimp_drawable_mask_bounds (GimpDrawable *drawable,
gint *x1,
gint *y1,
gint *x2,
gint *y2);
gboolean gimp_drawable_mask_intersect (GimpDrawable *drawable,
gint *x,
gint *y,
gint *width,
gint *height);
G_GNUC_INTERNAL gboolean _gimp_drawable_append_filter_private (GimpDrawable *drawable,
GimpDrawableFilter *filter);
G_GNUC_INTERNAL gboolean _gimp_drawable_merge_filter_private (GimpDrawable *drawable,
GimpDrawableFilter *filter);
GimpDrawableFilter** gimp_drawable_get_filters (GimpDrawable *drawable);
gboolean gimp_drawable_merge_filters (GimpDrawable *drawable);
gboolean gimp_drawable_merge_shadow (GimpDrawable *drawable,
gboolean undo);
gboolean gimp_drawable_free_shadow (GimpDrawable *drawable);
gboolean gimp_drawable_update (GimpDrawable *drawable,
gint x,
gint y,
gint width,
gint height);
gboolean gimp_drawable_fill (GimpDrawable *drawable,
GimpFillType fill_type);
gboolean gimp_drawable_offset (GimpDrawable *drawable,
gboolean wrap_around,
GimpOffsetType fill_type,
GeglColor *color,
gint offset_x,
gint offset_y);
G_GNUC_INTERNAL gboolean _gimp_drawable_thumbnail (GimpDrawable *drawable,
gint width,
gint height,
gint *actual_width,
gint *actual_height,
gint *bpp,
GBytes **thumbnail_data);
G_GNUC_INTERNAL gboolean _gimp_drawable_sub_thumbnail (GimpDrawable *drawable,
gint src_x,
gint src_y,
gint src_width,
gint src_height,
gint dest_width,
gint dest_height,
gint *width,
gint *height,
gint *bpp,
GBytes **thumbnail_data);
gboolean gimp_drawable_foreground_extract (GimpDrawable *drawable,
GimpForegroundExtractMode mode,
GimpDrawable *mask);
G_GNUC_INTERNAL gchar* _gimp_drawable_get_format (GimpDrawable *drawable);
G_GNUC_INTERNAL gchar* _gimp_drawable_get_thumbnail_format (GimpDrawable *drawable);
GeglColor* gimp_drawable_get_pixel (GimpDrawable *drawable,
gint x_coord,
gint y_coord);
gboolean gimp_drawable_set_pixel (GimpDrawable *drawable,
gint x_coord,
gint y_coord,
GeglColor *color);
GimpImageType gimp_drawable_type (GimpDrawable *drawable);
GimpImageType gimp_drawable_type_with_alpha (GimpDrawable *drawable);
gboolean gimp_drawable_has_alpha (GimpDrawable *drawable);
gboolean gimp_drawable_is_rgb (GimpDrawable *drawable);
gboolean gimp_drawable_is_gray (GimpDrawable *drawable);
gboolean gimp_drawable_is_indexed (GimpDrawable *drawable);
gint gimp_drawable_get_bpp (GimpDrawable *drawable);
gint gimp_drawable_get_width (GimpDrawable *drawable);
gint gimp_drawable_get_height (GimpDrawable *drawable);
gboolean gimp_drawable_get_offsets (GimpDrawable *drawable,
gint *offset_x,
gint *offset_y);
gboolean gimp_drawable_mask_bounds (GimpDrawable *drawable,
gint *x1,
gint *y1,
gint *x2,
gint *y2);
gboolean gimp_drawable_mask_intersect (GimpDrawable *drawable,
gint *x,
gint *y,
gint *width,
gint *height);
G_GNUC_INTERNAL gboolean _gimp_drawable_append_filter (GimpDrawable *drawable,
GimpDrawableFilter *filter);
G_GNUC_INTERNAL gboolean _gimp_drawable_merge_filter (GimpDrawable *drawable,
GimpDrawableFilter *filter);
GimpDrawableFilter** gimp_drawable_get_filters (GimpDrawable *drawable);
gboolean gimp_drawable_merge_filters (GimpDrawable *drawable);
gboolean gimp_drawable_merge_shadow (GimpDrawable *drawable,
gboolean undo);
gboolean gimp_drawable_free_shadow (GimpDrawable *drawable);
gboolean gimp_drawable_update (GimpDrawable *drawable,
gint x,
gint y,
gint width,
gint height);
gboolean gimp_drawable_fill (GimpDrawable *drawable,
GimpFillType fill_type);
gboolean gimp_drawable_offset (GimpDrawable *drawable,
gboolean wrap_around,
GimpOffsetType fill_type,
GeglColor *color,
gint offset_x,
gint offset_y);
G_GNUC_INTERNAL gboolean _gimp_drawable_thumbnail (GimpDrawable *drawable,
gint width,
gint height,
gint *actual_width,
gint *actual_height,
gint *bpp,
GBytes **thumbnail_data);
G_GNUC_INTERNAL gboolean _gimp_drawable_sub_thumbnail (GimpDrawable *drawable,
gint src_x,
gint src_y,
gint src_width,
gint src_height,
gint dest_width,
gint dest_height,
gint *width,
gint *height,
gint *bpp,
GBytes **thumbnail_data);
gboolean gimp_drawable_foreground_extract (GimpDrawable *drawable,
GimpForegroundExtractMode mode,
GimpDrawable *mask);
G_END_DECLS

View file

@ -111,7 +111,7 @@ CODE
);
}
sub drawable_append_filter_private {
sub drawable_append_filter {
$blurb = 'Append the specified effect to the top of the list of drawable effects.';
$help = <<'HELP';
@ -185,7 +185,7 @@ HELP
CODE
}
sub drawable_merge_filter_private {
sub drawable_merge_filter {
$blurb = 'Apply the specified effect directly to the drawable.';
$help = <<'HELP';
@ -1231,8 +1231,8 @@ CODE
drawable_get_offsets
drawable_mask_bounds
drawable_mask_intersect
drawable_append_filter_private
drawable_merge_filter_private
drawable_append_filter
drawable_merge_filter
drawable_get_filters
drawable_merge_filters
drawable_merge_shadow