1. 18 Apr, 2018 1 commit
  2. 30 Nov, 2017 4 commits
  3. 23 May, 2017 1 commit
    • Ell's avatar
      enums: run gimp-mkenums from the build dir · 5bcde32c
      Ell authored
      Commit 1e6acbd4 modified the
      generated enum recipes to run gimp-mkenums from the source
      directory, instead of the build directory, so that only the
      basenames of the corresponding header files would appear in
      the comment at the top of the generated files.  This was a
      mistake -- $(GIMP_MKENUMS) is expecting to be invoked from the
      build directory.
      
      Switch back to running gimp-mkenums from the build directory.  To
      avoid including the relative path from the build directory to the
      source directory in the generated file, add a @basename@ production
      variable to gimp-mkenums, which exapnds to the basename of the
      input file, and use it instead of @filename@ in the recipes for the
      generated enum files.
      5bcde32c
  4. 21 Feb, 2017 1 commit
  5. 02 May, 2014 1 commit
  6. 06 Nov, 2008 1 commit
    • Sven Neumann's avatar
      use NC_() to mark enum values for translation. Use a lower-case short form · 02817081
      Sven Neumann authored
      2008-11-06  Sven Neumann  <sven@gimp.org>
      
      	* tools/gimp-mkenums: use NC_() to mark enum values for 
      translation.
      	Use a lower-case short form of the type name as translation 
      context.
      
      	* libgimp/libgimp-intl.h: define the NC_() macro as noop.
      
      	* libgimpbase/gimpbasetypes.[ch]
      	* libgimpbase/gimpbase.def: added new functions to set and
      	get a translation context on an enum type.
      
      	* app/base/Makefile.am
      	* app/core/Makefile.am
      	* app/display/Makefile.am
      	* app/paint/Makefile.am
      	* app/plug-in/Makefile.am
      	* app/text/Makefile.am
      	* app/tools/Makefile.am
      	* app/widgets/Makefile.am
      	* libgimp/Makefile.am
      	* libgimpbase/Makefile.am:
      	* libgimpconfig/Makefile.am
      	* libgimpthumb/Makefile.am
      	* libgimpwidgets/Makefile.am: register the translation context
      	with the enum types.
      
      	* app/display/display-enums.h
      	* libgimpbase/gimpbaseenums.h
      	* libgimpconfig/gimpcolorconfig-enums.h: removed old-style 
      explicit
      	translation context.
      
      	* app/base/base-enums.c
      	* app/core/core-enums.c
      	* app/display/display-enums.c
      	* app/paint/paint-enums.c
      	* app/plug-in/plug-in-enums.c
      	* app/text/text-enums.c
      	* app/tools/tools-enums.c
      	* app/widgets/widgets-enums.c
      	* libgimpbase/gimpbaseenums.c
      	* libgimpconfig/gimpcolorconfig-enums.c
      	* libgimpwidgets/gimpwidgetsenums.c: regenerated.
      
      
      svn path=/trunk/; revision=27562
      02817081
  7. 24 Oct, 2006 1 commit
  8. 22 May, 2005 1 commit
    • Sven Neumann's avatar
      use quotewords() from Text::ParseWords to split the trigraph. This · d21f31d0
      Sven Neumann authored
      2005-05-22  Sven Neumann  <sven@gimp.org>
      
      	* tools/gimp-mkenums (parse_trigraph): use quotewords() from
      	Text::ParseWords to split the trigraph. This function correctly
      	deals with commas inside quotes.
      
      	* app/core/core-enums.[ch]: tweaked descriptions in the
      	GimpDashPreset enum.
      d21f31d0
  9. 25 Oct, 2004 1 commit
    • Michael Natterer's avatar
      Don't store human readable and translatable enum/flag strings in · 67116466
      Michael Natterer authored
      2004-10-25  Michael Natterer  <mitch@gimp.org>
      
      	Don't store human readable and translatable enum/flag strings in
      	GEnumValue's and GTypeValue's fields but attach them to their
      	GType using separate structs and utility functions:
      
      	* tools/gimp-mkenums: added params and perl voodoo to support
      	generating a second array of values, which is used by the
      	Makefiles below to create and register arrays of value
      	descriptions.
      
      	* libgimpbase/gimpbasetypes.[ch]: added API to attach/retreive
      	arrays of translatable strings to/from enum and flags types. Added
      	structs GimpEnumDesc and GimpFlagsDesc for that purpose.
      
      	* libgimpbase/gimputils.[ch]: changed existing enum utility
      	functions, added new ones and added a symmetric API for flags.
      
      	* app/base/Makefile.am
      	* app/core/Makefile.am
      	* app/display/Makefile.am
      	* app/paint/Makefile.am
      	* app/text/Makefile.am
      	* app/tools/Makefile.am
      	* app/widgets/Makefile.am
      	* libgimp/Makefile.am
      	* libgimpbase/Makefile.am: changed *-enums.c generation rules
      	accordingly.
      
      	* app/base/base-enums.c
      	* app/core/core-enums.c
      	* app/display/display-enums.c
      	* app/paint/paint-enums.c
      	* app/text/text-enums.c
      	* app/tools/tools-enums.c
      	* app/widgets/widgets-enums.c
      	* libgimpbase/gimpbaseenums.c: regenerated.
      
      	* app/widgets/gimpenumstore.c
      	* app/widgets/gimpenumwidgets.c
      	* app/widgets/gimptemplateeditor.c
      	* libgimpwidgets/gimppreviewarea.c: follow the enum utility
      	function API changes.
      67116466
  10. 28 Jul, 2004 2 commits
  11. 06 Jan, 2004 1 commit
    • Michael Natterer's avatar
      Enabled skipping enum values for either the PDB or GType registration · dec20d82
      Michael Natterer authored
      2004-01-06  Michael Natterer  <mitch@gimp.org>
      
      	Enabled skipping enum values for either the PDB or GType
      	registration (don't always skip both targets):
      
      	* tools/gimp-mkenums: skip enum values only if there is a literal
      	"skip" (don't match "pdb-skip").
      
      	* tools/pdbgen/enumgen.pl: skip only "pdb-skip" values, not "skip"
      	ones.
      
      	* app/base/base-enums.h
      	* app/core/core-enums.h
      	* app/paint/paint-enums.h
      	* libgimpbase/gimpbaseenums.h: use the right "pdb-skip"/"skip"
      	combination to skip enum values. Changed comments accordingly.
      
      	Cleaned up the fill functions:
      
      	* app/core/core-enums.[ch]: added GIMP_PATTERN_FILL enum value to
      	the GimpFillType enum. Don't export GIMP_NO_FILL to the PDB
      	because it's completely useless to export a NOP.
      
      	* app/core/gimp-edit.c (gimp_edit_fill, gimp_edit_fill_internal):
      	handle pattern fill requests.
      
      	* app/core/gimpdrawable.[ch] (gimp_drawable_fill): added GimpPattern
      	parameter and fill with it if it's non-NULL.
      
      	(gimp_drawable_fill_by_type): handle pattern fill and pass the
      	current pattern to gimp_drawable_fill().
      
      	* app/text/gimptextlayer.c: changed accordingly.
      
      	* app/gui/edit-commands.c
      	* app/gui/image-menu.c: use gimp_edit_fill() instead of
      	gimp_drawable_bucket_fill() for FG, BG and pattern filling.
      
      	* libgimp/gimpcompat.h
      	* plug-ins/script-fu/siod-wrapper.c: removed NO_IMAGE_FILL compat
      	enum value. It should have never been exported to the PDB.
      
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/pygimp/gimpenums.py
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      dec20d82
  12. 29 Jun, 2003 1 commit
    • Manish Singh's avatar
      handle options with -'s in them · 35907ff2
      Manish Singh authored
      2003-06-29  Manish Singh  <yosh@gimp.org>
      
              * tools/gimp-mkenums: handle options with -'s in them
      
              * tools/pdbgen/enumgen.pl: redo a bunch of logic for the below
      
              * app/core/core-enums.h: use /*< pdb-skip, skip >*/ for skipping
              in both gimp-mkenums and enumgen.pl
      
              * app/core/core-enums.c: regenerated
      35907ff2
  13. 26 Mar, 2002 1 commit
  14. 17 Mar, 2002 2 commits
    • Sven Neumann's avatar
      allowing NULL for names was a bad idea... · 4d4ec70f
      Sven Neumann authored
      2002-03-17  Sven Neumann  <sven@gimp.org>
      
      	* tools/gimp-mkenums: allowing NULL for names was a bad idea...
      
      	* app/base/base-enums.[ch]: added more descriptions.
      4d4ec70f
    • Sven Neumann's avatar
      define GIMP_MKENUMS for use in Makefile.am. · 26578e75
      Sven Neumann authored
      2002-03-17  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: define GIMP_MKENUMS for use in Makefile.am.
      
      	* tools/Makefile.am
      	* tools/gimp-mkenums: a modified version of glib-mkenums that parses
      	literal descriptions for enum values out of the header file.
      
      	* app/base/Makefile.am
      	* app/base/base-enums.h: added descriptions for the InterpolationType.
      
      	* app/base/base-enums.c: added to CVS although it is generated since
      	translatable messages are extracted from this file and translators
      	shouldn't need to build stuff.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpenummenu.[ch]: new widget to create a GtkMenu or a
      	GtkOptionMenu directly from a registered enum.
      
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.c
      	* app/tools/transform_options.c: use gimp_enum_option_menu_new() for
      	the Interpolation menus.
      26578e75