1. 04 Sep, 2019 1 commit
  2. 03 Sep, 2019 3 commits
  3. 29 Aug, 2019 1 commit
    • Michael Natterer's avatar
      app, libgimp: get rid of all ID GTypes and ID param specs · 392f00ba
      Michael Natterer authored
      Turn all ID param specs into object param specs (e.g. GimpParamImageID
      becomes GimpParamImage) and convert between IDs and objects in
      gimpgpparams.c directly above the the wire protocol, so all of app/,
      libgimp/ and plug-ins/ can deal directly with objects down to the
      lowest level and not care about IDs.
      
      Use the actual object param specs for procedure arguments and return
      values again instead of a plain g_param_spec_object() and bring back
      the none_ok parameter.
      
      This implies changing the PDB type checking functions to work on pure
      integers instead of IDs (one can't check whether object creation is
      possible if performing that check requires the object to already
      exist).
      
      For example gimp_foo_is_valid() becomes gimp_foo_id_is_valid() and is
      not involved in automatic object creation magic at the protocol
      level. Added wrappers which still say gimp_foo_is_valid() and take the
      respective objects.
      
      Adapted all code, and it all becomes nicer and less convoluted, even
      the generated PDB wrappers in app/ and libgimp/.
      392f00ba
  4. 22 Aug, 2019 4 commits
    • Jehan's avatar
      libgimp: s/gimp_display_new_by_id/gimp_display_get_by_id/ · d15388c8
      Jehan authored
      GimpDisplay objects now also belongs to libgimp!
      d15388c8
    • Jehan's avatar
      pdb, libgimp: now make all ID types classes of their own. · 8c95499e
      Jehan authored
      No need of is_id_arg() anymore in pdb/lib.pl. Let's reuse the {id}
      value. Also I had to add an additional trick for GimpDisplay which we
      will now generate as such in libgimp PDB files, but still need to show
      as GimpObject on app/pdb/.
      
      As previously, only the new classes and the PDB generation for a first
      step.
      8c95499e
    • Jehan's avatar
      libgimp: generate functions both for old and new GimpImage APIs. · 17a40b04
      Jehan authored
      This way, it would still be possible to use the old API. WIP.
      17a40b04
    • Jehan's avatar
      app, pdb, libgimp: add a new GimpImage class for plug-ins. · 4db8cda2
      Jehan authored
      This means that all functions which were returning or taking as
      parameter an image id (as gint32) are now taking a GimpImage object
      instead.
      The PDB is still passing around an id only over the wire. But we create
      an object for plug-ins to work on.
      
      This is quite a huge API break, but is probably the best bet for the
      future quality. It will make nicer API instrospection (and nicer API in
      binding), will fix the issues with pspec on GimpImageID in Python
      bindings (which makes the current Python API unusable as soon as we need
      to work on images, which is most of our plug-ins!), etc.
      Also it will allow to use signals on images, which will be a great asset
      when we will finally have bi-directionnal communications (i.e. plug-ins
      would be able to connect to image changes, destructions, and whatnot).
      4db8cda2
  5. 08 Aug, 2019 1 commit
    • Michael Natterer's avatar
      libgimp*, pdb: gimp_value_array_new_from_types*() takes (type, value) · 30d63111
      Michael Natterer authored
      So a value array can now we created like this:
      
      array = gimp_value_array_new_from_types (&error_msg,
                                               G_TYPE_STRING, "foo",
                                               G_TYPE_INT,    23,
                                               G_TYPE_NONE);
      
      Change PDB generation to use this, which makes for much nicer code in
      the libgimp wrappers, and only set arrays separately instead of all
      values.
      30d63111
  6. 06 Aug, 2019 2 commits
  7. 31 Jul, 2019 1 commit
  8. 30 Jul, 2019 2 commits
  9. 11 Jul, 2018 1 commit
  10. 31 May, 2015 1 commit
  11. 26 May, 2014 1 commit
  12. 15 Sep, 2010 1 commit
  13. 07 Jul, 2010 1 commit
  14. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      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
      d9b5207a
  15. 06 Jun, 2007 1 commit
  16. 12 Apr, 2007 1 commit
    • Sven Neumann's avatar
      added a note that calling this function may cause data loss. · 4f6c5c7a
      Sven Neumann authored
      2007-04-12  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/display.pdb (display_delete): added a note that
      	calling this function may cause data loss.
      
      	* app/pdb/display_cmds.c
      	* libgimp/gimpdisplay_pdb.c: regenerated.
      
      
      svn path=/trunk/; revision=22243
      4f6c5c7a
  17. 12 Jan, 2007 1 commit
    • Sven Neumann's avatar
      tools/pdbgen/pdb/display.pdb tools/pdbgen/pdb/drawable.pdb · 517b0c35
      Sven Neumann authored
      2007-01-12  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/vectors.pdb: added PDB functions to validate
      	display, drawable, image and vectors IDs.
      
      	* app/pdb/image_cmds.c
      	* app/pdb/vectors_cmds.c
      	* app/pdb/display_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/drawable_cmds.c
      	* libgimp/gimpimage_pdb.[ch]
      	* libgimp/gimpdisplay_pdb.[ch]
      	* libgimp/gimpdrawable_pdb.[ch]
      	* libgimp/gimpvectors_pdb.[ch]: regenerated.
      
      	* libgimp/gimp.def: updated.
      
      
      svn path=/trunk/; revision=21697
      517b0c35
  18. 09 Jan, 2007 1 commit
    • Sven Neumann's avatar
      HACKING tools/pdbgen/lib.pl fixed spelling of "auto-generated". · dcc6ebd1
      Sven Neumann authored
      2007-01-09  Sven Neumann  <sven@gimp.org>
      
      	* HACKING
      	* tools/pdbgen/lib.pl
      	* tools/pdbgen/app.pl: fixed spelling of "auto-generated".
      
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb: improved wording and fixed
      	spelling errors.
      	
      	* libgimp/gimp.c: fixed spelling errors.
      
      	* app/pdb/*.h: 
      	* libgimp/gimp*_pdb.[ch]: regenerated.
      
      
      svn path=/trunk/; revision=21676
      dcc6ebd1
  19. 14 Jun, 2006 1 commit
    • Michael Natterer's avatar
      in help texts, refer to other procedures using_c_syntax(). This way · e4e581cc
      Michael Natterer authored
      2006-06-14  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/[many].pdb: in help texts, refer to other
      	procedures using_c_syntax(). This way gtk-doc can cross-reference
      	them correctly in libgimp, and app.pl will transform them
      	'to-canonical-names' for PDB registering.
      
      	* app/pdb/[many]_cmds.c
      	* libgimp/[many]_pdb.c: regenerated.
      e4e581cc
  20. 12 Apr, 2006 1 commit
  21. 05 Sep, 2005 1 commit
    • Sven Neumann's avatar
      Address bug #307971: · ec56ef9d
      Sven Neumann authored
      2005-09-05  Sven Neumann  <sven@gimp.org>
      
      	Address bug #307971:
      
      	* app/core/gimp-gui.[ch]
      	* app/display/gimpdisplay.[ch]
      	* app/gui/gui-vtable.c
      	* tools/pdbgen/pdb/display.pdb: added PDB function to obtain a
      	window handle on an image display.
      
      	* app/pdb/display_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimpdisplay_pdb.[ch]: regenerated.
      
      	* libgimp/gimpui.[ch]: added functions to set a GtkWindow transient
      	to an image display.
      
      	* plug-ins/common/gauss.c: use the new function exemplarily.
      
      	* libgimp/gimp.def
      	* libgimp/gimpui.def: updated.
      ec56ef9d
  22. 02 Aug, 2005 1 commit
    • Michael Natterer's avatar
      Changed naming scheme for PDB procedure names from · 853f04d5
      Michael Natterer authored
      2005-08-03  Michael Natterer  <mitch@gimp.org>
      
      	Changed naming scheme for PDB procedure names from
      	random_crap_that_traditionally_has_underscores to
      	enforced-canonical-identifiers. I'm pretty sure some things are
      	broken after this commit. More changes to come...
      
      	* libgimpbase/gimpbase.def
      	* libgimpbase/gimputils.[ch]: added gimp_canonicalize_identifier().
      
      	* app/pdb/procedural_db.[ch] (struct ProcRecord): added
      	"gchar *original_name" to keep a procedure's original name as
      	reigstered by plug-ins (compat cruft).
      
      	(procedural_db_init_procs): canonicalized list of deprecated
      	procedures.
      
      	* app/plug-in/plug-in-proc-def.c (plug_in_proc_def_free): free
      	original_name.
      
      	* app/plug-in/plug-in-message.c: canonicalize procedure names
      	which are received over the wire.
      
      	* app/plug-in/plug-in-rc.c: serialize the original_name and create
      	the canonicalized name on-the-fly when deserializing.
      
      	* app/plug-in/plug-in-run.c: pass the original_name to plug-ins
      	when running them because they strcmp() the passed procedure name.
      
      	* app/plug-in/plug-ins.c (plug_ins_add_to_db): pass
      	canonical procedure names to procedural_db_execute().
      
      	(plug_ins_file_proc_compare): special-case "gimp-xcf", not "gimp_xcf".
      
      	* app/xcf/xcf.c: changed static XCF procedures accordingly.
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/lib.pl: do some trivial substitutions to generate
      	canonicalized names in app/, and C identifiers with underscores in
      	libgimp/.
      
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: canonicaloized procedure
      	names in calls to std_pdb_deprecated() and in procedure names in
      	generated C code.
      
      	* app/pdb/*_cmds.c
      	* libgimp/*_pdb.c: regenerated.
      853f04d5
  23. 29 Nov, 2004 1 commit
    • Michael Natterer's avatar
      make it work as documented (fail if the new_image already has a display). · 28da246c
      Michael Natterer authored
      2004-11-29  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/display.pdb: make it work as documented (fail
      	if the new_image already has a display). Also fail if the
      	old_image doesn't have any display (changed docs accordingly).
      	On success, take over the initial reference count of the new
      	image, just as the gimp_display_new() PDB wrapper does.
      	Fixes bug #159051.
      
      	* app/pdb/display_cmds.c
      	* libgimp/gimpdisplay_pdb.c: regenerated.
      28da246c
  24. 03 Jul, 2003 1 commit
    • Manish Singh's avatar
      fix spelling of "quality" in comment · 122c0065
      Manish Singh authored
      2003-07-03  Manish Singh  <yosh@gimp.org>
      
              * plug-ins/common/jpeg.c: fix spelling of "quality" in comment
      
              * tools/pdbgen/*.pl: update copyright strings to 2003
      
              * libgimp/gimpenums.h
              * libgimp/*_pdb.[ch]
              * app/pdb/*_cmds.[ch]
              * app/pdb/internal_procs.[ch]
              * plug-ins/pygimp/gimpenums.py
              * plug-ins/script-fu/script-fu-constants.c: regenerated
      122c0065
  25. 03 Dec, 2002 1 commit
    • Sven Neumann's avatar
      tools/pdbgen/pdb/display.pdb applied a modified version of a patch from · 2193d83a
      Sven Neumann authored
      2002-12-03  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/layer.pdb: applied a modified version of a
      	patch from Wolfgang Hofer <hof@gimp.org> that adds two new PDB
      	functions needed for GAP: gimp_displays_reconnect() and
      	gimp_layer_new_from_drawable() (bug #77508).
      
      	* app/pdb/display_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/layer_cmds.c
      	* libgimp/gimpdisplay_pdb.[ch]
      	* libgimp/gimplayer_pdb.[ch]: regenerated.
      2193d83a
  26. 13 May, 2002 1 commit
    • Sven Neumann's avatar
      removed FINITE() macro. · fe0bf162
      Sven Neumann authored
      2002-05-13  Sven Neumann  <sven@gimp.org>
      
      	* libgimpmath/gimpmath.h: removed FINITE() macro.
      
      	* tools/pdbgen/pdb/image.pdb
      	* app/pdb/image_cmds.c: define FINITE() here, where it is used.
      
      	* tools/pdbgen/pdb/lib.pl: add "config.h" to all generated libgimp
      	.c files.
      
      	* libgimp/gimp*_pdb.c: regenerated.
      
      	* libgimp/gimpbrushmenu.c
      	* libgimp/gimpchannel.c
      	* libgimp/gimpdrawable.c
      	* libgimp/gimpgradientmenu.c
      	* libgimp/gimphelp.c
      	* libgimp/gimpimage.c
      	* libgimp/gimplayer.c
      	* libgimp/gimppatternmenu.c
      	* libgimp/gimppixelrgn.c
      	* libgimp/gimpproceduraldb.c
      	* libgimp/gimpselection.c
      	* libgimp/gimptile.c
      	* libgimp/gimpui.c
      	* libgimpmath/gimpmatrix.c
      	* libgimpmath/gimpvector.c
      	* plug-ins/MapObject/arcball.c
      	* plug-ins/fp/fp_gdk.c
      	* plug-ins/fp/fp_misc.c
      	* plug-ins/ifscompose/ifscompose_storage.c
      	* plug-ins/ifscompose/ifscompose_utils.c
      	* plug-ins/maze/handy.c
      	* plug-ins/rcm/rcm_gdk.c
      	* plug-ins/sel2path/edge.c
      	* plug-ins/xjt/xjpeg.c
      	* plug-ins/xjt/xpdb_calls.c: include "config.h".
      fe0bf162
  27. 24 Aug, 2000 1 commit
  28. 23 Aug, 2000 1 commit
    • Manish Singh's avatar
      $srcdir != $builddir fix for GIMP_CONTRIBUTORS · 50e478ef
      Manish Singh authored
      * configure.in: $srcdir != $builddir fix for GIMP_CONTRIBUTORS
      
      * plug-ins/common/plugin-defs.pl: More tidying up after Daniel Egger
      
      * tools/pdbgen/Makefile.am: parse pdb defs only once for app and lib
      
      * tools/pdbgen/lib.pl
      * tools/pdbgen/pdb/procedural_db.pdb: all void rets now return a
      boolean for success/failure
      
      -Yosh
      50e478ef
  29. 03 Aug, 2000 1 commit
    • Michael Natterer's avatar
      Sven Neumann <sven@gimp.org> · deb5760b
      Michael Natterer authored
      2000-08-03  Michael Natterer  <mitch@gimp.org>
      	    Sven Neumann  <sven@gimp.org>
      
      	* libgimp/*_pdb.c
      	* libgimp/gimpmenu.c
      	* DrMartin.Weber: removed COMPAT_CRUFT
      deb5760b
  30. 01 Jun, 2000 1 commit
    • Michael Natterer's avatar
      Sven Neumann <sven@gimp.org> · 6be23f70
      Michael Natterer authored
      2000-06-01  Michael Natterer  <mitch@gimp.org>
      	    Sven Neumann  <sven@gimp.org>
      
      	Completed the new file structure. Yet only few of the _pdb.[ch]
      	files are based upon generated code and nothing is really
      	autogenerated...
      
      	* app/Makefile.am
      	* app/gdisplay_cmds.c      -> app/display_cmds.c
      	* app/gimage_cmds.c        -> app/image_cmds.c
      	* app/gimage_mask_cmds.c   -> app/selection_cmds.c
      	* app/internal_procs.c: related change
      
      	* libgimp/Makefile.am
      	* libgimp/gimp.h
      	* libgimp/gimp_pdb.h
      	* libgimp/gimpdisplay_pdb.[ch]
      	* libgimp/gimpimage_pdb.[ch]
      	* libgimp/gimpselection_pdb.[ch]: replaced with code based on files
      	generated using pdbgen
      
      	* libgimp/gimpchannelops_pdb.[ch]
      	* libgimp/gimpcolor_pdb.[ch]
      	* libgimp/gimpedit_pdb.[ch]
      	* libgimp/gimpfloatingsel_pdb.[ch]
      	* libgimp/gimpgimprc_pdb.[ch]
      	* libgimp/gimptexttool_pdb.[ch]
      	* libgimp/gimptools_pdb.[ch]
      	* libgimp/gimpundo_pdb.[ch]: new files based on generated code
      
      	* libgimp/gimpgradientselect.[ch]
      	* libgimp/gimpimage.[ch]
      	* libgimp/gimpselection.[ch]: new files wrapping around the
      	autogenerated PDB wrappers as found in *_pdb.[ch]. This is necessary
      	since the number of parameters or their order is different from the
      	PDP calls.
      
      	* plug-ins/common/CEL.c: plugged memleak
      
      	* plug-ins/common/aa.c: removed compiler warning
      
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl
      	* tools/pdbgen/pdb/gdisplay.pdb     -> display.pdb
      	* tools/pdbgen/pdb/gimage.pdb       -> image.pdb
      	* tools/pdbgen/pdb/gimage_mask.pdb  -> selection.pdb
      
      	* tools/pdbgen/pdb/channel_ops.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/floating_sel.pdb
      	* tools/pdbgen/pdb/gimprc.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/tools.pdb
      	* tools/pdbgen/pdb/undo.pdb: made them create libgimp code
      6be23f70
  31. 31 May, 2000 1 commit
    • Michael Natterer's avatar
      Sven Neumann <sven@gimp.org> · ba9ec2a2
      Michael Natterer authored
      2000-05-31  Michael Natterer  <mitch@gimp.org>
      	    Sven Neumann  <sven@gimp.org>
      
      	Episode IV...
      
      	* app/Makefile.am
      
      	* app/message_cmds.c: new name
      	* app/interface_cmds.c: removed
      
      	* app/help_cmds.c: new name
      	* app/gimphelp_cmds.c: removed
      
      	* app/internal_procs.c
      	* app/gimphelp_cmds.c
      	* app/plug_in_cmds.c: moved gimp_plugin_help_register to
      	plug_in_cmds.c, s/gimp_plugin_domain_add/gimp_plugin_domain_register/
      
      	* libgimp/Makefile.am
      	* libgimp/gimp_pdb.h
      	* libgimp/gimpfileops_pdb.[ch]
      	* libgimp/gimpguides_pdb.[ch]
      	* libgimp/gimpmessage_pdb.[ch]
      	* libgimp/gimpprocedural_db_pdb.[ch]
      	* libgimp/gimpplugin_pdb.[ch]: new files containing PDB wrappers
      	moved out of libgimp/gimp.[ch]
      
      	* libgimp/gimpchannel_pdb.c
      	* libgimp/gimpdisplay_pdb.[ch]
      	* libgimp/gimpdrawable_pdb.[ch]
      	* libgimp/gimphelp_pdb.[ch]
      	* libgimp/gimpimage_pdb.[ch]
      	* libgimp/gimplayer_pdb.c
      	* libgimp/gimpparasite_pdb.c
      	* libgimp/gimpselection_pdb.c: various changes.
      
      	* libgimp/gimpunit.c: new file
      	* libgimp/gimpunit_pdb.[ch]: contains only PDB wrappers prefixed
      	with "_" which are called from libgimp/gimpunit.c only.
      
      	* libgimp/gimpunit.h: minor stuff
      
      	* libgimp/gimpcompat.h: declared the following functions obsolete:
      	 gimp_query_database
      	 gimp_query_images
      
      	* libgimp/gimp.[ch]: removed all PDB wrappers.
      
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl: changed
      
      	* tools/pdbgen/lib.pl: tried to fix libgimp autogeneration and
      	fixed just a few comments.
      
      	* tools/pdbgen/pdb/interface.pdb
      	* tools/pdbgen/pdb/gimphelp.pdb: removed
      
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/message.pdb: new names
      
      	* plug-ins/script-fu/script-fu.c
      	* plug-ins/perl/Gimp/Lib.xs:
      	s/gimp_plugin_domain_add/gimp_plugin_domain_register/
      
      2000-05-31  Michael Natterer  <mitch@gimp.org>
      
      	* POTFILES.in: s/gimpunit_pdb/gimpunit/
      ba9ec2a2
  32. 17 Nov, 1999 1 commit
  33. 13 Apr, 1998 1 commit