Commit Graph

27 Commits

Author SHA1 Message Date
Jehan df074bfe09 plug-ins: label and documentation of plug-ins localized plug-in side.
This is the consequence of previous commit. Plug-ins' label and
documentation are now localized before sending these data to GIMP core.
In other words, we replace N_() macros with basic gettext calls.
2022-07-05 12:23:51 +02:00
Jehan 18c37f7084 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.
2022-06-05 01:57:02 +02:00
Jehan ca8bc2bc1d app, libgimp, pdb, plug-ins: more functions moved to get|set().
The gimp_drawable_type() is an issue though as gimp_drawable_get_type()
is already defined as a common GObject API.
Though I'm actually wondering if GimpImageType is well called. Rather
than Type, shouldn't we go with ColorModel?

sed -i 's/\<gimp_drawable_bpp\>/gimp_drawable_get_bpp/g' "$@"
sed -i 's/\<gimp_drawable_width\>/gimp_drawable_get_width/g' "$@"
sed -i 's/\<gimp_drawable_height\>/gimp_drawable_get_height/g' "$@"
sed -i 's/\<gimp_drawable_offsets\>/gimp_drawable_get_offsets/g' "$@"
2021-04-06 14:34:31 +02:00
Jehan 79e608694e plug-ins: fix many GimpImageProcedure to new run() API.
No logics change so far.
2021-04-04 01:40:00 +02:00
Jehan d95f417719 app, libgimpwidgets, modules, plug-ins: code changes after GimpScaleEntry…
… reclassing as GimpLabelSpin subclass.
2020-11-05 18:06:52 +01:00
Jehan b3c0ba061b app, libgimpwidgets, modules, plug-ins: finishing GimpScaleEntry port.
Renaming the temporary function gimp_scale_entry_new2() into
gimp_scale_entry_new() now that the original code is entirely gone. This
is now a fully-fledged widget with a nice and proper introspectable API.
2020-11-01 02:46:20 +01:00
Jehan f342b566c8 plug-ins: various plug-ins ported to new GimpScaleEntry. 2020-10-30 23:28:57 +01:00
Michael Natterer df8d5b02ae libgimp, plug-ins: remove the "preview" parameter from gimp_ui_init()
It's dead since a looong time.
2019-09-20 19:56:00 +02:00
Michael Natterer 8a78203aed Properly prefix the values of enum GimpPDBProcType
to be GIMP_PDB_PROC_TYPE_PLUGIN, _EXTENSION etc.
2019-08-30 12:52:28 +02:00
Jehan f75b63fa80 plug-ins: port align-layers to new API + libgimp objects.
Note: there were 2 additional arguments which were totally unused in the
existing implementation. So I commented them out. Anyone is welcome to
actually implement their usage.
2019-08-28 11:54:29 +02:00
Michael Natterer 5f700549e7 Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
Simon Budig 7d64cf62c6 libgimpwidgets: rename the _grid()-Variants of gimp_scale_entry_*
Adjust all plugins to follow accordingly.

This concludes the GtkTable'ocide.
2018-05-20 21:06:35 +02:00
Simon Budig 71dec60d8c align-layers: kill GtkTable 2018-05-20 21:06:34 +02:00
Michael Natterer bdbec7941c Use the new macros from the last commit in all files
...and gone are the annoying warnings.
2018-05-20 21:06:34 +02:00
Michael Natterer eb8487b487 plug-ins: s/GtkObject/GtkAdjustment/g in plug-ins/common/ 2018-05-20 21:06:27 +02:00
Michael Natterer 801bd8fb3f plug-ins: get rid of icons in dialog buttons (use labels not stock IDs) 2017-02-12 16:18:54 +01:00
Téo Mazars 65d34b7b27 Bug 683713 - Align visible layers does not work when layers ...
This is a complete rework of the plug-in, the behaviour remains
unchanged.

The implementation spreads all visible layers into one contiguous
array, then applies a simplified rework of the legacy algorithm.
2013-03-30 15:33:47 +01:00
Michael Natterer 654af22c0f plug-ins: undeprecate align-layers: no need to use gimp_drawable_get() 2012-09-15 21:56:05 +02:00
Michael Natterer 8a20035ea0 Bug 661313 - "None" string needs differentiation (message context)
Add translation context to all "None".
2011-11-16 23:13:03 +01:00
Michael Natterer 8c4d99f883 Bug 645456 - Inconsistent window (role) naming scheme
Applied patch from Christoph Kappel which adds a "gimp-" prefix to all
plug-in dialog window roles.
2011-04-08 20:31:34 +02:00
Michael Natterer c6a2eaa5c4 plug-ins: use new item API instead of deprecated drawable API 2010-07-09 12:27:36 +02:00
Michael Natterer e805cb0cf4 Use gtk_dialog_get_content_area() instead of dialog->vbox 2009-07-15 18:57:12 +02:00
Michael Natterer e2dc72b168 various plug-in parameter cleanups that have piled up on my disk: some
2009-04-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/*.c: various plug-in parameter cleanups that
	have piled up on my disk: some whitespace fixes and other
	formatting, but mostly changes to make plug-in boolean/enum
	parameter desciptions look more like the ones that are generated
	for core procedures.


svn path=/trunk/; revision=28260
2009-04-11 16:57:42 +00:00
Michael Natterer 4ea1437646 plug-ins/common/*.c plug-ins/color-rotate/color-rotate.c
2009-01-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/*.c
	* plug-ins/color-rotate/color-rotate.c
	* plug-ins/file-bmp/bmp.c
	* plug-ins/file-faxg3/faxg3.c
	* plug-ins/file-fits/fits.c
	* plug-ins/file-fli/fli-gimp.c
	* plug-ins/file-ico/ico.c
	* plug-ins/file-jpeg/jpeg.c
	* plug-ins/file-psd/psd-save.c
	* plug-ins/file-psd/psd.c
	* plug-ins/file-sgi/sgi.c
	* plug-ins/file-uri/uri.c
	* plug-ins/file-xjt/xjt.c
	* plug-ins/flame/flame.c
	* plug-ins/fractal-explorer/fractal-explorer.c
	* plug-ins/gfig/gfig.c
	* plug-ins/gimpressionist/gimp.c
	* plug-ins/gradient-flare/gradient-flare.c
	* plug-ins/help-browser/help-browser.c
	* plug-ins/ifs-compose/ifs-compose.c
	* plug-ins/imagemap/imap_main.c
	* plug-ins/lighting/lighting-main.c
	* plug-ins/map-object/map-object-main.c
	* plug-ins/maze/maze.c
	* plug-ins/metadata/metadata.c
	* plug-ins/pagecurl/pagecurl.c
	* plug-ins/print/print.c
	* plug-ins/pygimp/gimpfu.py
	* plug-ins/script-fu/script-fu-script.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/selection-to-path/selection-to-path.c
	* plug-ins/twain/twain.c
	* plug-ins/win-snap/winsnap.c: document the "run-mode" parameter
	as we document enums for core procedures.


svn path=/trunk/; revision=27922
2009-01-19 20:11:36 +00:00
Michael Natterer d9b5207aa2 Change licence to GPLv3 (and to LGPLv3 for libgimp).
2009-01-17  Michael Natterer  <mitch@gimp.org>

	* all files with a GPL header and all COPYING files:

	Change licence to GPLv3 (and to LGPLv3 for libgimp).

	Cleaned up some copyright headers and regenerated the parsers in
	the ImageMap plugin.


svn path=/trunk/; revision=27913
2009-01-17 22:28:01 +00:00
Michael Natterer b28a3306e0 plug-ins/common/align-layers.c plug-ins/common/blur-gauss.c
2008-08-20  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/align-layers.c
	* plug-ins/common/blur-gauss.c
	* plug-ins/common/cartoon.c
	* plug-ins/common/edge-dog.c
	* plug-ins/common/edge-neon.c
	* plug-ins/common/edge-sobel.c
	* plug-ins/common/photocopy.c
	* plug-ins/common/pixelize.c
	* plug-ins/common/softglow.c
	* plug-ins/gradient-flare/gradient-flare.c: pass error messages
	with the return values instead of calling g_message().


svn path=/trunk/; revision=26679
2008-08-20 14:19:35 +00:00
Michael Natterer bfa8547a93 Renamed tons of plug-ins to make more sense and to be consistent:
2008-03-24  Michael Natterer  <mitch@gimp.org>

	Renamed tons of plug-ins to make more sense and to be consistent:

	* plug-ins/common/AlienMap2.c -> alien-map.c
	* plug-ins/common/CEL.c -> cel.c
	* plug-ins/common/CML_explorer.c -> cml-explorer.c
	* plug-ins/common/align_layers.c -> align-layers.c
	* plug-ins/common/animationplay.c -> animation-play.c
	* plug-ins/common/animoptimize.c -> animation-optimize.c
	* plug-ins/common/apply_lens.c -> lens-apply.c
	* plug-ins/common/autocrop.c -> crop-auto.c
	* plug-ins/common/autostretch_hsv.c -> contrast-stretch-hsv.c
	* plug-ins/common/borderaverage.c -> border-average.c
	* plug-ins/common/bumpmap.c -> bump-map.c
	* plug-ins/common/c_astretch.c -> contrast-stretch.c
	* plug-ins/common/ccanalyze.c -> color-cube-analyze.c
	* plug-ins/common/channel_mixer.c -> channel-mixer.c
	* plug-ins/common/color_enhance.c -> color-enhance.c
	* plug-ins/common/colortoalpha.c -> color-to-alpha.c
	* plug-ins/common/convmatrix.c -> convolution-matrix.c
	* plug-ins/common/curve_bend.c -> curve-bend.c
	* plug-ins/common/depthmerge.c -> depth-merge.c
	* plug-ins/common/dog.c -> edge-dog.c
	* plug-ins/common/exchange.c -> color-exchange.c
	* plug-ins/common/flarefx.c -> lens-flare.c
	* plug-ins/common/fp.c -> filter-pack.c
	* plug-ins/common/fractaltrace.c -> fractal-trace.c
	* plug-ins/common/gauss.c -> blur-gauss.c
	* plug-ins/common/gee_zoom.c -> gee-zoom.c
	* plug-ins/common/glasstile.c -> tile-glass.c
	* plug-ins/common/gqbist.c -> qbist.c
	* plug-ins/common/gradmap.c -> gradient-map.c
	* plug-ins/common/laplace.c -> edge-laplace.c
	* plug-ins/common/lens.c -> lens-distortion.c
	* plug-ins/common/lic.c -> van-gogh-lic.c
	* plug-ins/common/max_rgb.c -> max-rgb.c
	* plug-ins/common/mblur.c -> blur-motion.c
	* plug-ins/common/nlfilt.c -> nl-filter.c
	* plug-ins/common/noisify.c -> noise-rgb.c
	* plug-ins/common/normalize.c -> contrast-normalize.c
	* plug-ins/common/papertile.c -> tile-paper.c
	* plug-ins/common/polar.c -> polar-coords.c
	* plug-ins/common/randomize.c -> noise-randomize.c
	* plug-ins/common/redeye.c -> red-eye-removal.c
	* plug-ins/common/retinex.c -> contrast-retinex.c
	* plug-ins/common/sample_colorize.c -> sample-colorize.c
	* plug-ins/common/scatter_hsv.c -> noise-hsv.c
	* plug-ins/common/sel_gauss.c -> blur-gauss-selective.c
	* plug-ins/common/semiflatten.c -> semi-flatten.c
	* plug-ins/common/smooth_palette.c -> smooth-palette.c
	* plug-ins/common/snoise.c -> noise-solid.c
	* plug-ins/common/sobel.c -> edge-sobel.c
	* plug-ins/common/spheredesigner.c -> sphere-designer.c
	* plug-ins/common/spread.c -> noise-spread.c
	* plug-ins/common/struc.c -> apply-canvas.c
	* plug-ins/common/threshold_alpha.c -> threshold-alpha.c
	* plug-ins/common/tileit.c -> tile-small.c
	* plug-ins/common/tiler.c -> tile-seamless.c
	* plug-ins/common/uniteditor.c -> unit-editor.c
	* plug-ins/common/unsharp.c -> unsharp-mask.c
	* plug-ins/common/vinvert.c -> value-invert.c
	* plug-ins/common/vpropagate.c -> value-propagate.c
	* plug-ins/common/webbrowser.c -> web-browser.c
	* plug-ins/common/whirlpinch.c -> whirl-pinch.c
	* plug-ins/common/zealouscrop.c -> crop-zealous.c

	* plug-ins/common/plugin-defs.pl: changed accordingly.

	* plug-ins/common/Makefile.am: regenerated.


svn path=/trunk/; revision=25192
2008-03-24 15:29:55 +00:00