plug-ins, libgimp: override set_i18n() for all our core plug-ins.

Hence avoiding the stderr messages. These are going to be localized with
centrally installed catalogs "gimp*-std-plugins", "gimp*-script-fu" and
"gimp*-python".

We now handle core plug-in localizations differently and in particular,
with kind of a reverse logic:

- We don't consider "gimp*-std-plugins" to be the default catalog
  anymore. It made sense in the old world where we would consider the
  core plug-ins to be the most important and numerous ones. But we want
  to push a world where people are even more encouraged to develop their
  own plug-ins. These won't use the standard catalog anymore (because
  there are nearly no reasons that the strings are the same, it's only a
  confusing logic). So let's explicitly set the standard catalogs with
  DEFINE_STD_SET_I18N macro (which maps to a different catalog for
  script-fu plug-ins).
- Doing something similar for Python plug-ins which have again their own
  catalog.
- Getting rid of the INIT_I18N macro since now all the locale domain
  binding is done automatically by libgimp when using the set_i18n()
  method infrastructure.
This commit is contained in:
Jehan 2022-05-26 00:59:36 +02:00
parent 4b9d8a56cb
commit 18c37f7084
124 changed files with 300 additions and 243 deletions

View file

@ -27,16 +27,19 @@
#include <glib/gi18n.h>
#ifndef HAVE_BIND_TEXTDOMAIN_CODESET
# define bind_textdomain_codeset(Domain, Codeset) (Domain)
#endif
#define INIT_I18N() G_STMT_START{ \
bindtextdomain (GETTEXT_PACKAGE"-std-plug-ins", \
gimp_locale_directory ()); \
bind_textdomain_codeset (GETTEXT_PACKAGE"-std-plug-ins", "UTF-8"); \
textdomain (GETTEXT_PACKAGE"-std-plug-ins"); \
}G_STMT_END
#define DEFINE_STD_SET_I18N \
static gboolean \
set_i18n (GimpPlugIn *plug_in, \
const gchar *procedure_name, \
gchar **gettext_domain, \
gchar **catalog_dir) \
{ \
*gettext_domain = g_strdup (GETTEXT_PACKAGE"-std-plug-ins"); \
return TRUE; \
};
#define STD_SET_I18N set_i18n
#endif /* __STDPLUGINS_INTL_H__ */

View file

@ -131,6 +131,8 @@ static void align_layers_scale_entry_update_int (GimpLabelSpin
G_DEFINE_TYPE (AlignLayers, align_layers, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (ALIGN_LAYERS_TYPE)
DEFINE_STD_SET_I18N
/* dialog variables */
typedef struct
@ -162,6 +164,7 @@ align_layers_class_init (AlignLayersClass *klass)
plug_in_class->query_procedures = align_layers_query_procedures;
plug_in_class->create_procedure = align_layers_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -242,8 +245,6 @@ align_layers_run (GimpProcedure *procedure,
GList *layers;
gint layer_num;
INIT_I18N ();
switch ( run_mode )
{
case GIMP_RUN_INTERACTIVE:

View file

@ -115,6 +115,7 @@ static gboolean is_ms_tag (const gchar *str,
G_DEFINE_TYPE (Optimize, optimize, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (OPTIMIZE_TYPE)
DEFINE_STD_SET_I18N
/* Global widgets'n'stuff */
@ -134,6 +135,7 @@ optimize_class_init (OptimizeClass *klass)
plug_in_class->query_procedures = optimize_query_procedures;
plug_in_class->create_procedure = optimize_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -316,7 +318,6 @@ optimize_run (GimpProcedure *procedure,
const gchar *name = gimp_procedure_get_name (procedure);
gboolean diff_only = FALSE;
INIT_I18N ();
gegl_init (NULL, NULL);
if (! strcmp (name, OPTIMIZE_PROC))

View file

@ -162,6 +162,7 @@ static gboolean is_ms_tag (const gchar *str,
G_DEFINE_TYPE (Play, play, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (PLAY_TYPE)
DEFINE_STD_SET_I18N
/* Global widgets'n'stuff */
@ -217,6 +218,7 @@ play_class_init (PlayClass *klass)
plug_in_class->query_procedures = play_query_procedures;
plug_in_class->create_procedure = play_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -275,7 +277,6 @@ play_run (GimpProcedure *procedure,
const GimpValueArray *args,
gpointer run_data)
{
INIT_I18N ();
gegl_init (NULL, NULL);
image = _image;

View file

@ -99,6 +99,7 @@ static void apply_blinds (GimpDrawable *drawable)
G_DEFINE_TYPE (Blinds, blinds, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (BLINDS_TYPE)
DEFINE_STD_SET_I18N
/* Array to hold each size of fans. And no there are not each the
@ -124,6 +125,7 @@ blinds_class_init (BlindsClass *klass)
plug_in_class->query_procedures = blinds_query_procedures;
plug_in_class->create_procedure = blinds_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -206,7 +208,6 @@ blinds_run (GimpProcedure *procedure,
{
GimpDrawable *drawable;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -81,6 +81,7 @@ static void thickness_callback (GtkWidget *widget,
G_DEFINE_TYPE (BorderAverage, border_average, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (BORDER_AVERAGE_TYPE)
DEFINE_STD_SET_I18N
static gint borderaverage_thickness = 3;
@ -105,6 +106,7 @@ border_average_class_init (BorderAverageClass *klass)
plug_in_class->query_procedures = border_average_query_procedures;
plug_in_class->create_procedure = border_average_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -183,7 +185,6 @@ border_average_run (GimpProcedure *procedure,
GimpRGB result_color = { 0.0, };
GeglBuffer *buffer;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -85,6 +85,7 @@ static void busy_dialog_response (GtkDialog *di
G_DEFINE_TYPE (BusyDialog, busy_dialog, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (BUSY_DIALOG_TYPE)
DEFINE_STD_SET_I18N
static void
busy_dialog_class_init (BusyDialogClass *klass)
@ -93,6 +94,7 @@ busy_dialog_class_init (BusyDialogClass *klass)
plug_in_class->query_procedures = busy_dialog_query_procedures;
plug_in_class->create_procedure = busy_dialog_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -178,8 +180,6 @@ busy_dialog_run (GimpProcedure *procedure,
GimpPDBStatusType status = GIMP_PDB_SUCCESS;
GimpRunMode run_mode;
INIT_I18N ();
run_mode = GIMP_VALUES_GET_ENUM (args, 0);
switch (run_mode)
{

View file

@ -86,6 +86,7 @@ static void check_size_update_callback (GtkWidget *widget);
G_DEFINE_TYPE (Checkerboard, checkerboard, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (CHECKERBOARD_TYPE)
DEFINE_STD_SET_I18N
static CheckVals cvals =
@ -102,6 +103,7 @@ checkerboard_class_init (CheckerboardClass *klass)
plug_in_class->query_procedures = checkerboard_query_procedures;
plug_in_class->create_procedure = checkerboard_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -172,7 +174,6 @@ checkerboard_run (GimpProcedure *procedure,
{
GimpDrawable *drawable;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -424,6 +424,7 @@ static gdouble parse_line_to_gdouble (FILE *file,
G_DEFINE_TYPE (Explorer, explorer, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (EXPLORER_TYPE)
DEFINE_STD_SET_I18N
static GtkWidget *preview;
@ -474,6 +475,7 @@ explorer_class_init (ExplorerClass *klass)
plug_in_class->query_procedures = explorer_query_procedures;
plug_in_class->create_procedure = explorer_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -548,8 +550,6 @@ explorer_run (GimpProcedure *procedure,
const GimpValueArray *args,
gpointer run_data)
{
INIT_I18N ();
if (n_drawables != 1)
{
GError *error = NULL;

View file

@ -85,6 +85,7 @@ static gboolean remap_dialog (GimpImage *image,
G_DEFINE_TYPE (Remap, remap, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (REMAP_TYPE)
DEFINE_STD_SET_I18N
static void
@ -94,6 +95,7 @@ remap_class_init (RemapClass *klass)
plug_in_class->query_procedures = remap_query_procedures;
plug_in_class->create_procedure = remap_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -214,7 +216,6 @@ remap_run (GimpProcedure *procedure,
guchar map[256];
gint i;
INIT_I18N ();
gegl_init (NULL, NULL);
/* Make sure that the image is indexed */

View file

@ -194,6 +194,7 @@ static void type_combo_callback (GimpIntComboBox *combo,
G_DEFINE_TYPE (Compose, compose, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (COMPOSE_TYPE)
DEFINE_STD_SET_I18N
/* Decompositions availables.
@ -344,6 +345,7 @@ compose_class_init (ComposeClass *klass)
plug_in_class->query_procedures = compose_query_procedures;
plug_in_class->create_procedure = compose_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -541,7 +543,6 @@ compose_run (GimpProcedure *procedure,
gint compose_by_drawable;
gint i;
INIT_I18N ();
gegl_init (NULL, NULL);
compose_by_drawable = ! strcmp (name, DRAWABLE_COMPOSE_PROC);

View file

@ -143,6 +143,7 @@ static void MSRCR (guchar *src,
G_DEFINE_TYPE (Retinex, retinex, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (RETINEX_TYPE)
DEFINE_STD_SET_I18N
static RetinexParams rvals =
@ -161,6 +162,7 @@ retinex_class_init (RetinexClass *klass)
plug_in_class->query_procedures = retinex_query_procedures;
plug_in_class->create_procedure = retinex_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -250,7 +252,6 @@ retinex_run (GimpProcedure *procedure,
GimpDrawable *drawable;
gint x, y, width, height;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -71,6 +71,7 @@ static void do_zcrop (GimpDrawable *drawable,
G_DEFINE_TYPE (Crop, crop, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (CROP_TYPE)
DEFINE_STD_SET_I18N
static void
@ -80,6 +81,7 @@ crop_class_init (CropClass *klass)
plug_in_class->query_procedures = crop_query_procedures;
plug_in_class->create_procedure = crop_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -137,7 +139,6 @@ crop_run (GimpProcedure *procedure,
{
GimpDrawable *drawable;
INIT_I18N ();
gegl_init (NULL, NULL);
gimp_progress_init (_("Zealous cropping"));

View file

@ -377,6 +377,7 @@ static int p_save_pointfile (BenderDialog *cd,
G_DEFINE_TYPE (Bender, bender, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (BENDER_TYPE)
DEFINE_STD_SET_I18N
static CRMatrix CR_basis =
@ -397,6 +398,7 @@ bender_class_init (BenderClass *klass)
plug_in_class->query_procedures = bender_query_procedures;
plug_in_class->create_procedure = bender_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -666,7 +668,6 @@ bender_run (GimpProcedure *procedure,
GimpLayer *bent_layer = NULL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -150,6 +150,7 @@ static gchar * generate_filename (GimpImage *image,
G_DEFINE_TYPE (Decompose, decompose, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (DECOMPOSE_TYPE)
DEFINE_STD_SET_I18N
#define CPN_RGBA_R { "R", N_("red"), 0.0, 1.0, FALSE }
@ -232,6 +233,7 @@ decompose_class_init (DecomposeClass *klass)
plug_in_class->query_procedures = decompose_query_procedures;
plug_in_class->create_procedure = decompose_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -364,7 +366,6 @@ decompose_run (GimpProcedure *procedure,
gchar *tmp;
gint j;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -175,6 +175,7 @@ static void util_fillReducedBuffer (guchar *dest,
G_DEFINE_TYPE (Merge, merge, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (MERGE_TYPE)
DEFINE_STD_SET_I18N
static void
@ -184,6 +185,7 @@ merge_class_init (MergeClass *klass)
plug_in_class->query_procedures = merge_query_procedures;
plug_in_class->create_procedure = merge_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -295,7 +297,6 @@ merge_run (GimpProcedure *procedure,
GimpDrawable *drawable;
DepthMerge dm;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -129,6 +129,7 @@ static void preview_update (GtkWidget *previe
G_DEFINE_TYPE (Despeckle, despeckle, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (DESPECKLE_TYPE)
DEFINE_STD_SET_I18N
/* Number of pixels in actual histogram falling into each category */
@ -146,6 +147,7 @@ despeckle_class_init (DespeckleClass *klass)
plug_in_class->query_procedures = despeckle_query_procedures;
plug_in_class->create_procedure = despeckle_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -231,7 +233,6 @@ despeckle_run (GimpProcedure *procedure,
GimpProcedureConfig *config;
GimpDrawable *drawable;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -90,6 +90,7 @@ static void destripe_scale_entry_update_int (GimpLabelSpin *entry,
G_DEFINE_TYPE (Destripe, destripe, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (DESTRIPE_TYPE)
DEFINE_STD_SET_I18N
static DestripeValues vals =
@ -107,6 +108,7 @@ destripe_class_init (DestripeClass *klass)
plug_in_class->query_procedures = destripe_query_procedures;
plug_in_class->create_procedure = destripe_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -171,7 +173,6 @@ destripe_run (GimpProcedure *procedure,
{
GimpDrawable *drawable;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -87,6 +87,7 @@ static gboolean save_dialog (GimpProcedure *procedure,
G_DEFINE_TYPE (Ascii, ascii, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (ASCII_TYPE)
DEFINE_STD_SET_I18N
static void
@ -96,6 +97,7 @@ ascii_class_init (AsciiClass *klass)
plug_in_class->query_procedures = ascii_query_procedures;
plug_in_class->create_procedure = ascii_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -171,7 +173,6 @@ ascii_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -92,6 +92,7 @@ static gboolean need_palette (GFile *file,
G_DEFINE_TYPE (Cel, cel, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (CEL_TYPE)
DEFINE_STD_SET_I18N
static gchar *palette_file = NULL;
@ -105,6 +106,7 @@ cel_class_init (CelClass *klass)
plug_in_class->query_procedures = cel_query_procedures;
plug_in_class->create_procedure = cel_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -207,7 +209,6 @@ cel_load (GimpProcedure *procedure,
gboolean needs_palette = FALSE;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
if (run_mode != GIMP_RUN_NONINTERACTIVE)
@ -280,7 +281,6 @@ cel_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)

View file

@ -204,6 +204,7 @@ static goffset get_file_info (GFile *file);
G_DEFINE_TYPE (Compressor, compressor, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (COMPRESSOR_TYPE)
DEFINE_STD_SET_I18N
static const CompressorEntry compressors[] =
@ -274,6 +275,7 @@ compressor_class_init (CompressorClass *klass)
plug_in_class->query_procedures = compressor_query_procedures;
plug_in_class->create_procedure = compressor_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void

View file

@ -80,6 +80,7 @@ static gboolean save_dialog (GimpProcedure *procedur
G_DEFINE_TYPE (Csource, csource, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (CSOURCE_TYPE)
DEFINE_STD_SET_I18N
static void
@ -89,6 +90,7 @@ csource_class_init (CsourceClass *klass)
plug_in_class->query_procedures = csource_query_procedures;
plug_in_class->create_procedure = csource_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -213,7 +215,6 @@ csource_save (GimpProcedure *procedure,
gchar *comment;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
if (run_mode != GIMP_RUN_INTERACTIVE)

View file

@ -73,6 +73,7 @@ static GimpImage * load_image (GFile *file,
G_DEFINE_TYPE (Desktop, desktop, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (DESKTOP_TYPE)
DEFINE_STD_SET_I18N
static void
@ -82,6 +83,7 @@ desktop_class_init (DesktopClass *klass)
plug_in_class->query_procedures = desktop_query_procedures;
plug_in_class->create_procedure = desktop_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void

View file

@ -129,6 +129,7 @@ static gboolean write_group_to_file (FILE *dicom,
G_DEFINE_TYPE (Dicom, dicom, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (DICOM_TYPE)
DEFINE_STD_SET_I18N
static void
@ -138,6 +139,7 @@ dicom_class_init (DicomClass *klass)
plug_in_class->query_procedures = dicom_query_procedures;
plug_in_class->create_procedure = dicom_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -240,7 +242,6 @@ dicom_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, &error);
@ -273,7 +274,6 @@ dicom_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)

View file

@ -83,6 +83,7 @@ static gboolean save_dialog (GimpProcedure *procedure,
G_DEFINE_TYPE (Gbr, gbr, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (GBR_TYPE)
DEFINE_STD_SET_I18N
static void
@ -92,6 +93,7 @@ gbr_class_init (GbrClass *klass)
plug_in_class->query_procedures = gbr_query_procedures;
plug_in_class->create_procedure = gbr_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -174,8 +176,6 @@ gbr_save (GimpProcedure *procedure,
gchar *description;
GError *error = NULL;
INIT_I18N ();
config = gimp_procedure_create_config (procedure);
gimp_procedure_config_begin_run (config, image, run_mode, args);

View file

@ -105,6 +105,7 @@ static gboolean save_image (GFile *file,
G_DEFINE_TYPE (Goat, goat, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (GOAT_TYPE)
DEFINE_STD_SET_I18N
static const FileFormat file_formats[] =
@ -149,6 +150,7 @@ goat_class_init (GoatClass *klass)
plug_in_class->query_procedures = goat_query_procedures;
plug_in_class->create_procedure = goat_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -246,7 +248,6 @@ goat_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, format->load_op, &error);
@ -280,7 +281,6 @@ goat_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)

View file

@ -125,6 +125,7 @@ static GimpImage * load_image (GFile *file,
G_DEFINE_TYPE (Gif, gif, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (GIF_TYPE)
DEFINE_STD_SET_I18N
static guchar used_cmap[3][256];
@ -141,6 +142,7 @@ gif_class_init (GifClass *klass)
plug_in_class->query_procedures = gif_query_procedures;
plug_in_class->create_procedure = gif_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -228,7 +230,6 @@ gif_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, FALSE, &error);
@ -276,7 +277,6 @@ gif_load_thumb (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, TRUE, &error);

View file

@ -105,6 +105,7 @@ static gboolean save_dialog (GimpImage *image,
G_DEFINE_TYPE (Gif, gif, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (GIF_TYPE)
DEFINE_STD_SET_I18N
static gint Interlace; /* For compression code */
@ -117,6 +118,7 @@ gif_class_init (GifClass *klass)
plug_in_class->query_procedures = gif_query_procedures;
plug_in_class->create_procedure = gif_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -263,7 +265,6 @@ gif_save (GimpProcedure *procedure,
GimpImage *sanitized_image = NULL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -119,6 +119,7 @@ static gboolean gih_save_dialog (GimpImage *image);
G_DEFINE_TYPE (Gih, gih, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (GIH_TYPE)
DEFINE_STD_SET_I18N
static BrushInfo info =
@ -146,6 +147,7 @@ gih_class_init (GihClass *klass)
plug_in_class->query_procedures = gih_query_procedures;
plug_in_class->create_procedure = gih_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -279,8 +281,6 @@ gih_save (GimpProcedure *procedure,
GError *error = NULL;
gint i;
INIT_I18N();
orig_image = image;
switch (run_mode)

View file

@ -76,6 +76,7 @@ static gboolean print (GOutputStream *output,
G_DEFINE_TYPE (Header, header, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (HEADER_TYPE)
DEFINE_STD_SET_I18N
static void
@ -85,6 +86,7 @@ header_class_init (HeaderClass *klass)
plug_in_class->query_procedures = header_query_procedures;
plug_in_class->create_procedure = header_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -149,7 +151,6 @@ header_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)

View file

@ -126,6 +126,7 @@ static gboolean save_dialog (GimpProcedure *procedure,
G_DEFINE_TYPE (Heif, heif, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (HEIF_TYPE)
DEFINE_STD_SET_I18N
static void
@ -135,6 +136,7 @@ heif_class_init (HeifClass *klass)
plug_in_class->init_procedures = heif_init_procedures;
plug_in_class->create_procedure = heif_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -416,7 +418,6 @@ heif_load (GimpProcedure *procedure,
gboolean interactive;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
interactive = (run_mode == GIMP_RUN_INTERACTIVE);
@ -454,7 +455,6 @@ heif_save (GimpProcedure *procedure,
GimpMetadata *metadata;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);
@ -543,7 +543,6 @@ heif_av1_save (GimpProcedure *procedure,
GimpMetadata *metadata;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -112,6 +112,7 @@ static gboolean color_comp (guchar *buffer,
G_DEFINE_TYPE (Html, html, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (HTML_TYPE)
DEFINE_STD_SET_I18N
static void
@ -121,6 +122,7 @@ html_class_init (HtmlClass *klass)
plug_in_class->query_procedures = html_query_procedures;
plug_in_class->create_procedure = html_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -264,7 +266,6 @@ html_save (GimpProcedure *procedure,
GeglBuffer *buffer;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
if (run_mode != GIMP_RUN_INTERACTIVE)

View file

@ -148,6 +148,7 @@ jp2_class_init (Jp2Class *klass)
plug_in_class->query_procedures = jp2_query_procedures;
plug_in_class->create_procedure = jp2_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -259,7 +260,6 @@ jp2_load (GimpProcedure *procedure,
gboolean profile_loaded = FALSE;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)

View file

@ -76,6 +76,7 @@ static GimpValueArray *jpegxl_save (GimpProcedure *procedure,
G_DEFINE_TYPE (JpegXL, jpegxl, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (JPEGXL_TYPE)
DEFINE_STD_SET_I18N
static void
jpegxl_class_init (JpegXLClass *klass)
@ -84,6 +85,7 @@ jpegxl_class_init (JpegXLClass *klass)
plug_in_class->query_procedures = jpegxl_query_procedures;
plug_in_class->create_procedure = jpegxl_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -642,7 +644,6 @@ jpegxl_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)
@ -1165,7 +1166,6 @@ jpegxl_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -210,6 +210,7 @@ static gboolean mng_save_dialog (GimpImage *image,
G_DEFINE_TYPE (Mng, mng, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (MNG_TYPE)
DEFINE_STD_SET_I18N
static struct mng_globals_t mngg;
@ -222,6 +223,7 @@ mng_class_init (MngClass *klass)
plug_in_class->query_procedures = mng_query_procedures;
plug_in_class->create_procedure = mng_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -365,7 +367,6 @@ mng_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_IGNORE;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -70,6 +70,7 @@ static gboolean save_dialog (GimpProcedure *procedure,
G_DEFINE_TYPE (Pat, pat, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (PAT_TYPE)
DEFINE_STD_SET_I18N
static void
@ -79,6 +80,7 @@ pat_class_init (PatClass *klass)
plug_in_class->query_procedures = pat_query_procedures;
plug_in_class->create_procedure = pat_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -153,8 +155,6 @@ pat_save (GimpProcedure *procedure,
gchar *description;
GError *error = NULL;
INIT_I18N ();
config = gimp_procedure_create_config (procedure);
gimp_procedure_config_begin_run (config, image, run_mode, args);

View file

@ -137,6 +137,7 @@ static void writeline (FILE *fp,
G_DEFINE_TYPE (Pcx, pcx, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (PCX_TYPE)
DEFINE_STD_SET_I18N
static void
@ -146,6 +147,7 @@ pcx_class_init (PcxClass *klass)
plug_in_class->query_procedures = pcx_query_procedures;
plug_in_class->create_procedure = pcx_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -233,7 +235,6 @@ pcx_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, &error);
@ -266,7 +267,6 @@ pcx_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)

View file

@ -287,6 +287,7 @@ static GimpLayer * layer_from_surface (GimpImage *image,
G_DEFINE_TYPE (Pdf, pdf, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (PDF_TYPE)
DEFINE_STD_SET_I18N
static void
@ -296,6 +297,7 @@ pdf_class_init (PdfClass *klass)
plug_in_class->query_procedures = pdf_query_procedures;
plug_in_class->create_procedure = pdf_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -409,7 +411,6 @@ pdf_load (GimpProcedure *procedure,
PdfSelectedPages pages = { 0, NULL };
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)
@ -560,7 +561,6 @@ pdf_load_thumb (GimpProcedure *procedure,
cairo_surface_t *surface = NULL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
doc = open_document (file,

View file

@ -293,6 +293,7 @@ static gboolean draw_layer (GimpLayer **layers,
G_DEFINE_TYPE (Pdf, pdf, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (PDF_TYPE)
DEFINE_STD_SET_I18N
static gboolean dnd_remove = TRUE;
@ -322,6 +323,7 @@ pdf_class_init (PdfClass *klass)
plug_in_class->query_procedures = pdf_query_procedures;
plug_in_class->create_procedure = pdf_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -499,7 +501,6 @@ pdf_save (GimpProcedure *procedure,
gboolean had_saved_list = FALSE;
gboolean defaults = FALSE;
INIT_I18N ();
gegl_init (NULL, NULL);
/* Initializing all the settings */
@ -571,7 +572,6 @@ pdf_save_multi (GimpProcedure *procedure,
GFile *file;
gboolean had_saved_list = FALSE;
INIT_I18N ();
gegl_init (NULL, NULL);
run_mode = GIMP_VALUES_GET_ENUM (args, 0);

View file

@ -122,6 +122,7 @@ static gboolean put_short (GOutputStream *output,
G_DEFINE_TYPE (Pix, pix, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (PIX_TYPE)
DEFINE_STD_SET_I18N
static void
@ -131,6 +132,7 @@ pix_class_init (PixClass *klass)
plug_in_class->query_procedures = pix_query_procedures;
plug_in_class->create_procedure = pix_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -222,7 +224,6 @@ pix_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, &error);
@ -255,7 +256,6 @@ pix_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)

View file

@ -136,6 +136,7 @@ static gint find_unused_ia_color (GeglBuffer *buffer,
G_DEFINE_TYPE (Png, png, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (PNG_TYPE)
DEFINE_STD_SET_I18N
static void
@ -145,6 +146,7 @@ png_class_init (PngClass *klass)
plug_in_class->query_procedures = png_query_procedures;
plug_in_class->create_procedure = png_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -169,7 +171,6 @@ png_create_procedure (GimpPlugIn *plug_in,
{
GimpProcedure *procedure = NULL;
INIT_I18N ();
if (! strcmp (name, LOAD_PROC))
{
procedure = gimp_load_procedure_new (plug_in, name,
@ -305,7 +306,6 @@ png_load (GimpProcedure *procedure,
GimpMetadata *metadata;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)
@ -377,7 +377,6 @@ png_save (GimpProcedure *procedure,
gboolean alpha;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -223,6 +223,7 @@ static void pnmscanner_getsmalltoken (PNMScanner *s,
G_DEFINE_TYPE (Pnm, pnm, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (PNM_TYPE)
DEFINE_STD_SET_I18N
static const struct
@ -253,6 +254,7 @@ pnm_class_init (PnmClass *klass)
plug_in_class->query_procedures = pnm_query_procedures;
plug_in_class->create_procedure = pnm_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -494,7 +496,6 @@ pnm_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, &error);
@ -530,7 +531,6 @@ pnm_save (GimpProcedure *procedure,
const gchar *format_name = NULL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -294,6 +294,7 @@ static void save_unit_toggle_update (GtkWidget *widget,
G_DEFINE_TYPE (PostScript, ps, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (PS_TYPE)
DEFINE_STD_SET_I18N
static PSLoadVals plvals =
@ -340,6 +341,7 @@ ps_class_init (PostScriptClass *klass)
plug_in_class->query_procedures = ps_query_procedures;
plug_in_class->create_procedure = ps_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -610,7 +612,6 @@ ps_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
l_run_mode = run_mode;
@ -681,7 +682,6 @@ ps_load_thumb (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
/* We should look for an embedded preview but for now we
@ -728,7 +728,6 @@ ps_save (GimpProcedure *procedure,
GimpImage *orig_image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
psvals.eps = strcmp (gimp_procedure_get_name (procedure), SAVE_PS_PROC);

View file

@ -613,6 +613,7 @@ static gboolean save_dialog (GimpProcedure *procedure,
G_DEFINE_TYPE (Psp, psp, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (PSP_TYPE)
DEFINE_STD_SET_I18N
static guint16 psp_ver_major;
@ -626,6 +627,7 @@ psp_class_init (PspClass *klass)
plug_in_class->query_procedures = psp_query_procedures;
plug_in_class->create_procedure = psp_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -730,7 +732,6 @@ psp_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, &error);
@ -764,7 +765,6 @@ psp_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -205,6 +205,7 @@ static void file_raw_scale_entry_update_int (GimpLabelSpin *entry,
G_DEFINE_TYPE (Raw, raw, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (RAW_TYPE)
DEFINE_STD_SET_I18N
static RawConfig *runtime = NULL;
@ -221,6 +222,7 @@ raw_class_init (RawClass *klass)
plug_in_class->query_procedures = raw_query_procedures;
plug_in_class->create_procedure = raw_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -357,7 +359,6 @@ raw_load (GimpProcedure *procedure,
GimpImage *image = NULL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
is_hgt = (! strcmp (gimp_procedure_get_name (procedure), LOAD_HGT_PROC));
@ -561,7 +562,6 @@ raw_save (GimpProcedure *procedure,
RawType image_type;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -225,6 +225,7 @@ static int my_fwrite (void *ptr,
G_DEFINE_TYPE (Sunras, sunras, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (SUNRAS_TYPE)
DEFINE_STD_SET_I18N
static int read_msb_first = 1;
@ -238,6 +239,7 @@ sunras_class_init (SunrasClass *klass)
plug_in_class->query_procedures = sunras_query_procedures;
plug_in_class->create_procedure = sunras_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -334,7 +336,6 @@ sunras_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, &error);
@ -368,7 +369,6 @@ sunras_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -104,6 +104,7 @@ static gboolean load_dialog (GFile *file,
G_DEFINE_TYPE (Svg, svg, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (SVG_TYPE)
DEFINE_STD_SET_I18N
static SvgLoadVals load_vals =
@ -123,6 +124,7 @@ svg_class_init (SvgClass *klass)
plug_in_class->query_procedures = svg_query_procedures;
plug_in_class->create_procedure = svg_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -235,7 +237,6 @@ svg_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)
@ -304,7 +305,6 @@ svg_load_thumb (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
if (load_rsvg_size (file, &load_vals, NULL))

View file

@ -207,6 +207,7 @@ static GimpImage * ReadImage (FILE *fp,
G_DEFINE_TYPE (Tga, tga, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (TGA_TYPE)
DEFINE_STD_SET_I18N
/* TRUEVISION-XFILE magic signature string */
@ -224,6 +225,7 @@ tga_class_init (TgaClass *klass)
plug_in_class->query_procedures = tga_query_procedures;
plug_in_class->create_procedure = tga_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -323,7 +325,6 @@ tga_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, &error);
@ -357,7 +358,6 @@ tga_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -101,6 +101,7 @@ static guchar * wmf_load_file (GFile *file,
G_DEFINE_TYPE (Wmf, wmf, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (WMF_TYPE)
DEFINE_STD_SET_I18N
static WmfLoadVals load_vals =
@ -118,6 +119,7 @@ wmf_class_init (WmfClass *klass)
plug_in_class->query_procedures = wmf_query_procedures;
plug_in_class->create_procedure = wmf_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -220,7 +222,6 @@ wmf_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)
@ -273,7 +274,6 @@ wmf_load_thumb (GimpProcedure *procedure,
gint height;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
if (load_wmf_size (file, &load_vals) &&

View file

@ -114,6 +114,7 @@ static gboolean print (GOutputStream *output,
G_DEFINE_TYPE (Xbm, xbm, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (XBM_TYPE)
DEFINE_STD_SET_I18N
static void
@ -123,6 +124,7 @@ xbm_class_init (XbmClass *klass)
plug_in_class->query_procedures = xbm_query_procedures;
plug_in_class->create_procedure = xbm_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -276,7 +278,6 @@ xbm_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, &error);
@ -341,7 +342,6 @@ xbm_save (GimpProcedure *procedure,
gchar *mask_basename = NULL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -254,6 +254,7 @@ static void find_hotspots_and_dimensions
G_DEFINE_TYPE (Xmc, xmc, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (XMC_TYPE)
DEFINE_STD_SET_I18N
static void
@ -263,6 +264,7 @@ xmc_class_init (XmcClass *klass)
plug_in_class->query_procedures = xmc_query_procedures;
plug_in_class->create_procedure = xmc_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -446,7 +448,6 @@ xmc_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, &error);
@ -479,7 +480,6 @@ xmc_load_thumb (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_thumbnail (file, size,
@ -525,7 +525,6 @@ xmc_save (GimpProcedure *procedure,
gint hot_spot_y;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
orig_image = image;

View file

@ -136,6 +136,7 @@ static gboolean save_dialog (GimpProcedure *procedure,
G_DEFINE_TYPE (Xpm, xpm, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (XPM_TYPE)
DEFINE_STD_SET_I18N
static const gchar linenoise [] =
@ -160,6 +161,7 @@ xpm_class_init (XpmClass *klass)
plug_in_class->query_procedures = xpm_query_procedures;
plug_in_class->create_procedure = xpm_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -271,7 +273,6 @@ xpm_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, &error);
@ -305,7 +306,6 @@ xpm_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -275,6 +275,7 @@ static gint save_rgb (GOutputStream *output,
G_DEFINE_TYPE (Xwd, xwd, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (XWD_TYPE)
DEFINE_STD_SET_I18N
static void
@ -284,6 +285,7 @@ xwd_class_init (XwdClass *klass)
plug_in_class->query_procedures = xwd_query_procedures;
plug_in_class->create_procedure = xwd_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -379,7 +381,6 @@ xwd_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, &error);
@ -412,7 +413,6 @@ xwd_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)

View file

@ -152,6 +152,7 @@ static void film_scale_entry_update_double (GimpLabelSpin *entry,
G_DEFINE_TYPE (Film, film, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (FILM_TYPE)
DEFINE_STD_SET_I18N
static gdouble advanced_defaults[] =
@ -199,6 +200,7 @@ film_class_init (FilmClass *klass)
plug_in_class->query_procedures = film_query_procedures;
plug_in_class->create_procedure = film_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -321,7 +323,6 @@ film_run (GimpProcedure *procedure,
GimpImage **images;
gint i;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)

View file

@ -82,6 +82,7 @@ static gdouble * get_samples_palette (GimpDrawable *drawable);
G_DEFINE_TYPE (Map, map, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (MAP_TYPE)
DEFINE_STD_SET_I18N
static void
@ -91,6 +92,7 @@ map_class_init (MapClass *klass)
plug_in_class->query_procedures = map_query_procedures;
plug_in_class->create_procedure = map_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -204,7 +206,6 @@ map_run (GimpProcedure *procedure,
GeglBuffer *buffer;
GimpDrawable *drawable;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -114,6 +114,7 @@ static gint dialog (GimpImage *image,
G_DEFINE_TYPE (Grid, grid, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (GRID_TYPE)
DEFINE_STD_SET_I18N
static gint sx1, sy1, sx2, sy2;
@ -137,6 +138,7 @@ grid_class_init (GridClass *klass)
plug_in_class->query_procedures = grid_query_procedures;
plug_in_class->create_procedure = grid_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -271,7 +273,6 @@ grid_run (GimpProcedure *procedure,
{
GimpDrawable *drawable;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -68,6 +68,7 @@ static GList * guillotine (GimpImage *image
G_DEFINE_TYPE (Guillotine, guillotine, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (GUILLOTINE_TYPE)
DEFINE_STD_SET_I18N
static void
guillotine_class_init (GuillotineClass *klass)
@ -76,6 +77,7 @@ guillotine_class_init (GuillotineClass *klass)
plug_in_class->query_procedures = guillotine_query_procedures;
plug_in_class->create_procedure = guillotine_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -151,8 +153,6 @@ guillotine_run (GimpProcedure *procedure,
GimpValueArray *return_vals = NULL;
GimpPDBStatusType status = GIMP_PDB_SUCCESS;
INIT_I18N();
return_vals = gimp_procedure_new_return_values (procedure, status,
NULL);
if (status == GIMP_PDB_SUCCESS)

View file

@ -205,6 +205,7 @@ static void build_tab (gint m);
G_DEFINE_TYPE (Hot, hot, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (HOT_TYPE)
DEFINE_STD_SET_I18N
static gint tab[3][3][MAXPIX+1]; /* multiply lookup table */
@ -221,6 +222,7 @@ hot_class_init (HotClass *klass)
plug_in_class->query_procedures = hot_query_procedures;
plug_in_class->create_procedure = hot_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -305,7 +307,6 @@ hot_run (GimpProcedure *procedure,
GimpDrawable *drawable;
piArgs pi_args;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -346,6 +346,7 @@ static void check_config (gint width, gint height);
G_DEFINE_TYPE (Jigsaw, jigsaw, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (JIGSAW_TYPE)
DEFINE_STD_SET_I18N
static config_t config =
@ -367,6 +368,7 @@ jigsaw_class_init (JigsawClass *klass)
plug_in_class->query_procedures = jigsaw_query_procedures;
plug_in_class->create_procedure = jigsaw_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -455,7 +457,6 @@ jigsaw_run (GimpProcedure *procedure,
{
GimpDrawable *drawable;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -122,6 +122,7 @@ static FILE * sendmail_pipe (gchar **cmd,
G_DEFINE_TYPE (Mail, mail, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (MAIL_TYPE)
DEFINE_STD_SET_I18N
static m_info mail_info =
@ -139,6 +140,7 @@ mail_class_init (MailClass *klass)
plug_in_class->init_procedures = mail_init_procedures;
plug_in_class->create_procedure = mail_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -266,8 +268,6 @@ mail_run (GimpProcedure *procedure,
{
GimpPDBStatusType status = GIMP_PDB_SUCCESS;
INIT_I18N ();
switch (run_mode)
{
case GIMP_RUN_INTERACTIVE:

View file

@ -115,6 +115,7 @@ static void nlfilter_scale_entry_update_double (GimpLabelSpin *entry,
G_DEFINE_TYPE (Nlfilter, nlfilter, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (NLFILTER_TYPE)
DEFINE_STD_SET_I18N
static NLFilterValues nlfvals =
@ -132,6 +133,7 @@ nlfilter_class_init (NlfilterClass *klass)
plug_in_class->query_procedures = nlfilter_query_procedures;
plug_in_class->create_procedure = nlfilter_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -212,7 +214,6 @@ nlfilter_run (GimpProcedure *procedure,
{
GimpDrawable *drawable;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -130,6 +130,7 @@ static gboolean find_existing_mpath (GtkTreeModel *model,
G_DEFINE_TYPE (Browser, browser, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (BROWSER_TYPE)
DEFINE_STD_SET_I18N
static void
@ -139,6 +140,7 @@ browser_class_init (BrowserClass *klass)
plug_in_class->query_procedures = browser_query_procedures;
plug_in_class->create_procedure = browser_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -200,8 +202,6 @@ browser_run (GimpProcedure *procedure,
const GimpValueArray *args,
gpointer run_data)
{
INIT_I18N ();
browser_dialog_new ();
gtk_main ();

View file

@ -87,6 +87,7 @@ static GimpValueArray * browser_run (GimpProcedure *procedur
G_DEFINE_TYPE (Browser, browser, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (BROWSER_TYPE)
DEFINE_STD_SET_I18N
static void
@ -96,6 +97,7 @@ browser_class_init (BrowserClass *klass)
plug_in_class->query_procedures = browser_query_procedures;
plug_in_class->create_procedure = browser_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -151,8 +153,6 @@ browser_run (GimpProcedure *procedure,
{
GimpRunMode run_mode = GIMP_VALUES_GET_ENUM (args, 0);
INIT_I18N ();
switch (run_mode)
{
case GIMP_RUN_INTERACTIVE:

View file

@ -138,6 +138,7 @@ static void qbist (ExpInfo *info,
G_DEFINE_TYPE (Qbist, qbist, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (QBIST_TYPE)
DEFINE_STD_SET_I18N
static QbistInfo qbist_info;
@ -151,6 +152,7 @@ qbist_class_init (QbistClass *klass)
plug_in_class->query_procedures = qbist_query_procedures;
plug_in_class->create_procedure = qbist_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -241,7 +243,6 @@ qbist_run (GimpProcedure *procedure,
gint total_pixels;
gint done_pixels;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -239,6 +239,7 @@ static void clear_preview (GtkWidget *preview);
G_DEFINE_TYPE (Colorize, colorize, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (COLORIZE_TYPE)
DEFINE_STD_SET_I18N
static t_samp_interface g_di; /* global dialog interface variables */
@ -262,6 +263,7 @@ colorize_class_init (ColorizeClass *klass)
plug_in_class->query_procedures = colorize_query_procedures;
plug_in_class->create_procedure = colorize_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -419,7 +421,6 @@ colorize_run (GimpProcedure *procedure,
const gchar *env;
GimpDrawable *drawable;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -74,6 +74,7 @@ static GimpImage * smooth_palette (GimpDrawable *drawable
G_DEFINE_TYPE (Palette, palette, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (PALETTE_TYPE)
DEFINE_STD_SET_I18N
static struct
@ -100,6 +101,7 @@ palette_class_init (PaletteClass *klass)
plug_in_class->query_procedures = palette_query_procedures;
plug_in_class->create_procedure = palette_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -196,7 +198,6 @@ palette_run (GimpProcedure *procedure,
GimpLayer *new_layer;
GimpDrawable *drawable;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -145,6 +145,7 @@ static void rpnt (GeglBuffer *dest_buf
G_DEFINE_TYPE (Sparkle, sparkle, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (SPARKLE_TYPE)
DEFINE_STD_SET_I18N
static SparkleVals svals =
@ -174,6 +175,7 @@ sparkle_class_init (SparkleClass *klass)
plug_in_class->query_procedures = sparkle_query_procedures;
plug_in_class->create_procedure = sparkle_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -316,7 +318,6 @@ sparkle_run (GimpProcedure *procedure,
GimpDrawable *drawable;
gint x, y, w, h;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -311,6 +311,7 @@ static gdouble turbulence (gdouble *point,
G_DEFINE_TYPE (Designer, designer, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (DESIGNER_TYPE)
DEFINE_STD_SET_I18N
static GtkWidget *drawarea = NULL;
@ -376,6 +377,7 @@ designer_class_init (DesignerClass *klass)
plug_in_class->query_procedures = designer_query_procedures;
plug_in_class->create_procedure = designer_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -3167,7 +3169,6 @@ designer_run (GimpProcedure *procedure,
GimpDrawable *drawable;
gint x, y, w, h;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -153,6 +153,7 @@ static gboolean tileit_preview_events (GtkWidget *widget,
G_DEFINE_TYPE (Tile, tile, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (TILE_TYPE)
DEFINE_STD_SET_I18N
/* Values when first invoked */
@ -231,6 +232,7 @@ tile_class_init (TileClass *klass)
plug_in_class->query_procedures = tile_query_procedures;
plug_in_class->create_procedure = tile_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -296,7 +298,6 @@ tile_run (GimpProcedure *procedure,
gint pwidth;
gint pheight;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -92,6 +92,7 @@ static gboolean tile_dialog (GimpImage *image,
G_DEFINE_TYPE (Tile, tile, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (TILE_TYPE)
DEFINE_STD_SET_I18N
static TileVals tvals =
@ -110,6 +111,7 @@ tile_class_init (TileClass *klass)
plug_in_class->query_procedures = tile_query_procedures;
plug_in_class->create_procedure = tile_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -208,7 +210,6 @@ tile_run (GimpProcedure *procedure,
GimpImage *new_image;
GimpDrawable *drawable;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -104,6 +104,7 @@ static void unit_list_init (GtkTreeView *tv);
G_DEFINE_TYPE (Editor, editor, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (EDITOR_TYPE)
DEFINE_STD_SET_I18N
static const UnitColumn columns[] =
@ -154,6 +155,7 @@ editor_class_init (EditorClass *klass)
plug_in_class->query_procedures = editor_query_procedures;
plug_in_class->create_procedure = editor_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -208,8 +210,6 @@ editor_run (GimpProcedure *procedure,
const GimpValueArray *args,
gpointer run_data)
{
INIT_I18N ();
unit_editor_dialog ();
return gimp_procedure_new_return_values (procedure, GIMP_PDB_SUCCESS, NULL);

View file

@ -99,6 +99,7 @@ static void lic_scale_entry_update (GimpLabelSpin *entry,
G_DEFINE_TYPE (Lic, lic, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (LIC_TYPE)
DEFINE_STD_SET_I18N
static void
@ -108,6 +109,7 @@ lic_class_init (LicClass *klass)
plug_in_class->query_procedures = lic_query_procedures;
plug_in_class->create_procedure = lic_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -901,7 +903,6 @@ lic_run (GimpProcedure *procedure,
{
GimpDrawable *drawable;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -184,6 +184,7 @@ static gdouble warp_map_mag_give_value (guchar *pt,
G_DEFINE_TYPE (Warp, warp, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (WARP_TYPE)
DEFINE_STD_SET_I18N
static WarpVals dvals =
@ -216,6 +217,7 @@ warp_class_init (WarpClass *klass)
plug_in_class->query_procedures = warp_query_procedures;
plug_in_class->create_procedure = warp_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -363,7 +365,6 @@ warp_run (GimpProcedure *procedure,
GimpDrawable *drawable;
GimpRGB color;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -80,6 +80,7 @@ static void wavelet_scale_entry_update_int (GimpLabelSpin *entry,
G_DEFINE_TYPE (Wavelet, wavelet, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (WAVELET_TYPE)
DEFINE_STD_SET_I18N
static WaveletDecomposeParams wavelet_params =
@ -97,6 +98,7 @@ wavelet_class_init (WaveletClass *klass)
plug_in_class->query_procedures = wavelet_query_procedures;
plug_in_class->create_procedure = wavelet_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -178,7 +180,6 @@ wavelet_run (GimpProcedure *procedure,
GimpLayerMode grain_merge_mode = GIMP_LAYER_MODE_GRAIN_MERGE;
gint id;
INIT_I18N();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -78,6 +78,7 @@ static gboolean browser_open_url (GtkWindow *window,
G_DEFINE_TYPE (Browser, browser, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (BROWSER_TYPE)
DEFINE_STD_SET_I18N
static void
@ -87,6 +88,7 @@ browser_class_init (BrowserClass *klass)
plug_in_class->query_procedures = browser_query_procedures;
plug_in_class->create_procedure = browser_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -140,8 +142,6 @@ browser_run (GimpProcedure *procedure,
{
GError *error = NULL;
INIT_I18N ();
if (! browser_open_url (NULL, GIMP_VALUES_GET_STRING (args, 0),
&error))
{

View file

@ -88,6 +88,7 @@ static GimpImage * webpage_capture (void);
G_DEFINE_TYPE (Webpage, webpage, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (WEBPAGE_TYPE)
DEFINE_STD_SET_I18N
static WebpageVals webpagevals;
@ -100,6 +101,7 @@ webpage_class_init (WebpageClass *klass)
plug_in_class->query_procedures = webpage_query_procedures;
plug_in_class->create_procedure = webpage_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -183,8 +185,6 @@ webpage_run (GimpProcedure *procedure,
GimpImage *image;
WebpageSaveVals save = { "https://www.gimp.org/", 1024, 12 };
INIT_I18N ();
gimp_get_data (PLUG_IN_PROC, &save);
run_mode = GIMP_VALUES_GET_ENUM (args, 0);

View file

@ -108,6 +108,7 @@ static GimpValueArray * bmp_save (GimpProcedure *procedure,
G_DEFINE_TYPE (Bmp, bmp, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (BMP_TYPE)
DEFINE_STD_SET_I18N
static void
@ -117,6 +118,7 @@ bmp_class_init (BmpClass *klass)
plug_in_class->query_procedures = bmp_query_procedures;
plug_in_class->create_procedure = bmp_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -226,7 +228,6 @@ bmp_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, &error);
@ -260,7 +261,6 @@ bmp_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -97,6 +97,7 @@ static GimpValueArray * dds_decode (GimpProcedure *procedure,
G_DEFINE_TYPE (Dds, dds, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (DDS_TYPE)
DEFINE_STD_SET_I18N
static void
@ -106,6 +107,7 @@ dds_class_init (DdsClass *klass)
plug_in_class->query_procedures = dds_query_procedures;
plug_in_class->create_procedure = dds_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -396,7 +398,6 @@ dds_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);
@ -436,7 +437,6 @@ dds_save (GimpProcedure *procedure,
GError *error = NULL;
gdouble gamma;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -67,6 +67,7 @@ static void sanitize_comment (gchar *comment);
G_DEFINE_TYPE (Exr, exr, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (EXR_TYPE)
DEFINE_STD_SET_I18N
static void
@ -76,6 +77,7 @@ exr_class_init (ExrClass *klass)
plug_in_class->query_procedures = exr_query_procedures;
plug_in_class->create_procedure = exr_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -136,7 +138,6 @@ exr_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, run_mode == GIMP_RUN_INTERACTIVE,

View file

@ -95,6 +95,7 @@ static GimpImage * emitgimp (gint hcol,
G_DEFINE_TYPE (Faxg3, faxg3, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (FAXG3_TYPE)
DEFINE_STD_SET_I18N
static void
@ -104,6 +105,7 @@ faxg3_class_init (Faxg3Class *klass)
plug_in_class->query_procedures = faxg3_query_procedures;
plug_in_class->create_procedure = faxg3_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -163,7 +165,6 @@ faxg3_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, &error);

View file

@ -135,6 +135,7 @@ static void show_fits_errors (void);
G_DEFINE_TYPE (Fits, fits, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (FITS_TYPE)
DEFINE_STD_SET_I18N
static void
@ -144,6 +145,7 @@ fits_class_init (FitsClass *klass)
plug_in_class->query_procedures = fits_query_procedures;
plug_in_class->create_procedure = fits_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -254,7 +256,6 @@ fits_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);
@ -304,7 +305,6 @@ fits_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)

View file

@ -136,6 +136,7 @@ static gboolean get_info (GFile *file,
G_DEFINE_TYPE (Fli, fli, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (FLI_TYPE)
DEFINE_STD_SET_I18N
static void
@ -145,6 +146,7 @@ fli_class_init (FliClass *klass)
plug_in_class->query_procedures = fli_query_procedures;
plug_in_class->create_procedure = fli_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -298,7 +300,6 @@ fli_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);
@ -347,7 +348,6 @@ fli_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -94,6 +94,7 @@ static GimpValueArray * cur_save (GimpProcedure *procedure,
G_DEFINE_TYPE (Ico, ico, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (ICO_TYPE)
DEFINE_STD_SET_I18N
static void
@ -103,6 +104,7 @@ ico_class_init (IcoClass *klass)
plug_in_class->query_procedures = ico_query_procedures;
plug_in_class->create_procedure = ico_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -290,7 +292,6 @@ ico_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = ico_load_image (file, &error);
@ -322,7 +323,6 @@ ico_load_thumb (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
width = size;
@ -362,7 +362,6 @@ ico_save (GimpProcedure *procedure,
GimpPDBStatusType status;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
status = ico_save_image (file, image, run_mode, &error);
@ -388,7 +387,6 @@ cur_save (GimpProcedure *procedure,
gint n_hot_spot_x = 0;
gint n_hot_spot_y = 0;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -81,6 +81,7 @@ static GimpValueArray * jpeg_save (GimpProcedure *procedure,
G_DEFINE_TYPE (Jpeg, jpeg, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (JPEG_TYPE)
DEFINE_STD_SET_I18N
gboolean undo_touched = FALSE;
@ -97,6 +98,7 @@ jpeg_class_init (JpegClass *klass)
plug_in_class->query_procedures = jpeg_query_procedures;
plug_in_class->create_procedure = jpeg_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -323,7 +325,6 @@ jpeg_load (GimpProcedure *procedure,
gboolean resolution_loaded = FALSE;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
preview_image = NULL;
@ -392,7 +393,6 @@ jpeg_load_thumb (GimpProcedure *procedure,
GimpImageType type = -1;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
preview_image = NULL;
@ -441,7 +441,6 @@ jpeg_save (GimpProcedure *procedure,
gint orig_quality = -1;
JpegSubsampling orig_subsmp = JPEG_SUBSAMPLING_2x2_1x1_1x1;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -79,6 +79,7 @@ static GimpValueArray * psd_save (GimpProcedure *procedure,
G_DEFINE_TYPE (Psd, psd, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (PSD_TYPE)
DEFINE_STD_SET_I18N
static void
@ -88,6 +89,7 @@ psd_class_init (PsdClass *klass)
plug_in_class->query_procedures = psd_query_procedures;
plug_in_class->create_procedure = psd_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -240,7 +242,6 @@ psd_load (GimpProcedure *procedure,
GimpMetadata *metadata;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)
@ -305,7 +306,6 @@ psd_load_thumb (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_thumbnail_image (file, &width, &height, &error);
@ -344,7 +344,6 @@ psd_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_IGNORE;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
switch (run_mode)

View file

@ -82,6 +82,7 @@ static GimpImage * load_thumbnail_image (GFile *file,
G_DEFINE_TYPE (Darktable, darktable, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (DARKTABLE_TYPE)
DEFINE_STD_SET_I18N
static void
@ -91,6 +92,7 @@ darktable_class_init (DarktableClass *klass)
plug_in_class->init_procedures = darktable_init_procedures;
plug_in_class->create_procedure = darktable_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -310,8 +312,6 @@ darktable_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
image = load_image (file, run_mode, &error);
if (! image)
@ -341,8 +341,6 @@ darktable_load_thumb (GimpProcedure *procedure,
GimpImage *image = NULL;
GError *error = NULL;
INIT_I18N ();
width = size;
height = size;

View file

@ -62,6 +62,7 @@ static GimpValueArray * placeholder_load (GimpProcedure *proc
G_DEFINE_TYPE (Placeholder, placeholder, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (PLACEHOLDER_TYPE)
DEFINE_STD_SET_I18N
static void
@ -71,6 +72,7 @@ placeholder_class_init (PlaceholderClass *klass)
plug_in_class->query_procedures = placeholder_query_procedures;
plug_in_class->create_procedure = placeholder_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -166,8 +168,6 @@ placeholder_load (GimpProcedure *procedure,
const FileFormat *format = run_data;
GError *error = NULL;
INIT_I18N ();
g_set_error (&error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
_("There is no RAW loader installed to open '%s' files.\n"
"\n"

View file

@ -81,6 +81,7 @@ static GimpImage * load_thumbnail_image (GFile *file
G_DEFINE_TYPE (Rawtherapee, rawtherapee, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (RAWTHERAPEE_TYPE)
DEFINE_STD_SET_I18N
static void
@ -90,6 +91,7 @@ rawtherapee_class_init (RawtherapeeClass *klass)
plug_in_class->init_procedures = rawtherapee_init_procedures;
plug_in_class->create_procedure = rawtherapee_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -261,8 +263,6 @@ rawtherapee_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
image = load_image (file, run_mode, &error);
if (! image)
@ -290,8 +290,6 @@ rawtherapee_load_thumb (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
image = load_thumbnail_image (file, size, &error);
if (! image)

View file

@ -98,6 +98,7 @@ static gboolean save_dialog (GimpProcedure *procedure,
G_DEFINE_TYPE (Sgi, sgi, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (SGI_TYPE)
DEFINE_STD_SET_I18N
static void
@ -107,6 +108,7 @@ sgi_class_init (SgiClass *klass)
plug_in_class->query_procedures = sgi_query_procedures;
plug_in_class->create_procedure = sgi_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -203,7 +205,6 @@ sgi_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, &error);
@ -237,7 +238,6 @@ sgi_save (GimpProcedure *procedure,
GimpExportReturn export = GIMP_EXPORT_CANCEL;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -115,6 +115,7 @@ static gboolean image_is_multi_layer (GimpImage *image);
G_DEFINE_TYPE (Tiff, tiff, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (TIFF_TYPE)
DEFINE_STD_SET_I18N
static void
@ -124,6 +125,7 @@ tiff_class_init (TiffClass *klass)
plug_in_class->query_procedures = tiff_query_procedures;
plug_in_class->create_procedure = tiff_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -273,7 +275,6 @@ tiff_load (GimpProcedure *procedure,
GimpMetadata *metadata;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
if (run_mode == GIMP_RUN_INTERACTIVE)
@ -331,7 +332,6 @@ tiff_save (GimpProcedure *procedure,
GError *error = NULL;
GimpPDBStatusType status = GIMP_PDB_SUCCESS;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -77,6 +77,7 @@ static GimpValueArray * webp_save (GimpProcedure *procedure,
G_DEFINE_TYPE (Webp, webp, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (WEBP_TYPE)
DEFINE_STD_SET_I18N
static void
@ -86,6 +87,7 @@ webp_class_init (WebpClass *klass)
plug_in_class->query_procedures = webp_query_procedures;
plug_in_class->create_procedure = webp_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -254,7 +256,6 @@ webp_load (GimpProcedure *procedure,
GimpImage *image;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
image = load_image (file, FALSE, &error);
@ -290,7 +291,6 @@ webp_save (GimpProcedure *procedure,
gboolean animation;
GError *error = NULL;
INIT_I18N ();
gegl_init (NULL, NULL);
config = gimp_procedure_create_config (procedure);

View file

@ -112,6 +112,7 @@ static void flame_scale_entry_update_double (GimpLabelSpin *entry,
G_DEFINE_TYPE (Flame, flame, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (FLAME_TYPE)
DEFINE_STD_SET_I18N
static gchar buffer[BUFFER_SIZE];
@ -141,6 +142,7 @@ flame_class_init (FlameClass *klass)
plug_in_class->query_procedures = flame_query_procedures;
plug_in_class->create_procedure = flame_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -229,7 +231,6 @@ flame_run (GimpProcedure *procedure,
{
GimpDrawable *drawable;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -134,6 +134,7 @@ static void fractalexplorer_rescan_list (GtkWidget *widget,
G_DEFINE_TYPE (Explorer, explorer, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (EXPLORER_TYPE)
DEFINE_STD_SET_I18N
/**********************************************************************
@ -207,6 +208,7 @@ explorer_class_init (ExplorerClass *klass)
plug_in_class->query_procedures = explorer_query_procedures;
plug_in_class->create_procedure = explorer_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -387,7 +389,6 @@ explorer_run (GimpProcedure *procedure,
gint sel_width;
gint sel_height;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -96,6 +96,7 @@ static gint load_options (GFigObj *gfig,
G_DEFINE_TYPE (Gfig, gfig, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (GFIG_TYPE)
DEFINE_STD_SET_I18N
gint line_no;
@ -134,6 +135,7 @@ gfig_class_init (GfigClass *klass)
plug_in_class->query_procedures = gfig_query_procedures;
plug_in_class->create_procedure = gfig_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -202,8 +204,6 @@ gfig_run (GimpProcedure *procedure,
GimpPDBStatusType status = GIMP_PDB_SUCCESS;
gint pwidth, pheight;
INIT_I18N ();
if (n_drawables != 1)
{
GError *error = NULL;

View file

@ -73,6 +73,7 @@ static void gimpressionist_main (void);
G_DEFINE_TYPE (Gimpressionist, gimpressionist, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (GIMPRESSIONIST_TYPE)
DEFINE_STD_SET_I18N
static GimpDrawable *drawable;
@ -87,6 +88,7 @@ gimpressionist_class_init (GimpressionistClass *klass)
plug_in_class->query_procedures = gimpressionist_query_procedures;
plug_in_class->create_procedure = gimpressionist_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -166,7 +168,6 @@ gimpressionist_run (GimpProcedure *procedure,
{
const gchar *preset_name;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -672,6 +672,7 @@ static void gradient_scale_entry_update_int (GimpLabelSpin *entry,
G_DEFINE_TYPE (Gflare, gflare, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (GFLARE_TYPE)
DEFINE_STD_SET_I18N
PluginValues pvals =
@ -785,6 +786,7 @@ gflare_class_init (GflareClass *klass)
plug_in_class->query_procedures = gflare_query_procedures;
plug_in_class->create_procedure = gflare_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -921,7 +923,6 @@ gflare_run (GimpProcedure *procedure,
{
gchar *path;
INIT_I18N ();
gegl_init (NULL, NULL);
image = _image;

View file

@ -69,6 +69,7 @@ struct _GimpHelpBrowser
G_DEFINE_TYPE (GimpHelpBrowser, gimp_help_browser, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (GIMP_TYPE_HELP_BROWSER)
DEFINE_STD_SET_I18N
static GList *
help_browser_query_procedures (GimpPlugIn *plug_in)
@ -152,8 +153,6 @@ help_browser_run (GimpProcedure *procedure,
{
GimpHelpBrowser *browser = GIMP_HELP_BROWSER (user_data);
INIT_I18N ();
if (! gimp_help_init (GIMP_VALUES_GET_STRV (args, 1),
GIMP_VALUES_GET_STRV (args, 2)))
{
@ -352,6 +351,7 @@ gimp_help_browser_class_init (GimpHelpBrowserClass *klass)
plug_in_class->query_procedures = help_browser_query_procedures;
plug_in_class->create_procedure = help_browser_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void

View file

@ -94,6 +94,7 @@ static GMainLoop *main_loop = NULL;
G_DEFINE_TYPE (Help, help, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (HELP_TYPE)
DEFINE_STD_SET_I18N
static void
@ -103,6 +104,7 @@ help_class_init (HelpClass *klass)
plug_in_class->query_procedures = help_query_procedures;
plug_in_class->create_procedure = help_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -156,8 +158,6 @@ help_run (GimpProcedure *procedure,
{
GimpPDBStatusType status = GIMP_PDB_SUCCESS;
INIT_I18N ();
if (! gimp_help_init (GIMP_VALUES_GET_STRV (args, 0),
GIMP_VALUES_GET_STRV (args, 1)))
{

View file

@ -294,6 +294,7 @@ static void ifs_compose_response (GtkWidget *widget,
G_DEFINE_TYPE (Ifs, ifs, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (IFS_TYPE)
DEFINE_STD_SET_I18N
static IfsDialog *ifsD = NULL;
@ -338,6 +339,7 @@ ifs_class_init (IfsClass *klass)
plug_in_class->query_procedures = ifs_query_procedures;
plug_in_class->create_procedure = ifs_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -405,7 +407,6 @@ ifs_run (GimpProcedure *procedure,
GimpParasite *parasite = NULL;
gboolean found_parasite = FALSE;
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

View file

@ -100,6 +100,7 @@ static gint zoom_out (void);
G_DEFINE_TYPE (Imap, imap, GIMP_TYPE_PLUG_IN)
GIMP_MAIN (IMAP_TYPE)
DEFINE_STD_SET_I18N
/* Global variables */
@ -134,6 +135,7 @@ imap_class_init (ImapClass *klass)
plug_in_class->query_procedures = imap_query_procedures;
plug_in_class->create_procedure = imap_create_procedure;
plug_in_class->set_i18n = STD_SET_I18N;
}
static void
@ -188,7 +190,6 @@ imap_run (GimpProcedure *procedure,
const GimpValueArray *args,
gpointer run_data)
{
INIT_I18N ();
gegl_init (NULL, NULL);
if (n_drawables != 1)

Some files were not shown because too many files have changed in this diff Show more