1. 26 Apr, 2007 1 commit
    • Michael Natterer's avatar
      renamed GimpParamSpecString's flag "no_validate" to "allow_non_utf8". · ff8ba7ea
      Michael Natterer authored
      2007-04-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparamspecs.[ch]: renamed GimpParamSpecString's
      	flag "no_validate" to "allow_non_utf8".
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/*.pdb: renamed argument flag
      	"no_validate" (which turns off utf8-validation for strings) to
      	"allow_non_utf8" and renamed "no_success" (which turns off
      	argument validation alltogether) to "no_validate".
      	Doesn't affect generated code.
      
      
      svn path=/trunk/; revision=22350
      ff8ba7ea
  2. 25 Apr, 2007 1 commit
    • Michael Natterer's avatar
      added "gboolean non_empty" to require the string being non-empty. Changed · d6fd5506
      Michael Natterer authored
      2007-04-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparamspecs.[ch] (struct GimpParamSpecString)
      	(gimp_param_spec_string): added "gboolean non_empty" to require
      	the string being non-empty. Changed validation accordingly.
      	Also fixed validation for static strings (we were happily
      	freeing and modifying them before).
      
      	* app/xcf/xcf.c: filenames should be non-empty.
      	* app/pdb/gimp-pdb-compat.c: compat strings shouldn't.
      
      	* tools/pdbgen/app.pl: add support for $arg->{non_empty} and
      	changed generation of calls to gimp_param_spec_string().
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/vectors.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/progress.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/unit.pdb
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/buffer.pdb: require non-empty strings for data
      	object names, procedure names, unit strings, PDB data identifiers
      	and buffer names. Removed some manual strlen() checks, all other
      	places just got better error reporting for free (proper validation
      	error instead of unspecific execution error).
      
      	* app/pdb/*_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=22329
      d6fd5506
  3. 19 Feb, 2007 1 commit
    • Michael Natterer's avatar
      app/plug-in/Makefile.am app/plug-in/plug-in-types.h removed... · be5fbd64
      Michael Natterer authored
      2007-02-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-types.h
      	* app/plug-in/plug-in-def.[ch]: removed...
      
      	* app/plug-in/gimpplugindef.[ch]: ...and added as object. Merged
      	locale and help domain setters into one function each.
      
      	* app/plug-in/gimpplugin-message.c
      	* app/plug-in/gimpplugin.[ch]
      	* app/plug-in/gimppluginmanager-call.[ch]
      	* app/plug-in/gimppluginmanager-file.c
      	* app/plug-in/gimppluginmanager.c
      	* app/plug-in/plug-in-rc.c
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=21944
      be5fbd64
  4. 09 Dec, 2006 1 commit
  5. 05 Aug, 2006 1 commit
    • Michael Natterer's avatar
      app/pdb/Makefile.am app/pdb/gimppluginprocedure.[ch] removed these · 0005f0ff
      Michael Natterer authored
      2006-08-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/Makefile.am
      	* app/pdb/gimppluginprocedure.[ch]
      	* app/pdb/gimptemporaryprocedure.[ch]: removed these files...
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/gimppluginprocedure.[ch]
      	* app/plug-in/gimptemporaryprocedure.[ch]: ...and added them here.
      
      	* app/Makefile.am
      	* app/config/Makefile.am: reordered stuff to make it link again.
      
      	* app/pdb/gimppdb.c: removed gimp_pdb_eek() hack.
      
      	* app/actions/plug-in-actions.c
      	* app/dialogs/file-save-dialog.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/file/file-utils.c
      	* app/menus/plug-in-menus.c
      	* app/plug-in/gimpplugin-message.c
      	* app/plug-in/gimpplugin-progress.c
      	* app/plug-in/gimpplugin.c
      	* app/plug-in/gimppluginmanager-call.c
      	* app/plug-in/gimppluginmanager-file.c
      	* app/plug-in/gimppluginmanager-query.c
      	* app/plug-in/gimppluginmanager.c
      	* app/plug-in/gimppluginprocframe.c
      	* app/plug-in/plug-in-def.c
      	* app/plug-in/plug-in-rc.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpfileprocview.c
      	* app/widgets/gimppluginaction.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/plug_in.pdb: changed includes accordingly.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      0005f0ff
  6. 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
  7. 18 May, 2006 1 commit
    • Sven Neumann's avatar
      tools/pdbgen/app.pl removed code that used to fiddles with the argument · fae8657c
      Sven Neumann authored
      2006-05-18  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/lib.pl: removed code that used to fiddles with
      the
      	argument descriptions.
      
      	* tools/pdbgen/pdb/*.pdb: removed %%desc%% placeholder, added
      some
      	missing argument descriptions.
      
      	* app/pdb/*_cmds.c
      	* libgimp/gimpdrawabletransform_pdb.c
      	* libgimp/gimpfloatingsel_pdb.c
      	* libgimp/gimpgradient_pdb.c
      	* libgimp/gimppainttools_pdb.c: regenerated.
      
      	* app/core/Makefile.am
      	* app/core/gimpparamspecs-desc.[ch] (gimp_param_spec_get_desc):
      	new function that creates a parameter description for the PDB.
      
      	* app/pdb/gimppdb-query.c
      	* app/pdb/procedural_db_cmds.c: use the new function to create
      the
      	descriptions on the fly.
      fae8657c
  8. 03 May, 2006 1 commit
    • Michael Natterer's avatar
      Made an object out of the plug-in struct. Also change refcounting · 4b917ea2
      Michael Natterer authored
      2006-05-03  Michael Natterer  <mitch@gimp.org>
      
      	Made an object out of the plug-in struct. Also change refcounting
      	considerably:
      
      	- gimp_plug_in_open() adds a reference that is only dropped by
      	  gimp_plug_in_close().
      	- temporarily ref the plug-in while handling messages.
      	- remporarily ref the plug-in while a recursive main loop is
      	  running.
      	- each caller of gimp_plug_in_new() also unrefs the plug-in before
      	  returning, the only reference that persists across functions
      	  (that keeps the plug-in alive) is the one added by open().
      
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-in-context.[ch]
      	* app/plug-in/plug-in-message.[ch]
      	* app/plug-in/plug-in-progress.[ch]: removed these files...
      
      	* app/plug-in/gimpplugin.[ch]
      	* app/plug-in/gimpplugin-context.[ch]
      	* app/plug-in/gimpplugin-message.[ch]
      	* app/plug-in/gimpplugin-progress.[ch]: ...and added here as GObject.
      
      	* app/plug-in/plug-in-proc-frame.[ch]: removed...
      
      	* app/plug-in/gimppluginprocframe.[ch]: ...and added with a namespace.
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-types.h
      	* app/plug-in/gimppluginmanager-call.c
      	* app/plug-in/gimppluginmanager-file.c
      	* app/plug-in/gimppluginmanager.[ch]
      	* app/pdb/gimppluginprocedure.c
      	* app/pdb/gimptemporaryprocedure.c
      	* app/pdb/gimptemporaryprocedure.h
      	* tools/pdbgen/pdb/context.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/message.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/progress.pdb
      	* tools/pdbgen/pdb/undo.pdb: changed accordingly.
      
      	* app/pdb/context_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/help_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/progress_cmds.c
      	* app/pdb/undo_cmds.c: regenerated.
      4b917ea2
  9. 02 May, 2006 1 commit
    • Michael Natterer's avatar
      added enum GimpPlugInCallMode which can be one of { NONE, QUERY, INIT, RUN · 927cde41
      Michael Natterer authored
      2006-05-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-enums.[ch]: added enum GimpPlugInCallMode
      	which can be one of { NONE, QUERY, INIT, RUN }.
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/gimppluginmanager-run.[ch]: removed again...
      
      	* app/plug-in/gimppluginmanager-call.[ch]: ...and added
      	here. Added gimp_plug_in_manager_call_init() and
      	gimp_plug_in_manager_call_query().
      
      	* app/plug-in/plug-in.[ch]: removed plug_in_call_query() and
      	plug_in_call_init().
      
      	(struct PlugIn): removed members "init", "query" and "synchronous".
      
      	(plug_in_open): added parameters "call_mode" and "synchronous".
      
      	* app/plug-in/gimppluginmanager.c
      	* app/plug-in/plug-in-message.c
      	* app/pdb/gimppluginprocedure.c
      	* app/pdb/gimptemporaryprocedure.c
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      927cde41
  10. 28 Apr, 2006 1 commit
    • Michael Natterer's avatar
      app/plug-in/Makefile.am app/plug-in/plug-in-types.h new object which keeps · f1c3e79a
      Michael Natterer authored
      2006-04-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-types.h
      	* app/plug-in/gimppluginmanager.[ch]: new object which keeps all
      	plug-in related stuff that was kept in the Gimp instance. Has
      	"menu-branch-added" and "last-plug-in-changed" signals.
      
      	* app/plug-in/plug-ins.[ch]: removed, all its functions are in
      	GimpPlugInManager now.
      
      	* app/core/gimpmarshal.list: new marshaller for the new object.
      
      	* app/core/gimp.[ch]: removed all plug-in related stuff and keep a
      	GimpPlugInManager around.
      
      	* app/plug-in/plug-in-data.[ch]
      	* app/plug-in/plug-in-file.[ch]
      	* app/plug-in/plug-in-help-domain.[ch]
      	* app/plug-in/plug-in-locale-domain.[ch]
      	* app/plug-in/plug-in-menu-branch.[ch]
      	* app/plug-in/plug-ins-query.[ch]: removed...
      
      	* app/plug-in/gimppluginmanager-data.[ch]
      	* app/plug-in/gimppluginmanager-file.[ch]
      	* app/plug-in/gimppluginmanager-help-domain.[ch]
      	* app/plug-in/gimppluginmanager-locale-domain.[ch]
      	* app/plug-in/gimppluginmanager-menu-branch.[ch]
      	* app/plug-in/gimppluginmanager-query.[ch]: ...and added as
      	methods of GimpPlugInManager.
      
      	* app/plug-in/plug-in-debug.[ch]
      	* app/plug-in/plug-in-shm.[ch]: removed...
      
      	* app/plug-in/gimpplugindebug.[ch]
      	* app/plug-in/gimppluginshm.[ch]: ...and added as properly
      	namespeced structs with constructors and destructors.
      
      	* app/core/Makefile.am
      	* app/core/gimpenvirontable.[ch]
      	* app/core/gimpinterpreterdb.[ch]: removed...
      
      	* app/plug-in/gimpenvirontable.[ch]
      	* app/plug-in/gimpinterpreterdb.[ch]: ...and added here unchanged.
      
      	* app/core/gimp-gui.[ch]
      	* app/gui/gui-vtable.c: remove gimp_menus_create_branch() and all
      	related stuff.
      
      	* app/actions/plug-in-actions.[ch]: connect to the
      	plug-in-manager's "menu-path-added" signal and create menu branch
      	actions accordingly.
      
      	* app/plug-in/plug-in-context.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-run.[ch]
      	* app/plug-in/plug-in.[ch]
      	* app/app_procs.c
      	* app/actions/file-commands.c
      	* app/actions/plug-in-commands.c
      	* app/core/gimpimage.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/dialogs/file-save-dialog.c
      	* app/file/file-open.c
      	* app/gui/gui.c
      	* app/menus/plug-in-menus.c
      	* app/pdb/gimppluginprocedure.c
      	* app/pdb/gimptemporaryprocedure.c
      	* app/widgets/gimpdnd-xds.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpfileprocview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpthumbbox.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/context.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/message.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb
      	* tools/pdbgen/pdb/progress.pdb
      	* tools/pdbgen/pdb/undo.pdb: follow above refactoring.
      
      	* app/pdb/context_cmds.c
      	* app/pdb/drawable_cmds.c
      	* 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_cmds.c
      	* app/pdb/progress_cmds.c
      	* app/pdb/undo_cmds.c: regenerated.
      f1c3e79a
  11. 09 Apr, 2006 2 commits
    • Michael Natterer's avatar
      app/plug-in/Makefile.am app/plug-in/plug-ins-help.[ch] remove these files · 1f8c1ae3
      Michael Natterer authored
      2006-04-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-ins-help.[ch]
      	* app/plug-in/plug-ins-locale.[ch]: remove these files again...
      
      	* app/plug-in/plug-in-help-domain.[ch]
      	* app/plug-in/plug-in-locale-domain.[ch]: ... and add them here
      	with changed namespace.
      
      	* app/plug-in/plug-in-menu-branch.[ch]: new files keeping menu
      	branches registered by plug-ins.
      
      	* app/plug-in/plug-ins.[ch]: removed the menu branch stuff here.
      
      	* app/actions/plug-in-actions.c
      	* app/menus/plug-in-menus.c
      	* app/plug-in/plug-in.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpfileprocview.c
      	* app/widgets/gimphelp.c
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly.
      
      	* app/pdb/help_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
      1f8c1ae3
    • Michael Natterer's avatar
      app/plug-in/Makefile.am app/plug-in/plug-ins-help.[ch] new files managing · 5cf5b8ca
      Michael Natterer authored
      2006-04-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-ins-help.[ch]
      	* app/plug-in/plug-ins-locale.[ch]: new files managing plug-in
      	help domains and locale domains.
      
      	* app/plug-in/plug-ins.[ch]: removed the functions here. Minor
      	unrelated cleanups.
      
      	* app/plug-in/plug-in.c
      	* app/actions/plug-in-actions.c
      	* app/menus/plug-in-menus.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpfileprocview.c
      	* app/widgets/gimphelp.c
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed includes accordingly.
      
      	* app/pdb/help_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
      5cf5b8ca
  12. 07 Apr, 2006 2 commits
    • Michael Natterer's avatar
      made plug_in_run_temp() public and changed its parameters to match the · b2f2b714
      Michael Natterer authored
      2006-04-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-run.[ch]: made plug_in_run_temp() public and
      	changed its parameters to match the ones of plug_in_run().
      
      	* app/pdb/gimpprocedure.[ch]: added GimpProcedure::execute_async()
      	which takes an additional display_ID parameter and returns nothing.
      
      	* app/pdb/gimppluginprocedure.c
      	* app/pdb/gimptemporaryprocedure.c: implement it, using
      	plug_in_run() and plug_in_run_temp().
      
      	* app/core/gimp-utils.[ch]: added gimp_value_array_truncate()
      	which takes a GValueArray and the number of values to truncate the
      	array to.
      
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/pdb/gimp-pdb.c
      	* app/plug-in/plug-ins.c
      	* app/widgets/gimphelp.c: use gimp_procedure_execute_async()
      	instead of plug_in_run() and don't #include "plug-in-run.h".
      	Truncate GValueArray passed to plug-ins again, and don't just pass
      	some default values to the noninteractive args.
      
      	Unrelated:
      
      	* tools/pdbgen/pdb/plug_in.pdb: don't call
      	gimp_menus_create_branch() here.
      
      	* app/plug-in/plug-ins.c (plug_ins_menu_branch_add): call it here
      	instead.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      b2f2b714
    • Michael Natterer's avatar
      ref all registered procedures. · 5f211479
      Michael Natterer authored
      2006-04-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/gimp-pdb.c (gimp_pdb_register)
      	(gimp_pdb_unregister): ref all registered procedures.
      
      	* app/xcf/xcf.c
      	* tools/pdbgen/app.pl: unref newly created procedures after
      	registering them.
      
      	* app/core/gimp.[ch]: renamed member "plug_in_proc_defs" to
      	"plug_in_procedures". Renamed "proc_def" variables to "procedure".
      
      	* app/actions/plug-in-actions.c
      	* app/menus/plug-in-menus.c: changed accordingly.
      
      	* app/plug-in/plug-ins.[ch]: keep a reference to all procs which
      	are in gimp->plug_in_procedures.
      
      	(plug_ins_exit): unref them all and free the list. Apparently we
      	were leaking them before on exit.
      
      	* app/plug-in/plug-in-def.[ch]: s/proc_defs/procedures/. Ref
      	procedures added with plug_in_def_add_procedure(). Added
      	plug_in_def_remove_procedure() which unrefs them again. Removed
      	"free_proc_defs" parameter from plug_in_def_free() and always
      	unref the procedures.
      
      	* app/plug-in/plug-in.[ch]: added plug_in_add_temp_proc() and
      	plug_in_remove_temp() proc. Ref the added procedures.
      
      	* app/plug-in/plug-in-message.c: use the new APIs instead of
      	adding/removing procs and temp procs from their lists manually.
      	Unref the newly created procedure after adding then to the
      	plug_in_def or plug_in.
      
      	* app/plug-in/plug-in-rc.[ch]
      	* app/plug-in/plug-ins-query.c
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      5f211479
  13. 06 Apr, 2006 1 commit
    • Michael Natterer's avatar
      app/plug-in/Makefile.am app/plug-in/plug-in-types.h removed... · 7e258dfa
      Michael Natterer authored
      2006-04-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-types.h
      	* app/plug-in/plug-in-proc-def.[ch]: removed...
      
      	* app/pdb/Makefile.am
      	* app/pdb/pdb-types.h
      	* app/pdb/gimppluginprocedure.[ch]: ...and added here. Virtualized
      	get_progname().
      
      	* app/pdb/gimptemporaryprocedure.[ch]: new class derived from
      	GimpPlugInProcedure.
      
      	* app/pdb/gimpprocedure.[ch] (struct GimpProcedure): remove union
      	exec_method and all the structs it needed. Procedure execution is
      	properly virtualized now. Removed gimp_procedure_initialize() and
      	grow the args and values arrays dynamically in
      	gimp_procedure_add_argument()/return_value(). Added marshal_func
      	parameter to gimp_procedure_new().
      
      	* app/actions/plug-in-actions.c
      	* app/actions/plug-in-commands.c
      	* app/core/gimp-gui.c
      	* app/dialogs/file-save-dialog.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/file/file-utils.c
      	* app/gui/gui-vtable.c
      	* app/menus/plug-in-menus.c
      	* app/plug-in/plug-in-def.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-in-run.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins-query.c
      	* app/plug-in/plug-ins.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpfileprocview.c
      	* app/widgets/gimppluginaction.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/app.pl: changed accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      
      	* app/pdb/gimp-pdb.c: added uglyness to make the app link again.
      7e258dfa
  14. 05 Apr, 2006 1 commit
    • Michael Natterer's avatar
      app/plug-in/plug-in-types.h renamed to GimpPlugInProcedure and made a · 086d0b63
      Michael Natterer authored
      2006-04-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-types.h
      	* app/plug-in/plug-in-proc-def.[ch]: renamed to GimpPlugInProcedure
      	and made a GObject derived from GimpProcedure (instead of having
      	a pointer to a GimpProcedure). Added image_types and file_magic
      	utility functions taken from plug-ins.[ch]. Still lives in the
      	same crappy files because I am undecided where to put it...
      
      	* app/pdb/gimpprocedure.c (gimp_procedure_real_execute): removed
      	switch() statement and always call the internal marshaller because
      	GimpProcedure::execute() is properly overridden by
      	GimpPlugInProcedure now.
      
      	* app/plug-in/plug-ins.[ch]: removed the mime_type and file_magic
      	utilities added to GimpPlugInProcedure.
      
      	* app/actions/file-commands.c
      	* app/actions/plug-in-actions.[ch]
      	* app/actions/plug-in-commands.[ch]
      	* app/core/gimp-gui.[ch]
      	* app/core/gimp.[ch]
      	* app/core/gimpimage.[ch]
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-save-dialog.c
      	* app/dialogs/print-size-dialog.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/file/file-utils.[ch]
      	* app/gui/gui-vtable.c
      	* app/menus/plug-in-menus.[ch]
      	* app/plug-in/plug-in-def.[ch]
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-in-run.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins-query.c
      	* app/widgets/gimpactiongroup.[ch]
      	* app/widgets/gimpdnd-xds.c
      	* app/widgets/gimpfiledialog.[ch]
      	* app/widgets/gimpfileprocview.[ch]
      	* app/widgets/gimppluginaction.[ch]
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed addordingly.
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
      086d0b63
  15. 24 Mar, 2006 3 commits
    • Michael Natterer's avatar
      tools/pdbgen/pdb/brush.pdb tools/pdbgen/pdb/brushes.pdb · 0de4f680
      Michael Natterer authored
      2006-03-25  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/context.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/gradient.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/plug_in.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb
      	* tools/pdbgen/pdb/text_tool.pdb: removed all ':' before and all
      	'()' around %%desc%%.
      
      	* tools/pdbgen/app.pl: add () to int32, float and boolean
      	descriptions automatically. They all look the same now.
      
      	* tools/pdbgen/lib.pl: tweaked regex so %%desc%% doesn't appear in
      	libgimp API docs.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/context_cmds.c
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* libgimp/gimpedit_pdb.c
      	* libgimp/gimpplugin_pdb.c: regenerated.
      0de4f680
    • Michael Natterer's avatar
      tools/pdbgen/pdb/channel.pdb tools/pdbgen/pdb/color.pdb · 30fb7c01
      Michael Natterer authored
      2006-03-24  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/drawable_transform.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb: replace '<' by '<=' in all
      	int32 ranges so they specify min and max values.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/drawable_transform_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/procedural_db_cmds.c: regenerated.
      30fb7c01
    • Michael Natterer's avatar
      tools/pdbgen/pdb/brush.pdb tools/pdbgen/pdb/brushes.pdb · 328345dc
      Michael Natterer authored
      2006-03-24  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/drawable_transform.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/floating_sel.pdb
      	* tools/pdbgen/pdb/gradient.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/palettes.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb
      	* tools/pdbgen/pdb/undo.pdb
      	* tools/pdbgen/pdb/vectors.pdb: replaced 'True', 'true' and
      	'non-zero' by 'TRUE' where appropriate. Added %%desc%% to enum arg
      	descriptions where missing. Get object names using
      	gimp_object_get_name(). Set 'success' more consistently. Removed
      	{ } from all enum arg descriptions...
      
      	* tools/pdbgen/app.pl (make_arg_recs): ...and add the { }
      	generically here. Removed some code that replaced the ',' by 'or'
      	for enums without { } so all enums are now documented the same.
      
      	* app/pdb/<some>_cmds.c
      	* libgimp/<some>_pdb.c: regenerated.
      328345dc
  16. 23 Mar, 2006 1 commit
    • Michael Natterer's avatar
      removed std_image_arg(), std_antialias_arg() and std_orientation_enum(). · cfa08678
      Michael Natterer authored
      2006-03-23  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/stddefs.pdb: removed std_image_arg(),
      	std_antialias_arg() and std_orientation_enum().
      
      	* tools/pdbgen/pdb/*.pdb: changed accordingly. Did a global
      	s/gimage/image/. Some more cleanup.
      
      	* tools/pdbgen/pdb/grid.pdb
      	* tools/pdbgen/pdb/guides.pdb: removed utility functions.
      
      	* tools/pdbgen/pdb/vectors.pdb: reordered procedures. Removed
      	obsolete procedure.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/convert_cmds.c
      	* app/pdb/display_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/fileops_cmds.c
      	* app/pdb/grid_cmds.c
      	* app/pdb/guides_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/paths_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/undo_cmds.c
      	* app/pdb/vectors_cmds.c
      	* libgimp/gimpdrawable_pdb.c
      	* libgimp/gimpimage_pdb.[ch]
      	* libgimp/gimpvectors_pdb.[ch]: regenerated.
      cfa08678
  17. 22 Mar, 2006 1 commit
    • Michael Natterer's avatar
      export GimpBrushGeneratedShape to the PDB. · 2368a6a3
      Michael Natterer authored
      2006-03-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.h: export GimpBrushGeneratedShape to the PDB.
      
      	* tools/pdbgen/pdb/brush.pdb: use it instead of int32.
      
      	* libgimp/gimp.def: add gimp_brush_generated_shape_get_type().
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/floating_sel.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/fonts.pdb
      	* tools/pdbgen/pdb/gimprc.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/message.pdb
      	* tools/pdbgen/pdb/misc.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/plug_in.pdb
      	* tools/pdbgen/pdb/text_tool.pdb: more perl/C code separation,
      	removed some more utility functions, cleanup.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/display_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/fonts_cmds.c
      	* app/pdb/gimprc_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/palettes_cmds.c
      	* app/pdb/paths_cmds.c
      	* app/pdb/patterns_cmds.c
      	* tools/pdbgen/enums.pl
      	* libgimp/gimpbrush_pdb.[ch]
      	* libgimp/gimpenums.c.tail
      	* libgimp/gimpenums.h: regenerated.
      2368a6a3
  18. 18 Mar, 2006 1 commit
  19. 15 Mar, 2006 2 commits
    • Michael Natterer's avatar
      define init values for all pdb types. · 04bf6d04
      Michael Natterer authored
      2006-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb.pl: define init values for all pdb types.
      
      	* tools/pdbgen/app.pl: unconditionally initialize all return
      	values, and no parameter.
      
      	* tools/pdbgen/pdb/*.pdb: removed init => 1 from all arguments
      	and return values.
      
      	* app/pdb/*_cmds.c: regenerated.
      04bf6d04
    • Michael Natterer's avatar
      tools/pdbgen/pdb/context.pdb tools/pdbgen/pdb/convert.pdb · 82c8729d
      Michael Natterer authored
      2006-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/context.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gimprc.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/message.pdb
      	* tools/pdbgen/pdb/misc.pdb
      	* tools/pdbgen/pdb/paths.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/undo.pdb
      	* tools/pdbgen/pdb/unit.pdb: get rid of much more alias => 'foo'.
      	Even more cleanup.
      
      	* app/pdb/context_cmds.c
      	* app/pdb/convert_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* app/pdb/fileops_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/guides_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/misc_cmds.c
      	* app/pdb/paths_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/undo_cmds.c
      	* app/pdb/unit_cmds.c
      	* libgimp/gimpdrawable_pdb.[ch]
      	* libgimp/gimpimage_pdb.[ch]: regenerated.
      82c8729d
  20. 14 Mar, 2006 1 commit
    • Michael Natterer's avatar
      remove lots of perl crack: - create almost all parameter arrays manually · 2ff56f8d
      Michael Natterer authored
      2006-03-14  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/*.pdb: remove lots of perl crack:
      	- create almost	all parameter arrays manually instead of
      	  generating them from utility functions
      	- removed lots of other utility functions
      	- moved variable declarations into the enclosed code snippets
      	  where possible
      	- some cleanup and API doc fixes
      
      	* tools/pdbgen/stddefs.pdb: added some perl crack:
      	define utility functions for all contributors which own more than
      	some functions, so they can change their names and email addresses
      	at a central place.
      
      	* app/pdb/[many].c: regenerated.
      
      	* libgimp/gimpcolor_pdb.c
      	* libgimp/gimpdrawabletransform_pdb.c
      	* libgimp/gimptransformtools_pdb.c
      	* libgimp/gimpvectors_pdb.c: ditto. Changed affect only API docs.
      2ff56f8d
  21. 11 Jan, 2006 2 commits
  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. 04 May, 2005 1 commit
    • Michael Natterer's avatar
      new function which finds a proc_def in a GSList by its procedure name. · 4f2e5afc
      Michael Natterer authored
      2005-05-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-proc-def.[ch] (plug_in_proc_def_find): new
      	function which finds a proc_def in a GSList by its procedure name.
      
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-ins.c
      	* tools/pdbgen/pdb/plug_in.pdb: use it instead of iterating and
      	comparing manually.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      
      	* app/plug-in/plug-in-def.c: minor cleanups.
      4f2e5afc
  24. 03 May, 2005 1 commit
    • Michael Natterer's avatar
      new function. · e103a880
      Michael Natterer authored
      2005-05-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-proc-def.[ch] (plug_in_proc_def_set_icon):
      	new function.
      
      	* tools/pdbgen/pdb/plug_in.pdb: removed the same code here and use
      	the new function.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      e103a880
  25. 05 Apr, 2005 2 commits
  26. 24 Mar, 2005 1 commit
    • Michael Natterer's avatar
      Added API to explicitly register dynamic menu items hierarchies. Fixes bug · 0a5ce16b
      Michael Natterer authored
      2005-03-24  Michael Natterer  <mitch@gimp.org>
      
      	Added API to explicitly register dynamic menu items hierarchies.
      	Fixes bug #170623.
      
      	* app/core/gimp.h: added "GSList *plug_in_menu_branches".
      
      	* app/plug-in/plug-in-types.h
      
      	* app/plug-in/plug-ins.[ch]: added API to register plug-in menu
      	branches, just as for locale and help domans. Cleaned up handling
      	of locale and help domains.
      
      	(plug_ins_exit): free the registered menu branches.
      
      	* app/actions/plug-in-actions.[ch] (plug_in_actions_add_branch):
      	new function to explicitly add a menu branch action.
      
      	(plug_in_actions_setup): add the registered menu branches to each
      	new action group.
      
      	(plug_in_actions_build_path): always strip the untranslated menu
      	path from underlines before using it as hash table key or action
      	name.
      
      	* app/menus/plug-in-menus.c (plug_in_menus_add_proc): changed
      	accordingly: strip underlines from untranslated menu paths before
      	passing them to plug_in_menus_build_path().
      
      	* app/core/gimp-gui.[ch]: added gimp_menus_create_branch() plus
      	vtable entry to access the new stuff from the core. Renamed the
      	functions desling with items from gimp_foo_entry() to
      	gimp_foo_item().
      
      	* app/gui/gui-vtable.c: implement create_branch() and add the
      	branch action to all existing "plug-in" action groups. Note that
      	we don't need to create any menus because that happens implicitly
      	when adding menu items.
      
      	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_branch_register): new
      	PDB wrapper to access branch registering from plug-ins.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/plug_in_cmds.c
      	* libgimp/gimpplugin_pdb.[ch]: regenerated.
      
      	* libgimp/gimp.def: changed accordingly.
      
      	* plug-ins/script-fu/script-fu-scripts.c (script_fu_find_scripts):
      	register the menu branches for all included scripts.
      0a5ce16b
  27. 18 Nov, 2004 1 commit
    • Michael Natterer's avatar
      The following fixes have no visible effect because nobody uses · b8344d51
      Michael Natterer authored
      2004-11-18  Michael Natterer  <mitch@gimp.org>
      
      	The following fixes have no visible effect because nobody
      	uses gimp_plugin_menu_register() on temp_procs yet:
      
      	* app/actions/plug-in-actions.[ch]: added
      	plug_in_actions_add_path() which just adds the actions needed for
      	a given menu math, but not the procedure action itself.
      
      	* app/gui/gui-vtable.c (gui_menus_create_entry): create the
      	menu_path's actions using above function so adding of submenus to
      	existing ui managers works.
      
      	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_register_invoker):
      	don't add a menu if "no_interface" is TRUE.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      
      	* plug-ins/script-fu/script-fu-scripts.c: pass untranslated
      	menu_paths to the core, not translated ones. Don't store the
      	scripts directly in the "script_list" tree but use a list of
      	scripts per key because there can be identical keys for different
      	scripts now. Fixed sorting of menu entries and menus.
      b8344d51
  28. 17 Nov, 2004 1 commit
    • Michael Natterer's avatar
      Made plug-in menu registration work the same way for ordinary and · d871be74
      Michael Natterer authored
      2004-11-17  Michael Natterer  <mitch@gimp.org>
      
      	Made plug-in menu registration work the same way for ordinary and
      	temporary procedures. Addresses bug #158117.
      
      	* app/core/gimp-gui.[ch]: added "const gchar *menu_path" to
      	gimp_menus_create_entry().
      
      	* app/gui/gui-vtable.c (gui_menus_create_entry): if menu_path is
      	NULL, behave as before and create an action and its menu entries
      	for all the procedure's menu_paths. If it is non-NULL, skip action
      	creation and create a menu entry just for that path.
      
      	* app/plug-in/plug-ins.c (plug_ins_temp_proc_def_add): call
      	gimp_menus_create_entry() with a NULL menu path and call it if
      	proc_def->menu_paths *or* proc_def->menu_label is non-NULL, so
      	it creates at least the procedure's action, even if it has
      	no menu_path (yet).
      
      	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_register): check both
      	the list of procs and temp_procs when trying to register the
      	entry.  Allow ordinary procedures and extensions to install stuff
      	at query() and init() time and allow temp_procs to install stuff
      	at any time.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      d871be74
  29. 30 Sep, 2004 1 commit
    • Michael Natterer's avatar
      Cleaned up the DB Browser and Plugin Details code and GUI. It's not · 95c903ec
      Michael Natterer authored
      2004-09-30  Michael Natterer  <mitch@gimp.org>
      
      	Cleaned up the DB Browser and Plugin Details code and GUI.  It's
      	not perfect yet but at least they don't look like crap any more.
      	Fixes bug #131490.
      
      	* plug-ins/common/plugin-defs.pl
      	* plug-ins/common/plugindetails.c: removed this plugin.
      
      	* plug-ins/common/.cvsignore
      	* plug-ins/common/Makefile.am: regenerated.
      
      	* plug-ins/dbbrowser/Makefile.am
      	* plug-ins/dbbrowser/dbbrowser.c
      	* plug-ins/dbbrowser/dbbrowser_utils.[ch]: removed these files.
      
      	* plug-ins/dbbrowser/gimpprocbrowser.[ch]
      	* plug-ins/dbbrowser/gimpprocview.[ch]: new cleaned up files.
      
      	* plug-ins/dbbrowser/plugin-browser.c: the former plugindetails.
      	* plug-ins/dbbrowser/procedure-browser.c: the former dbbrowser.
      
      	* plug-ins/script-fu/Makefile.am: link against the new library
      	libgimpprocbrowser.a
      
      	* plug-ins/script-fu/script-fu-console.c: changed #includes
      	accordingly. Monir cleanup.
      
      	* tools/pdbgen/pdb/plug_in.pdb (plugins_query): fixed menu_path
      	return value. Was broken since the plug-in menu registering
      	changes.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      95c903ec
  30. 22 Sep, 2004 1 commit
    • Michael Natterer's avatar
      app/plug-in/Makefile.am removed... ...and added with a new name. · 9ffc00be
      Michael Natterer authored
      2004-09-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-proc.[ch]: removed...
      	* app/plug-in/plug-in-proc-def.[ch]: ...and added with a new name.
      
      	* app/plug-in/plug-in-def.[ch]
      	* app/plug-in/plug-in-message.[ch]
      	* app/plug-in/plug-in-progress.[ch]
      	* app/plug-in/plug-in-rc.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins.[ch]
      	* app/actions/plug-in-actions.c
      	* app/actions/plug-in-commands.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/file/file-utils.[ch]
      	* app/gui/gui-vtable.c
      	* app/menus/plug-in-menus.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpfileprocview.c
      	* app/widgets/gimppluginaction.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly plus some
      	minor cosmetic cleanups.
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
      9ffc00be
  31. 27 Aug, 2004 1 commit
    • Michael Natterer's avatar
      Moved the gimp_progress_init() and gimp_progress_update() PDB functions to · d7f73e6f
      Michael Natterer authored
      2004-08-27  Michael Natterer  <mitch@gimp.org>
      
      	Moved the gimp_progress_init() and gimp_progress_update() PDB
      	functions to their own group because they don't belong to the
      	"Plug-In" namespace and will soon get more functions.
      
      	* tools/pdbgen/pdb/plug_in.pdb: removed the progress stuff...
      
      	* tools/pdbgen/pdb/progress.pdb: ...and added it here.
      
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl
      	* app/pdb/Makefile.am
      	* libgimp/Makefile.am: changed accordingly.
      
      	* libgimp/gimpprogress_pdb.[ch]: new generated files.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/plug_in_cmds.c
      	* libgimp/gimp_pdb.h
      	* libgimp/gimpplugin_pdb.[ch]: regenerated.
      d7f73e6f
  32. 16 Jul, 2004 1 commit
    • Michael Natterer's avatar
      include "libgimpbase/gimpbase.h" instead of "libgimpbase/gimpparasite.h" · a456ac9b
      Michael Natterer authored
      2004-07-16  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb.pl: include "libgimpbase/gimpbase.h" instead of
      	"libgimpbase/gimpparasite.h" for getting the GimpParasite type.
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/image.pdb: removed redundant #includes.
      
      	* tools/pdbgen/pdb/plug_in.pdb: standardized "success" logic.
      	Consistetly fail if there is no currently queried plugin.
      
      	* app/pdb/*.c: regenerated.
      a456ac9b
  33. 20 May, 2004 1 commit
    • Manish Singh's avatar
      remove unnecessary G_OBJECT() casts. · f5fd7288
      Manish Singh authored
      2004-05-19  Manish Singh  <yosh@gimp.org>
      
              * app/actions/file-actions.c: remove unnecessary G_OBJECT() casts.
      
              * tools/pdbgen/pdb/help.pdb
              * tools/pdbgen/pdb/image.pdb
              * tools/pdbgen/pdb/paths.pdb
              * tools/pdbgen/pdb/plug_in.pdb: a bit of quoting clean up.
      
              * tools/pdbgen/pdb/plug_in.pdb: handle icon_data_length properly.
      
              * app/pdb/plug_in_cmds.c: regenerated.
      f5fd7288