1. 10 Apr, 2006 1 commit
    • Sven Neumann's avatar
      take const arrays of action entries. · 12920b5a
      Sven Neumann authored
      2006-04-10  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpactiongroup.[ch]: take const arrays of action
      	entries.
      
      	* app/actions/*-actions.c: declare action arrays as const.
      12920b5a
  2. 09 Apr, 2006 3 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
    • Michael Natterer's avatar
      app/plug-in/Makefile.am app/plug-in/plug-ins-help.[ch] new files managing · 618202c3
      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.
      618202c3
  3. 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
    • Sven Neumann's avatar
      app/actions/tool-options-commands.c app/core/gimp.c · 5fc9bd40
      Sven Neumann authored
      2006-04-07  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/tool-options-commands.c
      	* app/core/gimp.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpcontext.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpgradient-load.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/core/gimplist.c
      	* app/core/gimppalette.c
      	* app/dialogs/template-options-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-open.c
      	* app/paint/gimp-paint.c
      	* app/widgets/gimpdataeditor.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimptoolbox-dnd.c: use gimp_object_set_static_name()
      	and gimp_object_take_name() where appropriate.
      5fc9bd40
  4. 06 Apr, 2006 2 commits
    • Sven Neumann's avatar
      app/core/gimpcontext.c app/core/gimpimage.c app/paint-funcs/paint-funcs.c · 37da5669
      Sven Neumann authored
      2006-04-06  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpcontext.c
      	* app/core/gimpimage.c
      	* app/paint-funcs/paint-funcs.c
      	* app/widgets/gimpcontrollerkeyboard.c
      	* app/widgets/gimpcontrollerwheel.c
      	* app/widgets/gimpcursor.c
      	* app/widgets/gimpdockable.c
      	* app/widgets/gimpdockbook.c
      	* app/widgets/gimpdockseparator.c
      	* libgimp/gimpbrushselect.c
      	* libgimp/gimpfontselect.c
      	* libgimp/gimpgradientselect.c
      	* libgimp/gimppaletteselect.c
      	* libgimp/gimppatternselect.c
      	* libgimpwidgets/gimpchainbutton.c
      	* libgimpwidgets/gimpcolorscales.c
      	* libgimpwidgets/gimpcolorselect.c
      	* libgimpwidgets/gimppickbutton.c
      	* libgimpwidgets/gimpstock.c: sprinkled some const qualifiers.
      37da5669
    • 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
  5. 05 Apr, 2006 2 commits
    • Sven Neumann's avatar
      app/dialogs/preferences-dialog.c app/widgets/gimpimagepropview.c · 8f57c23d
      Sven Neumann authored
      2006-04-05   Sven Neumann  <sven@gimp.org>
      
      	* app/dialogs/preferences-dialog.c
      	* app/widgets/gimpimagepropview.c
      	* app/widgets/gimpsizebox.c
      	* app/widgets/gimptemplateeditor.c: replaced "dpi" with "ppi"
      	(bug #326718).
      8f57c23d
    • 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
  6. 04 Apr, 2006 3 commits
    • Michael Natterer's avatar
      app/pdb/Makefile.am app/pdb/procedural_db.[ch] removed... · a184c909
      Michael Natterer authored
      2006-04-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/Makefile.am
      	* app/pdb/procedural_db.[ch]
      	* app/pdb/procedural-db-query.[ch]: removed...
      
      	* app/pdb/gimp-pdb.[ch]
      	* app/pdb/gimp-pdb-query.[ch]: ...and added namespacefied.
      
      	* app/batch.c
      	* app/actions/vectors-commands.c
      	* app/core/gimp.c
      	* app/core/gimppdbprogress.c
      	* app/dialogs/about-dialog.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/file/file-utils.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-params.c
      	* app/plug-in/plug-in-proc-def.c
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-ins-query.c
      	* app/plug-in/plug-ins.c
      	* app/widgets/gimpbrushselect.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpfontselect.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppaletteselect.c
      	* app/widgets/gimppatternselect.c
      	* app/widgets/gimppdbdialog.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb: changed accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      a184c909
    • Michael Natterer's avatar
      use the correct API to unset the tree view's drop indicator. Apparently · 2abc723e
      Michael Natterer authored
      2006-04-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcontainertreeview-dnd.c
      	(gimp_container_tree_view_drag_leave)
      	(gimp_container_tree_view_drag_motion): use the correct API to
      	unset the tree view's drop indicator. Apparently using the wrong
      	API has stopped working due to changes in GtkTreeView...
      2abc723e
    • Michael Natterer's avatar
      app/pdb/pdb-types.h removed struct GimpArgument, struct GimpArgumentSpec, · 17aada11
      Michael Natterer authored
      2006-04-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/pdb-types.h
      	* app/pdb/gimpargument.[ch]: removed struct GimpArgument, struct
      	GimpArgumentSpec, gimp_argument_init() and
      	gimp_arguments_destroy().
      
      	* app/pdb/gimpprocedure.h (struct GimpProcedure): use arrays of
      	GParamSpec* for kepping proc inargs/outargs.
      
      	* app/pdb/gimpprocedure.[ch]
      	* app/pdb/procedural_db.[ch]
      	* app/plug-in/plug-in-params.[ch]
      	* app/plug-in/plug-in-proc-frame.[ch]
      	* app/plug-in/plug-in-run.[ch]: use GValueArrays for procedure
      	arguments and return values. Removed all n_args and n_return_vals
      	parameters because GValueArrays know their length.
      
      	* app/batch.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimppdbprogress.c
      	* app/dialogs/about-dialog.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/pdb/procedural-db-query.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-ins.c
      	* app/widgets/gimpbrushselect.c
      	* app/widgets/gimpfontselect.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppaletteselect.c
      	* app/widgets/gimppatternselect.c
      	* app/widgets/gimppdbdialog.[ch]
      	* app/xcf/xcf.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb: changed accordingly. Also
      	removed #include "gimpargument.h" from most files.
      
      	* app/pdb/*_cmds.c: regenerated.
      17aada11
  7. 03 Apr, 2006 1 commit
    • Michael Natterer's avatar
      added a shitload of new GTypes and corresponding GParamSpecs to use them · 070a3625
      Michael Natterer authored
      2006-04-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparamspecs.[ch]: added a shitload of new GTypes and
      	corresponding GParamSpecs to use them as PDB arguments.
      	Each GimpPDBArgType has one or more corresponding GTypes in the
      	core now.
      
      	* app/pdb/gimpargument.[ch] (struct GimpArgument)
      	(struct GimpArgumentSpec): removed "value" member because the
      	GValue's/GParamSpec's GType carries just as much information now.
      
      	(gimp_argument_type_to_pdb_arg_type): new function which maps
      	GTypes to GimpPDBArgType.
      
      	(gimp_pdb_arg_type_to_string): formerly known as
      	procedural_db_type_name().
      
      	* app/pdb/gimpprocedure.[ch]
      	* app/pdb/procedural_db.[ch]: completely switch to GValue. Use the
      	new GParamSpecs for procedure arguments. GimpPDBArgType is only
      	used for adding compat args/values of plug-in procedures.
      
      	(procedural_db_run_proc): the va_list expects a sequence of
      	(GType, value, GType, value, ..., G_TYPE_NONE) now.
      
      	* app/plug-in/plug-in-params.[ch]: changed accordingly.
      
      	(plug_in_param_defs_check): removed this function.
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_install): use
      	plug_in_proc_args_check() instead and initialize the GimpProcedure
      	before doing so.
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb.pl: use the new param spec types and their
      	utility functions. Changed argument/value registration
      	accordingly.
      
      	* app/pdb/procedural-db-query.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimppdbprogress.c
      	* app/dialogs/about-dialog.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-ins.c
      	* app/widgets/gimpbrushselect.c
      	* app/widgets/gimpfontselect.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppaletteselect.c
      	* app/widgets/gimppatternselect.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb: changed accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      070a3625
  8. 01 Apr, 2006 1 commit
    • Michael Natterer's avatar
      added struct GimpArray which can keep static or allocated data. Added · d05d512d
      Michael Natterer authored
      2006-04-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparamspecs.[ch]: added struct GimpArray which can
      	keep static or allocated data. Added boxed types GIMP_TYPE_ARRAY
      	and GIMP_TYPE_STRING_ARRAY. Added GParamSpecs for PDB int32,
      	int16, int8, float and string arrays. Added functions to get, dup,
      	set and set_static the various arrays from/to GValues.
      
      	* app/pdb/gimpprocedure.c
      	* app/pdb/procedural_db.c
      	* app/plug-in/plug-in-params.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb.pl: use the new param pspecs and gimp_value
      	functions to keep arrays in GimpArguments.
      
      	* app/pdb/gimpargument.[ch] (gimp_arguments_destroy): removed
      	parameter "gboolean full_destroy". It's not needed any longer
      	because the GValues fully memory-manage all their data now.
      
      	* app/batch.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimppdbprogress.c
      	* app/dialogs/about-dialog.c
      	* app/dialogs/print-size-dialog.c
      	* app/dialogs/resize-dialog.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-run.c
      	* app/plug-in/plug-ins.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppdbdialog.c
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/buffer_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/fileops_cmds.c
      	* app/pdb/fonts_cmds.c
      	* app/pdb/gimpargument.c
      	* app/pdb/gimpargument.h
      	* app/pdb/gimpprocedure.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/palettes_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/paths_cmds.c
      	* app/pdb/pattern_cmds.c
      	* app/pdb/patterns_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/procedural_db.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/vectors_cmds.c: regenerated.
      
      	... and ported everything to perl btw...
      d05d512d
  9. 31 Mar, 2006 4 commits
    • Michael Natterer's avatar
      app/pdb/pdb-types.h renamed struct Argument to GimpArgument and struct · 03c28ec7
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/pdb-types.h
      	* app/pdb/gimpargument.h: renamed struct Argument to GimpArgument
      	and struct ProcArg to GimpArgumentSpec.
      
      	* app/batch.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimppdbprogress.c
      	* app/dialogs/about-dialog.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/pdb/gimpargument.c
      	* app/pdb/gimpprocedure.[ch]
      	* app/pdb/procedural-db-query.c
      	* app/pdb/procedural_db.[ch]
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-params.[ch]
      	* app/plug-in/plug-in-proc-frame.h
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-in-run.[ch]
      	* app/plug-in/plug-ins.c
      	* app/widgets/gimpbrushselect.c
      	* app/widgets/gimpfontselect.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppaletteselect.c
      	* app/widgets/gimppatternselect.c
      	* app/widgets/gimppdbdialog.[ch]
      	* app/xcf/xcf.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb: changed accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      03c28ec7
    • Michael Natterer's avatar
      app/pdb/pdb-types.h renamed struct ProcRecord to GimpProcedure. Added · fe90ae76
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/pdb-types.h
      	* app/pdb/gimpprocedure.h: renamed struct ProcRecord to
      	GimpProcedure. Added GIMP_IS_PROCEDURE() which checks for != NULL.
      
      	* app/pdb/gimpprocedure.c
      	* app/pdb/procedural-db-query.c
      	* app/pdb/procedural_db.[ch]
      	* app/batch.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/file/file-open.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-proc-def.h
      	* app/plug-in/plug-in-proc-frame.[ch]
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-in-run.[ch]
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins-query.c
      	* app/plug-in/plug-ins.[ch]
      	* app/widgets/gimphelp.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/app.pl: changed accordingly. Renamed 'proc_rec' and
      	similarily named variables and parameters to 'procedure'.
      
      	* tools/pdbgen/pdb/procedural_db.pdb: changed 'procedure'
      	parameters to 'procedure_name'.
      
      	* app/pdb/*_cmds.c
      	* libgimp/gimpproceduraldb_pdb.[ch]: regenerated.
      fe90ae76
    • Michael Natterer's avatar
      always set dockable->blurb to NULL, also if its memory is shared with · 87e7cb1f
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdockable.c (gimp_dockable_destroy): always set
      	dockable->blurb to NULL, also if its memory is shared with
      	dockable->name.
      87e7cb1f
    • Michael Natterer's avatar
      app/pdb/Makefile.am new files containing the functions operating on *one* · 1dac2783
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/Makefile.am
      	* app/pdb/gimpprocedure.[ch]: new files containing the functions
      	operating on *one* procedure. Factored out of procedural_db.[ch]
      	and renamed to gimp_procedure_foo().
      
      	* app/pdb/procedural_db.[ch]: removed them here.
      
      	* app/pdb/procedural-db-query.c
      	* app/batch.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimppdbprogress.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-proc-def.[ch]
      	* 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-ins.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppdbdialog.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/app.pl: changed #includes and function calls
      	accordingly. No logic changed.
      
      	* app/pdb/*_cmds.c: regenerated.
      1dac2783
  10. 30 Mar, 2006 1 commit
    • Michael Natterer's avatar
      don't memset(0) the array of return values if the procedure didn't · 4b24ca37
      Michael Natterer authored
      2006-03-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/procedural_db.c (procedural_db_execute_proc): don't
      	memset(0) the array of return values if the procedure didn't
      	succeed. GValues don't like to be treated like that and I don't
      	understand what the memsetting is good for. It just looks like a
      	very bad hack.
      
      	* app/file/file-open.c: additionally, don't access return_vals[>0]
      	unless the procedure returned successfully.
      
      	* app/core/gimppdbprogress.c
      	* app/widgets/gimppdbdialog.c: procedural_db_run_proc() always
      	returns non-NULL, no need to check for it.
      4b24ca37
  11. 29 Mar, 2006 1 commit
    • Michael Natterer's avatar
      replace the value union by a GValue. · afd88f0b
      Michael Natterer authored
      2006-03-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/procedural_db.[ch] (struct Argument): replace the value
      	union by a GValue.
      
      	(procedural_db_argument_init)
      	(procedural_db_compat_arg_init): new functions to initialize
      	an Argument. They call g_value_init() on the Argument's value.
      
      	(procedural_db_arguments)
      	(procedural_db_return_values): initialize the returned Argument
      	arrays so their GValues are ready to use. Allow to get the
      	(unsuccessful) return values of a NULL ProcRecord.
      
      	(procedural_db_destroy_args): g_value_unset() the values. Added a
      	"gboolean full_destroy" parameter. Its only effect is to destroy
      	PDB arrays, everything else is nicely memory managed by GValue.
      
      	(procedural_db_execute)
      	(procedural_db_run_proc): do GValue stuff. Added n_args and
      	n_return_vals parameters to execute().
      
      	(procedural_db_execute_proc): private function to execute a
      	procedure. Validates the passed in arguments using the registered
      	GParamSpecs before passing them to the resp. exec method.
      
      	* app/plug-in/plug-in-params.[ch] (plug_in_params_to_args): needs
      	an array of ProcArgs now in order to initialize the Arguments'
      	GValues correctly. Passing NULL ProcArgs uses
      	procedural_db_compat_arg_init(), so procedures (plug-ins)
      	returning more values than expected work.
      
      	(plug_in_args_to_params): do GValue stuff here too.
      
      	(plug_in_args_destroy): removed this function,
      	procedural_db_destroy_args() does the same now.
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_run):
      	simplified quite a bit because everything returns n_return_values
      	now. Call plug_in_params_to_args() only of the procedure was found.
      
      	(plug_in_handle_proc_return_priv): pass ProcRecs to
      	plug_in_params_to_args().
      
      	* app/batch.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimppdbprogress.c
      	* app/dialogs/about-dialog.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/plug-in/plug-ins.c
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-run.[ch]
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppdbdialog.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly: don't
      	g_new/g_free Argument arrays, always use procedural_db_foo()
      	functions. Use GValue functions to get/set Arguments.
      
      	* tools/pdbgen/pdb.pl: added get_value_func and set_value_func to
      	all PDB types. Removed id_func, id_ret_func and check_func. Added
      	flags which indicated that a type is an ID. Removed unused utility
      	functions.
      
      	* tools/pdbgen/lib.pl: use the flag instead of looking at
      	functions and value types.
      
      	* tools/pdbgen/app.pl: use the get_value_func and set_value_func
      	to marshal inargs and outargs. Removed all checks performed on
      	inargs because that's done by GParamSpec validation now. Added the
      	missing bits to register excluded values with GimpParamSpecEnum.
      
      	* app/pdb/*_cmds.c: regenerated.
      afd88f0b
  12. 28 Mar, 2006 3 commits
  13. 27 Mar, 2006 1 commit
    • Michael Natterer's avatar
      renamed procedural_db_return_args() to procedural_db_return_values() and · 169faefb
      Michael Natterer authored
      2006-03-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/procedural_db.[ch]: renamed procedural_db_return_args()
      	to procedural_db_return_values() and added
      	procedural_db_arguments(), which returns a newly allocated,
      	initialized array of the procedure's arguments.
      
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/plug-in/plug-in-run.c
      	* app/widgets/gimphelp.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly, some cleanup.
      
      	* app/pdb/*_cmds.c: regenerated.
      169faefb
  14. 15 Mar, 2006 1 commit
  15. 10 Mar, 2006 2 commits
    • Sven Neumann's avatar
      factored out some code to a utility function. · 872d9506
      Sven Neumann authored
      2006-03-10  Sven Neumann  <ven@gimp.org>
      
      	* app/widgets/gimpaction.c: factored out some code to a utility
      	function.
      
      	* app/config/gimpguiconfig.[ch]
      	* app/config/gimprc-blurbs.h
      	* app/dialogs/preferences-dialog.c
      	* app/gui/gui.c
      	* app/plug-in/plug-in-run.c
      	* libgimp/gimp.c
      	* libgimpbase/gimpprotocol.[ch]: renamed tool_tips to tooltips in
      	variables and in the gimprc.
      
      	* app/config/gimpbaseconfig.[ch]: removed stingy_memory_use from
      	the GimpBaseConfig struct.
      872d9506
    • Michael Natterer's avatar
      connect to the menu items' "select" and "deselect" signals instead of · a8cf1cfa
      Michael Natterer authored
      2006-03-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpuimanager.c: connect to the menu items' "select"
      	and "deselect" signals instead of "enter-notify-event" and
      	"leave-notify-event", so tooltips work with keynav.
      a8cf1cfa
  16. 09 Mar, 2006 1 commit
    • Michael Natterer's avatar
      added "show-tooltip" and "hide-tooltip" signals. Connect to each menu · 6a01bb23
      Michael Natterer authored
      2006-03-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpuimanager.[ch]: added "show-tooltip" and
      	"hide-tooltip" signals. Connect to each menu item's
      	enter-notify-event and leave-notify-event. On enter, emit
      	show-tooltip, on leave emit hide-tooltip.
      
      	* app/display/gimpdisplayshell.c: connect to the menubar ui
      	manager's show-tooltip and hide-tooltip signals and show the tip
      	in the display's status bar.
      6a01bb23
  17. 04 Mar, 2006 2 commits
  18. 03 Mar, 2006 2 commits
    • Sven Neumann's avatar
      app/dialogs/vectors-import-dialog.c (vectors_import_dialog_new) fixed · e09c3f2d
      Sven Neumann authored
      2006-03-03  Sven Neumann  <sven@gimp.org>
      
      	* app/dialogs/vectors-import-dialog.c (vectors_import_dialog_new)
      	* app/widgets/gimpfiledialog.c (gimp_file_dialog_add_filters):
      	fixed capitalization of filter names.
      e09c3f2d
    • Sven Neumann's avatar
      app/dialogs/file-open-dialog.c app/display/gimpdisplayshell-dnd.c · 017278c1
      Sven Neumann authored
      2006-03-03  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/fileops.pdb:
      	* app/dialogs/file-open-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-open.[ch]
      	* app/widgets/gimplayertreeview.c: pass the selected load procedure
      	to file_open_layer() or NULL if none is selected. Fixes bug #333207.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      017278c1
  19. 28 Feb, 2006 1 commit
    • Sven Neumann's avatar
      app/core/gimpbrush.c app/core/gimpbuffer.c app/core/gimpimagefile.c · 5e7ce540
      Sven Neumann authored
      2006-02-28  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpimagefile.c
      	* app/core/gimppattern.c
      	* app/dialogs/preferences-dialog.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimprectangletool.c
      	* app/tools/gimprectselecttool.c
      	* app/widgets/gimpimagepropview.c
      	* app/widgets/gimpsizebox.c
      	* app/widgets/gimptemplateeditor.c
      	* plug-ins/imagemap/imap_statusbar.c: use U+00D7 MULTIPLICATION SIGN
      	instead of x when displaying sizes.
      5e7ce540
  20. 20 Feb, 2006 1 commit
    • Sven Neumann's avatar
      tweaked drawing of shadows. · 5c7a5a50
      Sven Neumann authored
      2006-02-20  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpfgbgview.c (gimp_fg_bg_view_expose): tweaked
      	drawing of shadows.
      5c7a5a50
  21. 15 Feb, 2006 1 commit
    • Sven Neumann's avatar
      do not unset focus-on-map for all tool dialogs. · 3b857894
      Sven Neumann authored
      2006-02-15  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimptooldialog.c: do not unset focus-on-map for all
      	tool dialogs.
      
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpmeasuretool.c: explicitely do it here instead.
      3b857894
  22. 07 Feb, 2006 1 commit
  23. 26 Jan, 2006 1 commit
  24. 18 Jan, 2006 1 commit
    • Michael Natterer's avatar
      define GIMP_PARAM_STATIC_STRINGS which is G_PARAM_STATIC_NAME|NICK|BLURB. · e1ceed51
      Michael Natterer authored
      2006-01-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/config-types.c: define GIMP_PARAM_STATIC_STRINGS
      	which is G_PARAM_STATIC_NAME|NICK|BLURB. Also define
      	GIMP_PARAM_READABLE, _WRITABLE and _READWRITE which include
      	GIMP_PARAM_STATIC_STRINGS.
      
      	* app/*/*.c: use them for all object properties so their
      	strings are not copied.
      e1ceed51
  25. 17 Jan, 2006 1 commit