1. 05 Nov, 2005 2 commits
    • Sven Neumann's avatar
      removed calls to the splash update function during initialization of · 5997c7dd
      Sven Neumann authored
      2005-11-05  Sven Neumann  <sven@gimp.org>
      
              * tools/pdbgen/app.pl: removed calls to the splash update function
              during initialization of internal procedures. This only takes time
              and doesn't provide useful information.
      
              * app/pdb/internal_procs.[ch]: regenerated.
      
              * app/pdb/procedural_db.[ch]: changed accordingly.
      
              * core/gimp.c: call the splash update function from here.
      5997c7dd
    • Sven Neumann's avatar
      added some commented-out debug output that can be used to get an idea of · 20a653a5
      Sven Neumann authored
      2005-11-05  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/splash.c: added some commented-out debug output that can
      	be used to get an idea of where the startup time is being spent.
      
      	* app/core/gimp.c
      	* app/pdb/internal_procs.c
      	* app/pdb/procedural_db.c
      	* app/plug-in/plug-ins.c
      	* tools/pdbgen/app.pl: cosmetic changes.
      20a653a5
  2. 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
  3. 13 Jul, 2005 1 commit
  4. 10 Jul, 2005 1 commit
    • Michael Natterer's avatar
      app/actions/layers-actions.c app/actions/layers-commands.[ch] · 20b4769c
      Michael Natterer authored
      2005-07-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/layers-actions.c
      	* app/actions/layers-commands.[ch]
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage-undo-push.[ch]
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.[ch]
      	* app/text/gimptextlayer-xcf.c
      	* app/widgets/gimphelp-ids.h
      	* app/widgets/gimplayertreeview.[ch]
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-private.h
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/layer.pdb
      	* menus/image-menu.xml.in
      	* libgimp/gimp.def: did a global s/preserve_trans/lock_alpha/ in
      	preparation for more layer locking flags.
      
      	* app/pdb/procedural_db.c
      	* libgimp/gimplayer.[ch]: added compat stuff for preserve_trans.
      
      	* app/pdb/layer_cmds.c
      	* libgimp/gimplayer_pdb.[ch]: regenerated.
      
      	* plug-ins/common/colortoalpha.c
      	* plug-ins/common/iwarp.c
      	* plug-ins/common/psd.c
      	* plug-ins/common/psd_save.c
      	* plug-ins/common/psp.c
      	* plug-ins/common/rotate.c
      	* plug-ins/common/threshold_alpha.c
      	* plug-ins/common/vpropagate.c
      	* plug-ins/script-fu/scripts/3d-outline.scm
      	* plug-ins/script-fu/scripts/alien-glow-bar.scm
      	* plug-ins/script-fu/scripts/alien-glow-bullet.scm
      	* plug-ins/script-fu/scripts/alien-glow-logo.scm
      	* plug-ins/script-fu/scripts/basic1-logo.scm
      	* plug-ins/script-fu/scripts/basic2-logo.scm
      	* plug-ins/script-fu/scripts/beveled-pattern-button.scm
      	* plug-ins/script-fu/scripts/blend-anim.scm
      	* plug-ins/script-fu/scripts/blended-logo.scm
      	* plug-ins/script-fu/scripts/bovinated-logo.scm
      	* plug-ins/script-fu/scripts/burn-in-anim.scm
      	* plug-ins/script-fu/scripts/carved-logo.scm
      	* plug-ins/script-fu/scripts/chalk.scm
      	* plug-ins/script-fu/scripts/chip-away.scm
      	* plug-ins/script-fu/scripts/comic-logo.scm
      	* plug-ins/script-fu/scripts/coolmetal-logo.scm
      	* plug-ins/script-fu/scripts/crystal-logo.scm
      	* plug-ins/script-fu/scripts/drop-shadow.scm
      	* plug-ins/script-fu/scripts/gimp-headers.scm
      	* plug-ins/script-fu/scripts/gimp-labels.scm
      	* plug-ins/script-fu/scripts/glowing-logo.scm
      	* plug-ins/script-fu/scripts/gradient-bevel-logo.scm
      	* plug-ins/script-fu/scripts/image-structure.scm
      	* plug-ins/script-fu/scripts/neon-logo.scm
      	* plug-ins/script-fu/scripts/perspective-shadow.scm
      	* plug-ins/script-fu/scripts/starburst-logo.scm
      	* plug-ins/script-fu/scripts/starscape-logo.scm
      	* plug-ins/script-fu/scripts/textured-logo.scm
      	* plug-ins/script-fu/scripts/title-header.scm
      	* plug-ins/script-fu/scripts/waves-anim.scm
      	* plug-ins/xjt/xjt.c: changed accordingly.
      20b4769c
  5. 24 Jun, 2005 1 commit
  6. 13 May, 2005 1 commit
    • Michael Natterer's avatar
      app/pdb/procedural_db.h removed pdb_type_name() uglyness. · d831bdb3
      Michael Natterer authored
      2005-05-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/procedural_db.h
      	* tools/pdbgen/pdb/procedural_db.pdb: removed pdb_type_name()
      	uglyness.
      
      	* app/pdb/procedural_db.c: add private function
      	procedural_db_type_name() instead which uses gimp_enum_get_value()
      	and always returns a newly allocated string. Use it for the error
      	messages.
      
      	* app/pdb/procedural_db_cmds.c: regenerated.
      d831bdb3
  7. 16 Nov, 2004 1 commit
    • Michael Natterer's avatar
      tools/pdbgen/pdb/image.pdb entirely removed the deprecated functions · 4caf20c2
      Michael Natterer authored
      2004-11-16  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/selection.pdb: entirely removed the deprecated
      	functions "selection_clear", "image_set_cmap" and "image_get_cmap".
      
      	* app/pdb/procedural_db.c: and added them to the compat hash table
      	because they have undeprecated replacements with identical
      	signature.
      
      	* libgimp/gimpselection.[ch]: added gimp_selection_clear() here
      	instead because we need the symbol in libgimp.
      
      	* app/pdb/image_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/selection_cmds.c
      	* libgimp/gimpselection_pdb.[ch]: regenerated.
      4caf20c2
  8. 23 Sep, 2004 1 commit
    • Michael Natterer's avatar
      tools/pdbgen/pdb/brushes.pdb tools/pdbgen/pdb/gradients.pdb · 46989bc7
      Michael Natterer authored
      2004-09-23  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/patterns.pdb: removed the foos_set_foo()
      	procedures and marked the foos_set_foo() ones as deprecated. For
      	brushes, patterns and palettes, added foos_get_foo_info()
      	procedures which work like foos_get_foo_data() but return just the
      	properties, not the actual data. Allow NULL or "" to be passed
      	as name to all functions (use the current brush, pattern etc.
      	in this case).
      
      	* tools/pdbgen/pdb/fonts.pdb: cleanup.
      
      	* app/pdb/procedural_db.c: added the removed ones to the compat
      	hash table.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpbrushes.[ch]
      	* libgimp/gimpgradients.[ch]
      	* libgimp/gimppalettes.[ch]
      	* libgimp/gimppatterns.[ch]: new files with compat functions
      	wich call the resp. gimp_context_*() functions.
      
      	* libgimp/gimp.h: changed accordingly.
      
      	* app/pdb/brushes_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/palettes_cmds.c
      	* app/pdb/patterns_cmds.c
      	* libgimp/gimpbrushes_pdb.[ch]
      	* libgimp/gimpgradients_pdb.[ch]
      	* libgimp/gimppalettes_pdb.[ch]
      	* libgimp/gimppatterns_pdb.[ch]: regenerated.
      
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/gfig/gfig-dialog.c
      	* plug-ins/gfig/gfig-style.[ch]
      	* plug-ins/gflare/gflare.c: changed accordingly.
      46989bc7
  9. 22 Sep, 2004 2 commits
    • Michael Natterer's avatar
      removed the opacity and paint_mode functions... · 81256e00
      Michael Natterer authored
      2004-09-22  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brushes.pdb: removed the opacity and paint_mode
      	functions...
      
      	* tools/pdbgen/pdb/context.pdb: ...and added them here.
      
      	* app/pdb/procedural_db.c: added them to the pdb_compat hash table.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpbrushes.[ch]: new files with compat functions
      	which call the gimp_context_*() functions.
      
      	* libgimp/gimp.h: changed accordingly.
      
      	* app/pdb/brushes_cmds.c
      	* app/pdb/context_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimpbrushes_pdb.[ch]
      	* libgimp/gimpcontext_pdb.[ch]: regenerated.
      81256e00
    • Michael Natterer's avatar
      tools/pdbgen/Makefile.am tools/pdbgen/groups.pl removed the "Palette" pdb · 35b372ea
      Michael Natterer authored
      2004-09-22  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl
      	* tools/pdbgen/pdb/palette.pdb: removed the "Palette" pdb group...
      
      	* tools/pdbgen/pdb/context.pdb: and added its functions to the
      	"Context" namespace instead.
      
      	* app/pdb/Makefile.am
      	* app/pdb/palette_cmds.c: removed.
      
      	* app/pdb/procedural_db.c: added them to the pdb_compat hash table.
      
      	* libgimp/Makefile.am
      	* libgimp/gimppalette_pdb.[ch]: removed.
      
      	* libgimp/gimppalette.[ch]: new files holding compat functions
      	which call gimp_context_*() functions.
      
      	* libgimp/gimp.h
      	* libgimp/gimpui.c: changed accordingly.
      
      	* app/pdb/context_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimp_pdb.h
      	* libgimp/gimpcontext_pdb.[ch]: regenerated.
      
      	* plug-ins/MapObject/mapobject_image.c
      	* plug-ins/MapObject/mapobject_preview.c
      	* plug-ins/common/apply_lens.c
      	* plug-ins/common/blinds.c
      	* plug-ins/common/borderaverage.c
      	* plug-ins/common/checkerboard.c
      	* plug-ins/common/colortoalpha.c
      	* plug-ins/common/cubism.c
      	* plug-ins/common/exchange.c
      	* plug-ins/common/film.c
      	* plug-ins/common/gif.c
      	* plug-ins/common/grid.c
      	* plug-ins/common/mapcolor.c
      	* plug-ins/common/mblur.c
      	* plug-ins/common/mng.c
      	* plug-ins/common/mosaic.c
      	* plug-ins/common/papertile.c
      	* plug-ins/common/png.c
      	* plug-ins/common/polar.c
      	* plug-ins/common/semiflatten.c
      	* plug-ins/common/sinus.c
      	* plug-ins/common/sparkle.c
      	* plug-ins/common/vpropagate.c
      	* plug-ins/common/warp.c
      	* plug-ins/common/whirlpinch.c
      	* plug-ins/gfig/gfig-style.c
      	* plug-ins/gfli/gfli.c
      	* plug-ins/ifscompose/ifscompose.c
      	* plug-ins/maze/handy.c
      	* plug-ins/pagecurl/pagecurl.c
      	* plug-ins/pygimp/gimpmodule.c
      	* plug-ins/script-fu/scripts/*.scm: changed accordingly.
      35b372ea
  10. 16 Sep, 2004 1 commit
  11. 10 Aug, 2004 1 commit
    • Michael Natterer's avatar
      Redid the whole internal progress stuff: don't pass around · 02d2b990
      Michael Natterer authored
      2004-08-10  Michael Natterer  <mitch@gimp.org>
      
      	Redid the whole internal progress stuff: don't pass around
      	progress_callback and progress_data; instead, provide a
      	pointer to a GimpProgressInterface which can be implemented
      	by a variety of backends.
      
      	Addresses (but not yet fixes) bugs #6010, #97266 and #135185.
      
      	* app/display/Makefile.am
      	* app/display/gimpprogress.[ch]: removed the old progress hack.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpprogress.[ch]: implement GimpProgressInterface.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpprogressdialog.[ch]: the standalone progress
      	dialog as widget implementing GimpProgressInterface.
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpstatusbar.[ch]
      	* app/widgets/gimpfiledialog.[ch]
      	* app/widgets/gimpthumbbox.[ch]: added GimpProgressInterface
      	implementation to these classes.
      
      	* app/core/gimp-gui.[ch]
      	* app/gui/gui-vtable.c: replaced the old progress vtable entries
      	by two new to create and destroy a GimpProgressDialog in case
      	no other progress is available.
      
      	* app/pdb/procedural_db.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* tools/pdbgen/app.pl: pass a GimpProgress to all PDB wrappers and
      	all plug-ins.
      
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c: handle the case there the
      	plug-in was crated with a progress as well as the case where it
      	wasn't.
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/xcf/xcf.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpbrushselect.c
      	* app/widgets/gimpfontselect.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimppaletteselect.c
      	* app/widgets/gimppatternselect.c: changed accordingly.
      
      	* app/core/gimpimagefile.[ch]
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-open-location-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c: pass a GimpProgress to all file
      	related functions. Embed the progress in the file dialog where
      	possible.
      
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-convert.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage-scale.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/core/gimplayer.c
      	* app/core/gimpselection.c
      	* app/vectors/gimpvectors.c: replaced callback/data by GimpProgress.
      
      	* app/tools/gimpblendtool.c
      	* app/tools/gimptransformtool.c
      	* app/gui/convert-dialog.c
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed callers accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      02d2b990
  12. 26 Jul, 2004 1 commit
    • Michael Natterer's avatar
      new function which clears the whole list of data set by plug-ins. · a2b85a62
      Michael Natterer authored
      2004-07-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/procedural_db.[ch] (procedural_db_free_data): new
      	function which clears the whole list of data set by plug-ins.
      
      	(procedural_db_free): use it.
      
      	* app/actions/plug-in-actions.c
      	* app/actions/plug-in-commands.[ch]: added action, callback and
      	confirmation dialog for "Reset all filters to default values".
      	Somehow addresses bug #81015.
      
      	* app/widgets/gimphelp-ids.h: added a help ID for the new action.
      
      	* menus/image-menu.xml.in: added it to the "Filters" submenu.
      a2b85a62
  13. 09 Jul, 2004 1 commit
  14. 30 Apr, 2004 1 commit
    • Pedro Gimeno's avatar
      Cleanups. (gimp_rect_select_tool_coords_to_integer): Undo my bogus fix for · c8d982c1
      Pedro Gimeno authored
      2004-04-30  Pedro Gimeno  <pggimeno@wanadoo.es>
      
      	* app/tools/gimprectselecttool.c: Cleanups.
      	(gimp_rect_select_tool_coords_to_integer): Undo my bogus fix for
      	bug #138103, which led to bug #140649.
      
      	* app/pdb/procedural_db.c (procedural_db_init_procs): Add missing
      	compat procs: gimp_channel_ops_duplicate, gimp_channel_ops_offset.
      c8d982c1
  15. 15 Apr, 2004 1 commit
    • Michael Natterer's avatar
      Context cleanup continued: · 837fa429
      Michael Natterer authored
      2004-04-15  Michael Natterer  <mitch@gimp.org>
      
      	Context cleanup continued:
      
      	* app/core/gimpitem.[ch]: added context parameter to
      	GimpItem::stroke().
      
      	* app/core/gimpchannel.c (gimp_channel_stroke)
      	* app/vectors/gimpvectors.c (gimp_vectors_stroke): use it to get
      	default values from instead of gimp_get_user_context().
      
      	* app/core/gimpselection.c
      	* app/gui/stroke-dialog.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/paths.pdb: changed accordingly.
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/paths_cmds.c: regenerated.
      
      	* app/plug-in/plug-in.[ch]: added GimpContext member to the PlugIn
      	struct. Added context parameter to plug_in_new(),
      	plug_in_call_query() and plug_in_call_init().
      
      	* app/plug-in/plug-in-run.[ch]: added context parameters to
      	plug_in_run() and plug_in_repeat().
      
      	* app/gui/plug-in-commands.c
      	* app/gui/vectors-commands.c
      	* app/pdb/procedural_db.c
      	* app/widgets/gimphelp.c: pass a context to plug_in_run() and
      	plug_in_repeat().
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_run): call
      	procedures with the plug-in's context.
      
      	* app/plug-in/plug-ins.c: use a temporary context for running the
      	plug-ins' query() and init() functions. Use the same context for
      	running automatic extensions. This temporarily separates the main
      	Script-Fu extension from the user context (i.e. scripts have no
      	way of setting/getting the global FG, BG, brush etc.).
      837fa429
  16. 14 Apr, 2004 1 commit
    • Michael Natterer's avatar
      Get rid of the "current_context" which was in fact just a bunch of global · 18d9161e
      Michael Natterer authored
      2004-04-15  Michael Natterer  <mitch@gimp.org>
      
      	Get rid of the "current_context" which was in fact just a bunch of
      	global variables. Instead, pass the needed context all the way
      	from the GUI and the PDB to the core. This is a prerequisite for
      	macro recording and generally helps separating the various
      	subsystems from each other. Work in progress...
      
      	* app/core/gimp.[ch]: removed member "current_context" and
      	gimp_[get|set]_current_context().
      
      	* app/core/gimp-edit.[ch]
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-bucket-fill.[ch]
      	* app/core/gimpdrawable-offset.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-crop.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-merge.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimagefile.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimpselection.[ch]
      	* app/core/gimptemplate.[ch]
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/pdb/procedural_db.[ch]
      	* app/text/gimptext-compat.[ch]
      	* app/text/gimptextlayer-transform.[ch]
      	* app/gui/brush-select.[ch]
      	* app/gui/font-select.[ch]
      	* app/gui/gradient-select.[ch]
      	* app/gui/palette-select.[ch]
      	* app/gui/pattern-select.[ch]: added tons of "GimpContext *context"
      	parameters and use the passed context instead of
      	gimp_get_current_context().
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-ins.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimptransformtool.c
      	* app/vectors/gimpvectors.c
      	* app/gui/convert-dialog.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpthumbbox.c: pass gimp_get_user_context() or
      	GIMP_CONTEXT(tool_options) or whatever is the right context
      	to the changed core functions.
      
      	* tools/pdbgen/app.pl: pass "GimpContext *context" to all
      	generated PDB invokers.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/paths.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: pass the new context
      	parameter to the changed core functions.
      
      	* app/pdb/*_cmds.c: regenerated.
      18d9161e
  17. 26 Mar, 2004 1 commit
    • Manish Singh's avatar
      don't generate code with tabs. · 83cae161
      Manish Singh authored
      2004-03-26  Manish Singh  <yosh@gimp.org>
      
              * tools/pdbgen/app.pl: don't generate code with tabs.
      
              * tools/pdbgen/pdb/procedural_db.pdb: convert tabs to spaces in
              helper function declaration.
      
              * app/pdb/procedural_db.c: convert tabs to spaces.
      
              * app/pdb/*.c: regenerated, no code changes, only tabs->spaces.
      83cae161
  18. 05 Jan, 2004 1 commit
    • Michael Natterer's avatar
      tools/pdbgen/Makefile.am tools/pdbgen/groups.pl removed the "misc tools" · b2e3434d
      Michael Natterer authored
      2004-01-05  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl
      	* tools/pdbgen/pdb/misc_tools.pdb: removed the "misc tools" PDB group.
      
      	* tools/pdbgen/pdb/edit.pdb: added gimp_edit_bucket_fill() and
      	gimp_edit_blend().
      
      	* tools/pdbgen/pdb/image.pdb: added gimp_image_pick_color().
      
      	* app/pdb/procedural_db.c
      	* libgimp/gimpcompat.h: added compat stuff.
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/misc_tools_cmds.c
      	* libgimp/gimp_pdb.h
      	* libgimp/gimpedit_pdb.[ch]
      	* libgimp/gimpimage_pdb.[ch]: regenerated.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpmisctools_pdb.[ch]: removed.
      
      	* plug-ins/gfig/gfig.c
      	* plug-ins/script-fu/scripts/3dTruchet.scm
      	* plug-ins/script-fu/scripts/alien-glow-arrow.scm
      	* plug-ins/script-fu/scripts/alien-glow-bar.scm
      	* plug-ins/script-fu/scripts/alien-glow-bullet.scm
      	* plug-ins/script-fu/scripts/alien-glow-button.scm
      	* plug-ins/script-fu/scripts/alien-glow-logo.scm
      	* plug-ins/script-fu/scripts/basic1-logo.scm
      	* plug-ins/script-fu/scripts/basic2-logo.scm
      	* plug-ins/script-fu/scripts/beveled-button.scm
      	* plug-ins/script-fu/scripts/blended-logo.scm
      	* plug-ins/script-fu/scripts/burn-in-anim.scm
      	* plug-ins/script-fu/scripts/coffee.scm
      	* plug-ins/script-fu/scripts/comic-logo.scm
      	* plug-ins/script-fu/scripts/coolmetal-logo.scm
      	* plug-ins/script-fu/scripts/glossy.scm
      	* plug-ins/script-fu/scripts/gradient-bevel-logo.scm
      	* plug-ins/script-fu/scripts/gradient-example.scm
      	* plug-ins/script-fu/scripts/hsv-graph.scm
      	* plug-ins/script-fu/scripts/pupi-button.scm
      	* plug-ins/script-fu/scripts/rendermap.scm
      	* plug-ins/script-fu/scripts/sphere.scm
      	* plug-ins/script-fu/scripts/starscape-logo.scm
      	* plug-ins/script-fu/scripts/test-sphere.scm
      	* plug-ins/script-fu/scripts/textured-logo.scm
      	* plug-ins/script-fu/scripts/title-header.scm
      	* plug-ins/script-fu/scripts/weave.scm: follow "blend" and "color
      	picker" changes. Leave "bucket fill" users unchanged because fill
      	and bucket_fill need another cleanup (will follow next...)
      
      2004-01-05  Michael Natterer  <mitch@gimp.org>
      
      	* libgimp/libgimp-sections.txt: moved color_picker, blend and
      	bucket_fill to their new places.
      
      	* libgimp/tmpl/gimpedit.sgml
      	* libgimp/tmpl/gimpimage.sgml
      	* libgimp/tmpl/gimptools.sgml: regenerated.
      b2e3434d
  19. 19 Dec, 2003 1 commit
    • Michael Natterer's avatar
      renamed gimp_temp_PDB_name() to gimp_procedurab_db_temp_name() · 14c75713
      Michael Natterer authored
      2003-12-19  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/plug_in.pdb: renamed gimp_temp_PDB_name()
      	* tools/pdbgen/pdb/procedural_db.pdb: to gimp_procedurab_db_temp_name()
      
      	* app/pdb/procedural_db.c
      	* libgimp/gimpcompat.h: added compat cruft.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/procedural_db_cmds.c
      	* libgimp/gimpplugin_pdb.[ch]
      	* libgimp/gimpproceduraldb_pdb.[ch]: regenerated.
      
      	* libgimp/gimpbrushselect.c
      	* libgimp/gimpfontselect.c
      	* libgimp/gimpgradientselect.c
      	* libgimp/gimppatternselect.c: changed accordingly.
      14c75713
  20. 08 Dec, 2003 1 commit
    • Michael Natterer's avatar
      renamed PDB function gimp_image_active_drawable() to · a0469696
      Michael Natterer authored
      2003-12-08  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/image.pdb: renamed PDB function
      	gimp_image_active_drawable() to gimp_image_get_active_drawable()
      	so it's consistent with all other drawable getters.
      
      	* app/pdb/procedural_db.c
      	* libgimp/gimpcompat.h: added compat stuff.
      
      	* app/pdb/image_cmds.c
      	* libgimp/gimpimage_pdb.[ch]: regenerated.
      
      	* plug-ins/pygimp/pygimp-image.c
      	* plug-ins/script-fu/scripts/add-bevel.scm
      	* plug-ins/script-fu/scripts/carved-logo.scm
      	* plug-ins/script-fu/scripts/chrome-it.scm
      	* plug-ins/script-fu/scripts/crystal-logo.scm
      	* plug-ins/script-fu/scripts/round-corners.scm
      	* plug-ins/script-fu/scripts/slide.scm
      	* plug-ins/script-fu/scripts/sota-chrome-logo.scm: changed accordingly.
      
      2003-12-08  Michael Natterer  <mitch@gimp.org>
      
      	* libgimp/libgimp-sections.txt
      	* libgimp/tmpl/gimpimage.sgml: updated.
      a0469696
  21. 05 Dec, 2003 5 commits
    • Michael Natterer's avatar
      added enum GimpPDBCompatMode which can be one of { OFF, ON, WARN }. · ca45a5c6
      Michael Natterer authored
      2003-12-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/pdb-types.h: added enum GimpPDBCompatMode which can
      	be one of { OFF, ON, WARN }.
      
      	* app/main.c: added --pdb-compat-mode command line option. Renamed
      	--enable-stack-trace to --stack-trace-mode. Made default values of
      	stack_trace_mode and pdb_compat_mode depend on GIMP_MINOR_VERSION
      	(default to compat ON and stack_trace NEVER).
      
      	* app/app_procs.[ch]: pass pdb_compat_mode to gimp_new().
      
      	* app/core/gimp.[ch]: added pdb_compat_mode to the Gimp struct
      	and to gimp_new().
      
      	* app/pdb/procedural_db.c: leave the compat table empty for
      	GIMP_PDB_COMPAT_OFF.
      
      	* app/plug-in/plug-in-message.c: warn when a deprecated procedure
      	is called for GIMP_PDB_COMPAT_WARN.
      
      	* docs/gimp-1.3.1.in: changed accordingly.
      ca45a5c6
    • Michael Natterer's avatar
      Name all PDB procedures which deal with floating selections consistently: · 3ad199d5
      Michael Natterer authored
      2003-12-05  Michael Natterer  <mitch@gimp.org>
      
      	Name all PDB procedures which deal with floating selections
      	consistently:
      
      	* tools/pdbgen/pdb/image.pdb: renamed
      	gimp_image_floating_selection() to gimp_image_get_floating_sel().
      
      	* libgimp/gimplayer.h: removed gimp_layer_is_floating_selection #define.
      
      	* libgimp/gimpcompat.h
      	* app/pdb/procedural_db.c: added compat stuff.
      
      	* app/pdb/image_cmds.c
      	* libgimp/gimpimage_pdb.[ch]: regenerated.
      
      	* plug-ins/common/curve_bend.c
      	* plug-ins/common/film.c
      	* plug-ins/common/rotate.c
      	* plug-ins/pygimp/pygimp-image.c
      	* plug-ins/xjt/xjt.c: changed accordingly.
      
      2003-12-05  Michael Natterer  <mitch@gimp.org>
      
      	* libgimp/libgimp-sections.txt
      	* libgimp/tmpl/gimpimage.sgml
      	* libgimp/tmpl/gimplayer.sgml: follow floating_sel cleanup.
      3ad199d5
    • Michael Natterer's avatar
      renamed gimp_drawable_bytes() to gimp_drawable_bpp() because all other · 2de8decd
      Michael Natterer authored
      2003-12-05  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/drawable.pdb: renamed gimp_drawable_bytes() to
      	gimp_drawable_bpp() because all other libgimp API speak in terms
      	of "bpp" too.
      
      	* libgimp/gimpdrawable.h: removed gimp_drawable_bpp #define.
      
      	* app/pdb/procedural_db.c
      	* libgimp/gimpcompat.h: added compat stuff.
      
      	* app/pdb/drawable_cmds.c
      	* libgimp/gimpdrawable_pdb.[ch]: regenerated.
      
      	* plug-ins/common/pix.c
      	* plug-ins/common/psd_save.c: changed accordingly.
      
      2003-12-05  Michael Natterer  <mitch@gimp.org>
      
      	* libgimp/libgimp-sections.txt
      	* libgimp/tmpl/gimpdrawable.sgml: s/drawable_bytes/drawable_bpp/.
      2de8decd
    • Michael Natterer's avatar
      removed gimp_image_undo_*() functions... · bc1a085d
      Michael Natterer authored
      2003-12-05  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/image.pdb: removed gimp_image_undo_*() functions...
      
      	* tools/pdbgen/pdb/undo.pdb: ...and added them here. Renamed
      	gimp_undo_push_group_start,end() to
      	gimp_image_undo_group_start,end().
      
      	* app/pdb/procedural_db.c
      	* libgimp/gimpcompat.h: added compat stuff for the old undo group API.
      
      	* app/pdb/image_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/undo_cmds.c
      	* libgimp/gimpimage_pdb.[ch]
      	* libgimp/gimpundo_pdb.[ch]: regenerated.
      
      	* plug-ins/common/align_layers.c
      	* plug-ins/common/colortoalpha.c
      	* plug-ins/common/curve_bend.c
      	* plug-ins/common/iwarp.c
      	* plug-ins/common/jpeg.c
      	* plug-ins/common/rotate.c
      	* plug-ins/common/tile.c
      	* plug-ins/common/zealouscrop.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/ifscompose/ifscompose.c
      	* plug-ins/pagecurl/pagecurl.c
      	* plug-ins/script-fu/scripts/*.scm: changed accordingly.
      
      2003-12-05  Michael Natterer  <mitch@gimp.org>
      
      	* libgimp/libgimp-sections.txt
      	* libgimp/tmpl/gimpimage.sgml
      	* libgimp/tmpl/gimpundo.sgml: follow undo API changes.
      bc1a085d
    • Michael Natterer's avatar
      Made 3rd party scripts work again after all that PDB function renaming: · 062c2fd4
      Michael Natterer authored
      2003-12-05  Michael Natterer  <mitch@gimp.org>
      
      	Made 3rd party scripts work again after all that PDB function
      	renaming:
      
      	* app/core/gimp.[ch]: added "GHashTable *procedural_compat_ht" to
      	the Gimp struct which maps old procedure names to new ones.
      	Call new function procedural_db_init_procs() instead of
      	internal_procs_init().
      
      	* app/pdb/procedural_db.[ch]: create and destroy the new compat
      	hash table. Added new function procedural_db_init_procs() which
      	registers the internal procedures and fills the compat hash table.
      
      	(procedural_db_execute): minor fixes.
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_run): if
      	the requested procedure was not found, try the compat table.
      
      	* tools/pdbgen/pdb/procedural_db.pdb: made all PDB query
      	procedures compat aware. For compat procedures, return help
      	strings which declare the procedure as deprecated and tell
      	the new name of the procedure. Cleanup.
      
      	* app/pdb/procedural_db_cmds.c: regenerated.
      062c2fd4
  22. 16 Sep, 2003 1 commit
    • Sven Neumann's avatar
      app/composite/gimp-composite-generic.c app/composite/gimp-composite-mmx.c · 555038de
      Sven Neumann authored
      2003-09-16  Sven Neumann  <sven@gimp.org>
      
      	* app/composite/gimp-composite-generic.c
      	* app/composite/gimp-composite-mmx.c
      	* app/composite/gimp-composite-sse.c
      	* app/composite/gimp-composite-sse2.c
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-path.c
      	* app/config/gimpconfig-serialize.c
      	* app/core/cpercep.c
      	* app/core/gimpunit.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/plug-in-menus.c
      	* app/paint-funcs/paint-funcs-generic.h
      	* app/paint-funcs/paint-funcs.c
      	* app/pdb/procedural_db.c
      	* app/text/gimptextlayout-render.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/widgets/gimpcursor.c: some trivial code cleanups: avoid
      	casts that discard const qualifiers and avoid useless comparisons
      	on unsigned variables. Also reordered qualifiers in function
      	declarations (static comes before const).
      555038de
  23. 19 Jun, 2003 1 commit
    • Michael Natterer's avatar
      Changed the semantics of GIMP_EXTENSION and (to some extent) of · ecb0b584
      Michael Natterer authored
      2003-06-19  Michael Natterer  <mitch@gimp.org>
      
      	Changed the semantics of GIMP_EXTENSION and (to some extent)
      	of GIMP_PLUGIN:
      
      	The old meaning of EXTENSION was "I live in the toolbox" and
      	PLUGIN meant "I take RUN-MODE,IMAGE,DRAWABLE args (but only if I
      	am invoked interactively)". This is completely useless, since
      	living in the toolbox means having "<Toolbox>" in the menu_path
      	and taking RUN-MODE,IMAGE,DRAWABLE means just that, regardless of
      	what type of procedure we are.
      
      	The new meaning of GIMP_PLUGIN is just "I am an ordinary procedure,
      	I am invoked, do my job and finish", while GIMP_EXTENSION means
      	"I will install temporary procedures and I will keep running to
      	keep them available".
      
      	(A GIMP_EXTENSION *must* call gimp_extension_ack() now to tell the
      	core that it's ready to run, or the core will block waiting for
      	the message !!!).
      
      	* configure.in: bumped version number to 1.3.16.
      
      	* libgimpbase/gimpprotocol.h: increased protocol version number so
      	old extensions will refuse to load.
      
      	* app/gui/plug-in-commands.c (plug_in_run_cmd_callback): don't
      	blindly pass RUN-MODE,IMAGE,DRAWABLE to GIMP_PLUGIN procedures but
      	look at their parameters and pass them either RUN-MODE, or
      	RUN-MODE,IMAGE, or RUN-MODE,IMAGE,DRAWABLE.
      
      	* app/pdb/procedural_db.c: cleaned up, better error reporting,
      	replaced an impossible error message by g_return_if_fail()
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_install):
      	better error messages.
      
      	* app/plug-in/plug-in-params.c: allocate parameter arrays using
      	g_new0() so we don't have to worry about uninitialized stuff
      	later.
      
      	* app/plug-in/plug-in-run.c (plug_in_run): wait for
      	gimp_extension_ack() installation confirmation for ALL extensions,
      	not just for automatically started ones.
      
      	* app/plug-in/plug-ins.c: cleanup.
      
      	* libgimp/gimp.[ch]: cleaned up and API-documented massively. Made
      	all magic values given in the GPConfig message static and added
      	accessor functions for them. Added gimp_tile_width()/height().
      	Added new function gimp_extension_enable() which turns on
      	asynchronous processing of temp_proc run requests without having
      	to enter an endless gimp_extension_process() loop. Moved all
      	private functions to the end of the file. Added tons of
      	g_return_if_fail() all over the place.  Call gimp_run_procedure2()
      	from gimp_run_procedure() instead of duplicating the
      	code. Indentation, spacing, stuff...
      
      	* libgimp/gimptile.[ch]: removed gimp_tile_width()/height().
      
      	* libgimp/gimpdrawable.c
      	* libgimp/gimppixelrgn.c
      	* libgimp/gimptile.c: use the gimp_tile_width()/height() accessor
      	functions.
      
      	* libgimp/gimp.def: added gimp_extension_enable.
      
      	* libgimp/gimpmenu.c: removed evil code which connected to
      	_readchannel manually and use gimp_extension_enable() for watching
      	temp_procs.
      
      	* plug-ins/helpbrowser/helpbrowser.c: removed the same evil code
      	here and call gimp_extension_enable(). Call gimp_extension_ack()
      	to let the core know that the temp_proc is installed.
      
      	* plug-ins/script-fu/script-fu.c: made all procedures except the
      	permanently running "extension_script_fu" ordinary GIMP_PLUGIN
      	procedures.
      
      	* plug-ins/common/curve_bend.c
      	* plug-ins/common/plugindetails.c
      	* plug-ins/common/screenshot.c
      	* plug-ins/common/uniteditor.c
      	* plug-ins/common/winclipboard.c
      	* plug-ins/dbbrowser/dbbrowser.c
      	* plug-ins/gfli/gfli.c
      	* plug-ins/twain/twain.c
      	* plug-ins/webbrowser/webbrowser.c
      	* plug-ins/winsnap/winsnap.c: made them all ordinary GIMP_PLUGIN
      	procedures and renamed them from "extension_*" to "plug_in_*".
      	Random cleanups.
      
      	* app/widgets/gimphelp.c
      	* plug-ins/maze/maze_face.c: call "plug_in_web_browser" now.
      ecb0b584
  24. 25 Mar, 2003 1 commit
    • Sven Neumann's avatar
      Makefile.am removed this header file. · 28fddfd5
      Sven Neumann authored
      2003-03-25  Sven Neumann  <sven@gimp.org>
      
      	* Makefile.am
      	* gimpintl.h: removed this header file.
      
      	* gimpmiscui.c: include libgimp-intl.h.
      
      	* gimp.c (gimp_main): call setlocale() and bind to the libgimp
      	textdomain so that plug-ins don't need to do that explicitely.
      
      	* libgimp/stdplugins-intl.h: added the functionality that used to
      	live in gimpintl.h and removed the libgimp related stuff. Got rid
      	of the INIT_I18N_UI() macro.
      
      	* plug-ins/*/*.c: removed all occurances of INIT_I18N_UI().
      	Plug-ins simply call INIT_I18N() once in their run() function.
      
      	* plug-ins/script-fu/script-fu-intl.h: added the functionality
      	that used to live in gimpintl.h and removed the libgimp related
      	stuff.
      
      	* app/Makefile.am
      	* app/gimp-intl.h: new file that defines the gettext macros for
      	the GIMP core.
      
      	* app/*/*.c: include gimp-intl.h instead of libgimp/gimpintl.h.
      
      	* plug-ins/script-fu/scripts/test-sphere.scm: fixed typos.
      28fddfd5
  25. 03 Feb, 2003 1 commit
    • Michael Natterer's avatar
      unified some comments, some cleanup. · c5b1f98a
      Michael Natterer authored
      2003-02-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/undo.c: unified some comments, some cleanup.
      
      	* app/pdb/procedural_db.c: some cleanup & comments to clarify
      	what GIMP_PDB_PASS_THROUGH does.
      c5b1f98a
  26. 30 Jan, 2003 1 commit
    • Michael Natterer's avatar
      renamed plug_in->busy to plug_in->in_temp_proc. Added a stack of · a3c38814
      Michael Natterer authored
      2003-01-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in.[ch]: renamed plug_in->busy to
      	plug_in->in_temp_proc. Added a stack of GMainLoops to each
      	plug-in. Added the "current_return_vals" to the PlugIn
      	struct. Renamed plug_in_kill() to plug_in_exit(). Removed
      	the stuff added below. Cleanup.
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-message.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* app/plug-in/plug-in-shm.[ch]: new files taking out functionality
      	from the overloaded plug-in.c. Added the code back in that implements
      	temp proc return messages (inside an #ifdef) because i don't
      	really get why it was removed on Sep 19 1998.
      
      	* app/plug-in/plug-ins.c: changed accordingly.
      
      	* app/plug-in/plug-in-def.c
      	* app/plug-in/plug-in-params.c: removed inclusion of <gtk/gtk.h>.
      
      	* app/gui/file-save-dialog.c
      	* app/gui/paths-dialog.c
      	* app/gui/plug-in-commands.c
      	* app/gui/plug-in-menus.c
      	* app/pdb/procedural_db.c
      	* app/widgets/gimphelp.c: changed plug-in includes accordingly.
      
      	* app/gui/plug-in-commands.c: don't use "the_gimp" from
      	"app_procs.h" but get it from the GimpItemFactory that invoked the
      	plug-in callback.
      a3c38814
  27. 09 Jan, 2003 1 commit
    • Sven Neumann's avatar
      fixed typo. · e865f111
      Sven Neumann authored
      2003-01-09  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimprc-blurbs.h: fixed typo.
      
      	* app/pdb/procedural_db.c (procedural_db_run_proc): always set the
      	number of returned values, even in case of an error.
      
      	* app/widgets/gimphelp.c: fix #65789 similar to how Tor did it in
      	the stable branch.
      e865f111
  28. 10 Sep, 2002 1 commit
    • Michael Natterer's avatar
      Some PDB cleanup: · 451d392a
      Michael Natterer authored
      2002-09-10  Michael Natterer  <mitch@gimp.org>
      
      	Some PDB cleanup:
      
      	* tools/pdbgen/pdb/procedural_db.pdb: removed the get_data() and
      	set_data() implementations and the global "data_list" variable.
      	Cleaned up the dump() stuff (pass the FILE pointer around instead
      	of having a global variable for it). Fixed output_string() so it
      	does not crash on NULL strings.
      
      	* app/core/gimp.[ch]: added gimp->procedural_db_data_list.
      
      	* app/pdb/procedural_db.[ch]: added procedural_db_[set|get]_data().
      	Don't leak data identifiers when overwriting an already existing
      	entry. Added g_return_if_fail() stuff to all public functions.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/parasite.pdb: tweaked some helper functions to
      	take parameters which make them aware of the real type of the
      	objects they handle (e.g. the PDB function gimp_layer_set_name()
      	matches the core function gimp_object_get_name()).
      
      	* app/pdb/pdb_glue.h: removed ugly CPP-level workarounds for the
      	issue mentioned above.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/procedural_db_cmds.c: regenerated.
      451d392a
  29. 20 Mar, 2002 1 commit
    • Michael Natterer's avatar
      badly chopped into the new files below. Pass around much more "PlugIn" and · 47c5473e
      Michael Natterer authored
      2002-03-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in.[ch]: badly chopped into the new files below.
      	Pass around much more "PlugIn" and "Gimp" pointers instead of
      	using "current_plug_in" and "the_gimp". Needs much more hacking
      	though... :(
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-def.[ch]
      	* app/plug-in/plug-in-params.[ch]
      	* app/plug-in/plug-in-progress.[ch]
      	* app/plug-in/plug-ins.[ch]: new files.
      
      	* app/gui/Makefile.am
      	* app/gui/plug-in-commands.[ch]
      	* app/gui/plug-in-menus.[ch]: ditto.
      
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-in-types.h: changed accordingly.
      
      	* app/pdb/procedural_db.c: changed procedural_db_destroy_args()
      	so it can be used from plug_in_args_destroy(). Fixed a parasite
      	memory leak (or introduced a new SEGV, we'll see...).
      
      	* app/display/Makefile.am: another "truly ugly hack" until the
      	plug-in menu stuff is chopped even more...
      
      	* app/gui/commands.[ch]: removed filters_repeat_cmd_callback() here,
      	it is now in plug-in-commands.[ch].
      
      	* app/widgets/gimpitemfactory.[ch]: removed all gimp_menu_item_*()
      	hacks. We have a GimpItemFactory available in most cases we used
      	to call this functions, and can use gimp_item_factors_from_path()
      	in all other cases. The item factory stuff needs more work
      	anyway...
      
      	* app/app_procs.c
      	* app/gimphelp.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-save-dialog.[ch]
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/gui/paths-dialog.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly (includes,
      	renamed functions and gimp_menu_item_*() removal).
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/help_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
      47c5473e
  30. 27 Dec, 2001 1 commit
    • Sven Neumann's avatar
      INSTALL NEWS require latest versions of glib, gtk+ and friends. Bumped our · 7e309cc1
      Sven Neumann authored
      2001-12-27  Sven Neumann  <sven@gimp.org>
      
      	* INSTALL
      	* NEWS
      	* configure.in: require latest versions of glib, gtk+ and friends.
      	Bumped our version number to 1.3.2.
      
      	* app/plug-in/plug-in.c (plug_in_params_destroy, plug_in_args_destroy):
      	moved condition out of the switch statement, simplified code.
      
      	* app/plug-in/plug-in-proc.[ch]: moved plug_in_proc_def_destroy() here.
      
      	* app/gimprc.c: use plug_in_proc_def_destroy().
      
      	* app/pdb/procedural_db.c: use g_string_hash() instead of our own hash
      	function.
      
      	* app/xcf/xcf.c: initialize all fields of the PlugInProcDef struct.
      7e309cc1
  31. 01 Dec, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed... · 77863d88
      Michael Natterer authored
      2001-11-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/plug_in.[ch]: removed...
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-types.h
      	* app/plug-in/plug-in.[ch]: ...and added here.
      
      	* app/appenv.h: removed StackTraceMode and MessageHandlerType...
      
      	* libgimpbase/gimpbasetypes.h: ...and added them here.
      
      	* tools/pdbgen/Makefile.am: don't scan "app/apptypes.h" for enums.
      
      	* tools/pdbgen/enumcode.pl: added a general check to prevent
      	enums which are defined in libgimp* from being written to
      	"libgimp/gimpenums.c".
      
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/core/core-types.h: include "pdb/pdb-types.h" so including
      	"core/core-types.h" gets the whole core type space.
      
      	* app/core/gimp.[ch]: added a "stack_trace_mode" parameter to the
      	constructor and store it in the Gimp struct because the value is
      	also passed to plug-ins and nobody should include "appenv.h".
      
      	* app/gimprc.[ch]: pass the alternate_system_gimprc and
      	alternate_gimprc filenames from the command line to gimprc_prase()
      	so we don't need to include "appenv.h".
      
      	* app/batch.[ch]: pass the "batch_cmds" as parameter, don't
      	include "append.h".
      
      	* app/app_procs.c: pass more parameters around.
      
      	* app/devices.c
      	* app/errors.c
      	* app/gimphelp.c
      	* app/main.c
      	* app/core/gimpgradient.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/file/file-utils.c
      	* app/gui/commands.c
      	* app/gui/error-console-dialog.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/paths-dialog.c
      	* app/gui/user-install-dialog.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/xinput_airbrush.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/message.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly:
      
      	- changed "plug-in.h" include where needed.
      	- don't call gimp_fatal_error() directly, it's called via the log
      	  handler when calling g_error().
      	- don't incude "errors.h" except from main.c.
      	- changed stack_trace and message_handler enum names.
      	- get "stack_trace_mode" from Gimp.
      	- removed many inclusions of "appenv.h".
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/help_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/procedural_db.c: regenerated.
      77863d88
  32. 09 Nov, 2001 1 commit
    • Michael Natterer's avatar
      removed the "palette" PDB type again. Incremented protocol version. · a109f0ff
      Michael Natterer authored
      2001-11-09  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpbase/gimpprotocol.[ch]: removed the "palette" PDB type
      	again. Incremented protocol version.
      
      	* app/plug_in.c
      	* app/pdb/procedural_db.c
      	* libgimp/gimp.c
      	* libgimpbase/gimpbasetypes.h: changed accordingly.
      
      	* app/pdb/procedural_db_cmds.c
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      a109f0ff
  33. 28 Oct, 2001 1 commit
    • Nate Summers's avatar
      app/plug_in.c libgimp/gimp.c libgimpbase/gimpbasetypes.h · 6ffaf731
      Nate Summers authored
      
       	* app/plug_in.c
       	* libgimp/gimp.c
      	* libgimpbase/gimpbasetypes.h
       	* libgimpbase/gimpprotocol.c
       	* libgimpbase/gimpprotocol.h
       	* tools/pdbgen/pdb/palette.pdb: added preliminary pdb support to
       	manipulate palettes.  Incremented plugin interface version number.
      
       	* app/pdb/internal_procs.c
       	* app/pdb/palette_cmds.c
       	* app/pdb/procedural_db.c
      	* app/pdb/procedural_db_cmds.c
      	* libgimp/gimppalette_pdb.c
      	* libgimp/gimppalette_pdb.h
       	* plug-ins/script-fu/script-fu-constants.c
       	* tools/pdbgen/enums.pl: regenerated
      6ffaf731
  34. 17 Oct, 2001 1 commit
    • Michael Natterer's avatar
      app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ · 18dd0728
      Michael Natterer authored
      2001-10-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimpprogress.[ch]
      	* app/undo.c: s/GDisplay/GimpDisplay/
      
      	* app/plug_in.[ch]: removed unused boolean "destroy" field of
      	the PlugIn struct.
      
      	* app/core/gimpedit.c: don't include "app_procs.h"
      
      	* app/display/gimpdisplay-callbacks.c: moved the "grab_abd_scroll"
      	stuff from gimpdisplay-scroll.* here (less complicated and easier
      	to cleanup...)
      
      	* app/display/gimpdisplay-scroll.[ch]: removed here.
      
      	* app/display/gimpdisplay-render.[ch]
      	* app/display/gimpdisplay-selection.[ch]
      	* app/display/gimpdisplayshell.c: s/GDisplay/GimpDisplay/g
      
      	* app/display/gimpdisplay.[ch]: ditto, removed gdisplay_active()
      	which was just a wrapper around
      	"gimp_context_get_display (gimp_get_user_context (the_gimp))"
      	(which is more to type but makes the use of the global
      	"the_gimp" variable more obvious).
      
      	* app/gui/color-area.h
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.h
      	* app/gui/paths-dialog.h
      	* app/gui/select-commands.c
      	* app/gui/tool-options-dialog.c
      	* app/gui/tools-commands.c
      	* app/gui/view-commands.c: s/GDisplay/GimpDisplay/, gdisplay_active()
      	removal, include "app_procs.h" for "the_gimp".
      
      	* app/tools/gimpbezierselecttool.h
      	* app/tools/gimpbrightnesscontrasttool.[ch]
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpcolorbalancetool.[ch]
      	* app/tools/gimpcurvestool.[ch]
      	* app/tools/gimpeditselectiontool.h
      	* app/tools/gimphistogramtool.[ch]
      	* app/tools/gimphuesaturationtool.[ch]
      	* app/tools/gimplevelstool.[ch]
      	* app/tools/gimpmovetool.h
      	* app/tools/gimpperspectivetool.h
      	* app/tools/gimpposterizetool.[ch]
      	* app/tools/gimprotatetool.h
      	* app/tools/gimpscaletool.h
      	* app/tools/gimpsheartool.h
      	* app/tools/gimptexttool.h
      	* app/tools/gimpthresholdtool.[ch]
      	* app/tools/gimptool.[ch]
      	* app/tools/gimptransformtool.h
      	* app/tools/tool_manager.[ch]: lots of s/GDisplay/GimpDisplay/, made
      	all *_dialog_hide() functions private, cleanup.
      
      	* app/widgets/*: removed GtkType and gtk_type_* stuff entirely and
      	use GObject functions, removed lots of empty "destroy" methods and
      	use more type checking class cast macros instead of casting
      	directly.
      
      	* app/widgets/gimpcontainermenu.c: fixed item insert order.
      
      	* app/widgets/gimphistogramview.[ch]: cleaned up and renamed all
      	functions.
      
      	* app/widgets/gimpwidgets-utils.[ch]: removed gimp_dialog_hide() as
      	Gtk+ does the right thing (TM) now.
      
      	* tools/pdbgen/pdb/color.pdb: implemented "histogram" without
      	digging into tools/ and widgets/ (needs to be done for all
      	color PDB functions).
      
      	* tools/pdbgen/pdb/gimprc.pdb: no need to use "the_gimp" in a PDB
      	function as a "Gimp" pointer is passed to them all.
      
      	* tools/pdbgen/pdb/image.pdb: don't include "app_procs.h"
      
      	* app/pdb/color_cmds.c
      	* app/pdb/gimprc_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      
      	* app/pdb/procedural_db.c: don't include "app_procs.h"
      18dd0728