1. 26 Apr, 2007 1 commit
    • Michael Natterer's avatar
      tools/pdbgen/pdb/pattern.pdb tools/pdbgen/pdb/gradients.pdb · e8215c6d
      Michael Natterer authored
      2007-04-26  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/pattern.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/context.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb: some argument cleanup: use
      	"=> 1" instead of "=> '1'" for setting argument flags, also made
      	argument property order consistent so flags come before "desc".
      	Doesn't affect generated code.
      
      
      svn path=/trunk/; revision=22348
      e8215c6d
  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. 22 Apr, 2007 1 commit
    • Michael Natterer's avatar
      tools/pdbgen/pdb/brush.pdb (brush_rename) tools/pdbgen/pdb/gradient.pdb · 89329ada
      Michael Natterer authored
      2007-04-22  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brush.pdb (brush_rename)
      	* tools/pdbgen/pdb/gradient.pdb (gradient_rename)
      	* tools/pdbgen/pdb/palette.pdb (palette_rename): don't allow the
      	empty string as new name. Fixes bug #431845.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/palette_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=22301
      89329ada
  4. 09 Dec, 2006 1 commit
  5. 31 Oct, 2006 1 commit
    • Michael Natterer's avatar
      made private functions static. · cd5dbc77
      Michael Natterer authored
      2006-10-31  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/gradient.pdb: made private functions static.
      
      	* app/pdb/gradient_cmds.c: regenerated.
      cd5dbc77
  6. 09 Oct, 2006 2 commits
    • Michael Natterer's avatar
      app/actions/data-commands.c app/actions/documents-commands.c · 1ed8dd4f
      Michael Natterer authored
      2006-10-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/data-commands.c
      	* app/actions/documents-commands.c
      	* app/actions/drawable-commands.c
      	* app/actions/gradients-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/palettes-commands.c
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimp-contexts.c
      	* app/core/gimp-documents.c
      	* app/core/gimp-edit.c
      	* app/core/gimp-modules.c
      	* app/core/gimp-parasites.c
      	* app/core/gimp-templates.c
      	* app/core/gimp-units.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdatafactory.[ch]
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimagefile.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimppdbprogress.c
      	* app/core/gimpselection.c
      	* app/dialogs/palette-import-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/session.c
      	* app/gui/themes.c
      	* app/pdb/gimpprocedure.c
      	* app/plug-in/gimpplugin-message.c
      	* app/plug-in/gimpplugin.c
      	* app/plug-in/gimppluginmanager-file.c
      	* app/plug-in/gimppluginmanager.c
      	* app/text/gimptextlayer-xcf.c
      	* app/text/gimptextlayer.c
      	* app/widgets/gimpcontrollers.c
      	* app/widgets/gimpdataeditor.c
      	* app/widgets/gimpdevices.c
      	* app/widgets/gimpdnd-xds.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimpuimanager.c
      	* app/widgets/gimpvectorstreeview.c
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/palette.pdb: convert lots of g_message() to
      	gimp_message(). Make sure we never pass unknown strings (like
      	error->message) to printf-like functions directly; run them
      	thorugh "%s" instead. Don't translate some messages which should
      	never happen.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/palette_cmds.c: regenerated.
      1ed8dd4f
    • Michael Natterer's avatar
      Added message severities and make sure all messages are routed through a · f5afb754
      Michael Natterer authored
      2006-10-09  Michael Natterer  <mitch@gimp.org>
      
      	Added message severities and make sure all messages are routed
      	through a central function, so redirecting to the error console or
      	stderr work again:
      
      	* app/core/core-enums.[ch]: added enum GimpMessageSeverity { INFO,
      	WARNING, ERROR }.
      
      	* app/core/gimp.[ch] (gimp_message)
      	(gimp_message_valist): added severity parameter. Changed
      	"GimpProgress *progress" parameter to "GObject *handler", where
      	"handler" can be either a GimpProgress, a GtkWidget or NULL.
      
      	* app/core/gimp-gui.[ch] (gimp_show_message): ditto. Honor
      	--console-messages again. Always dispatch to the GUI message
      	handler first if it exists.
      
      	* app/gui/gui-message.[ch]: pass severity parameters around.
      
      	(gui_message_error_dialog): if "handler" is a progress, dispatch
      	the message to it first. If it is a widget (and *not* a progress),
      	use a GtkMessageDialog on top of that widget's toplevel. Fall
      	back to the usual GimpErrorDialog otherwise.
      
      	* app/core/gimpprogress.[ch] (gimp_progress_message): added
      	severity parameter. Also added boolean return value to the virtual
      	function so it can decide to fail if it can't handle the message.
      
      	* app/display/gimpdisplay.c: implement GimpProgress::message() and
      	redirect the message to GimpDisplayShell.
      
      	* app/display/gimpdisplayshell-progress.c: implement
      	GimpProgress::message() and redirect the message to GimpStatusbar
      	if it is not an error and if the status bar is visible.
      
      	* app/display/gimpstatusbar.[ch]: implement GimpProgress::message(),
      	but fail on messages that contain a newline. Show the right icons
      	for the message severities (work in progress).
      
      	* app/display/gimpdisplayshell.[ch]: removed
      	gimp_display_shell_message() and its _valist() variant.
      
      	* app/widgets/gimperrorconsole.[ch]: show the right icons for the
      	message severities.
      
      	* app/widgets/gimpthumbbox.c (gimp_thumb_box_progress_message):
      	return TRUE to swallow all messages.
      
      	* app/widgets/gimpwidgets-utils.[ch]: removed
      	gimp_show_message_dialog(). Added gimp_get_message_stock_id().
      
      	* app/errors.c
      	* app/actions/edit-commands.c
      	* app/actions/error-console-commands.c
      	* app/actions/file-commands.c
      	* app/actions/select-commands.c
      	* app/actions/text-editor-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimagefile.c
      	* app/dialogs/convert-dialog.c
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/dialogs/file-save-dialog.c
      	* app/dialogs/palette-import-dialog.c
      	* app/dialogs/stroke-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/pdb/gimppdb.c
      	* app/plug-in/gimpplugin.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimptool.c
      	* app/tools/gimpvectortool.c
      	* app/widgets/gimpactionview.c
      	* app/widgets/gimpcontrollerlist.c
      	* app/widgets/gimppdbdialog.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/message.pdb
      	* tools/pdbgen/pdb/palette.pdb: added severity parameter to
      	gimp_message() calls. Convert all calls to
      	gimp_show_message_dialog() and gimp_display_shell_message() to
      	gimp_message(). Also converted some more g_message() calls.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/palette_cmds.c: regenerated.
      f5afb754
  7. 01 Sep, 2006 1 commit
    • Simon Budig's avatar
      minor documentation fix · 1afd3556
      Simon Budig authored
      2006-09-01  Simon Budig  <simon@gimp.org>
      
      	* tools/pdbgen/pdb/gradient.pdb: minor documentation fix
      
      	* app/pdb/gradient_cmds.c
      	* libgimp/gimpgradient_pdb.c: regenerated
      1afd3556
  8. 29 Aug, 2006 1 commit
    • Michael Natterer's avatar
      Changed GimpViewable preview rendering to have a context to get · b53aa45a
      Michael Natterer authored
      2006-08-29  Michael Natterer  <mitch@gimp.org>
      
      	Changed GimpViewable preview rendering to have a context to get
      	FG/BG/whatever from. Use the context to enable dynamic FG/BG
      	colors in gradients. Fixes bug #127676 and bug #352214. Addresses
      	bug #128367 (doesn't fix it because there's no loading/saving and
      	no GUI yet).
      
      	* app/core/core-enums.[ch]: added enum GimpGradientColor to enable
      	specifying gradient colors in terms of foreground and background.
      
      	* app/core/gimpgradient.[ch]: added color_type members to the
      	GimpGradientSegment struct and honor them in
      	gimp_gradient_get_color_at(). Added GimpContext parameters to all
      	functions which finally call get_color_at().
      
      	* app/core/gimp-gradients.c: use the new method to implement the
      	builtin gradients.
      
      	* app/core/gimpviewable.[ch]: added GimpContext parameters to all
      	get_preview() and get_pixbuf() functions.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpdrawable-preview.[ch]
      	* app/core/gimpgradient.c
      	* app/core/gimpimage-preview.[ch]
      	* app/core/gimpimagefile.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimpundo.[ch]
      	* app/text/gimpfont.c
      	* app/vectors/gimpvectors-preview.[ch]: changed ::get_preview()
      	and ::get_pixbuf() implementations accordingly.
      
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimppalette-import.[ch]
      	* app/dialogs/dialogs-constructors.c
      	* app/dialogs/palette-import-dialog.c
      	* app/dialogs/resize-dialog.c
      	* app/display/gimpdisplayshell-layer-select.c
      	* app/display/gimpdisplayshell.c
      	* app/display/gimpnavigationeditor.c
      	* app/paint/gimppaintoptions.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimptexttool.c
      	* app/actions/gradient-editor-commands.c
      	* app/widgets/gimpaction.c
      	* app/widgets/gimpbrusheditor.[ch]
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcellrendererviewable.c
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpclipboard.c
      	* app/widgets/gimpcoloreditor.c
      	* app/widgets/gimpcomponenteditor.c
      	* app/widgets/gimpcontainerbox.c
      	* app/widgets/gimpcontainercombobox.c
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainerentry.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainertreeview.[ch]
      	* app/widgets/gimpdataeditor.[ch]
      	* app/widgets/gimpdevicestatus.c
      	* app/widgets/gimpdnd.[ch]
      	* app/widgets/gimpdrawabletreeview.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpgradienteditor.[ch]
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimppaletteeditor.[ch]
      	* app/widgets/gimppropwidgets.[ch]
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimpthumbbox.[ch]
      	* app/widgets/gimptoolbox-image-area.c
      	* app/widgets/gimptoolbox-indicator-area.c
      	* app/widgets/gimptooloptionseditor.c
      	* app/widgets/gimpundoeditor.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/widgets/gimpview-popup.[ch]
      	* app/widgets/gimpview.[ch]
      	* app/widgets/gimpviewablebutton.c
      	* app/widgets/gimpviewabledialog.c
      	* app/widgets/gimpviewrenderer.[ch]
      	* app/widgets/gimpviewrenderer-frame.c
      	* app/widgets/gimpviewrendererbrush.c
      	* app/widgets/gimpviewrendererbuffer.c
      	* app/widgets/gimpviewrendererdrawable.c
      	* app/widgets/gimpviewrenderergradient.c
      	* app/widgets/gimpviewrendererimage.c
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb: added tons of GimpContext members
      	and parameters, implement GimpDocked::set_context() in many
      	widgets. Pass these locally remembered contexts to GimpViewable
      	functions. Did some minor cleanups on the way. There are still
      	some minor FIXMEs around where the code uses a NULL context (which
      	is allowed by the APIs)
      
      	* app/pdb/drawable_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      b53aa45a
  9. 08 Aug, 2006 1 commit
    • Sven Neumann's avatar
      added new function gimp_message() as a replacement for g_message(). Part · 48d054e8
      Sven Neumann authored
      2006-08-08  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimp.[ch]: added new function gimp_message() as a
      	replacement for g_message(). Part of the fix for bug #347214.
      
      	* app/actions/data-commands.c
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/actions/layers-commands.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimagefile.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer.c
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/dialogs/file-save-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/pdb/gimppdb.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c
      	* app/widgets/gimpwidgets-utils.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-private.h
      	* app/xcf/xcf-save.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/palette.pdb: use gimp_message() instead of
      	gimp_message() whenever we have a GimpProgress.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/palette_cmds.c: regenerated.
      48d054e8
  10. 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
  11. 24 Mar, 2006 2 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/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
  12. 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
  13. 21 Mar, 2006 1 commit
  14. 15 Mar, 2006 3 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
    • Michael Natterer's avatar
      tools/pdbgen/pdb/brush.pdb tools/pdbgen/pdb/brushes.pdb · 59771587
      Michael Natterer authored
      2006-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/context.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/drawable_transform.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/paths.pdb
      	* tools/pdbgen/pdb/pattern.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: let pdbgen handle *only*
      	variables for arguments and return values and declare all local
      	variables inside the C code. Removed lots of alias => '<expression>'
      	and no_declare => 1 stuff from return values, instead let pdbgen
      	declare the variables and assign them manually in the C code.
      	More cleanup.
      
      	* tools/pdbgen/app.pl: removed support for proc->vars.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/context_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/drawable_transform_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/palette_cmds.c
      	* app/pdb/palettes_cmds.c
      	* app/pdb/paths_cmds.c
      	* app/pdb/pattern_cmds.c
      	* app/pdb/patterns_cmds.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/transform_tools_cmds.c
      	* libgimp/gimpbrush_pdb.c
      	* libgimp/gimpbrushes_pdb.c
      	* libgimp/gimpgradient_pdb.c
      	* libgimp/gimpgradients_pdb.c
      	* libgimp/gimppalette_pdb.c
      	* libgimp/gimppalettes_pdb.c
      	* libgimp/gimppatterns_pdb.c: regenerated.
      59771587
  15. 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
  16. 26 Feb, 2005 1 commit
    • Sven Neumann's avatar
      removed the "last_visited" field from GimpGradient. Instead added the new · 8de1e94b
      Sven Neumann authored
      2005-02-27  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpgradient.[ch]: removed the "last_visited" field
      	from GimpGradient. Instead added the new function
      	gimp_gradient_get_color_at_segment() that allows the caller to do
      	the same optimization.
      
      	* app/actions/gradient-editor-commands.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimppalette-import.c
      	* app/paint/gimppaintoptions.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimpviewrenderergradient.c: changed accordingly.
      
      	* app/pdb/gradient_cmds.c
      	* app/pdb/gradients_cmds.c: regenerated.
      8de1e94b
  17. 03 Jan, 2005 1 commit
    • Sven Neumann's avatar
      do actually add the new procedure gimp_gradient_is_editable(). · c314eef7
      Sven Neumann authored
      2005-01-03  Sven Neumann  <neumann@jpk.com>
      
      	* tools/pdbgen/pdb/gradient.pdb: do actually add the new procedure
      	gimp_gradient_is_editable().
      
      	* app/pdb/gradient_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimpgradient_pdb.[ch]: regenerated.
      
      	* libgimp/gimp.def: updated.
      c314eef7
  18. 31 Dec, 2004 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 8a651f34
      William Skaggs authored
      	* tools/pdbgen/pdb/gradient.pdb: added gradient-is-editable
      
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/palette.pdb: changed mitch_misc to bill_misc
      	where correct.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/palette_cmds.c
      	* libgimp/gimpbrush_pdb.c
      	* libgimp/gimppalette_pdb.c: regenerated.
      8a651f34
  19. 05 Oct, 2004 1 commit
    • Michael Natterer's avatar
      tools/pdbgen/pdb/brushes.pdb (brushes_get_brush_data) · caf47869
      Michael Natterer authored
      2004-10-06  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brushes.pdb (brushes_get_brush_data)
      	* tools/pdbgen/pdb/gradients.pdb (gradients_sample_uniform)
      	(gradients_sample_custom) (gradients_get_gradient_data)
      	* tools/pdbgen/pdb/patterns.pdb (patterns_get_pattern_data):
      	deprecated.
      
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/pattern.pdb: added replacements for the
      	deprecated functions. Removed the silly feature that passing NULL
      	as name operates on the current brush, pattern etc.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/palette_cmds.c
      	* app/pdb/pattern_cmds.c
      	* app/pdb/patterns_cmds.c
      	* libgimp/gimpbrush_pdb.[ch]
      	* libgimp/gimpbrushes_pdb.[ch]
      	* libgimp/gimpgradient_pdb.[ch]
      	* libgimp/gimpgradients_pdb.[ch]
      	* libgimp/gimppalette_pdb.c
      	* libgimp/gimppattern_pdb.[ch]
      	* libgimp/gimppatterns_pdb.[ch]: regenerated.
      
      	* libgimp/gimpbrushmenu.c
      	* libgimp/gimpgradientmenu.c
      	* libgimp/gimppatternmenu.c
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/common/gradmap.c
      	* plug-ins/common/sample_colorize.c
      	* plug-ins/flame/flame.c
      	* plug-ins/gfig/gfig-style.c
      	* plug-ins/gflare/gflare.c
      	* plug-ins/pagecurl/pagecurl.c
      	* plug-ins/script-fu/scripts/spyrogimp.scm: changed accordingly.
      caf47869
  20. 04 Oct, 2004 1 commit
    • Michael Natterer's avatar
      tools/pdbgen/pdb/brush.pdb tools/pdbgen/pdb/gradient.pdb disallow the · 3eb69a85
      Michael Natterer authored
      2004-10-04  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/palette.pdb: disallow the empty string for
      	new brushes, gradients and palettes and check the return value
      	of gimp_data_factory_data_new(). Cleanup.
      
      	* app/core/gimpbrushgenerated.c (gimp_brush_generated_new)
      	* app/core/gimpgradient.c (gimp_gradient_new)
      	* app/core/gimpdatafactory.c (gimp_data_factory_data_new): same
      	here. Fixes bug #154264.
      
      	* app/core/gimpdata.[ch] (gimp_data_set_filename): added boolean
      	"deletable" parameter because it's not derivable from "writable".
      
      	* app/core/gimpdatafactory.c (gimp_data_factory_load_data): need
      	to figure "deletable" separately from "writable" to be able to
      	delete unsavable stuff in the user-writable data directories.
      	Fixes bug #154410.
      
      	(gimp_data_factory_data_save_single): cleaned up.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/palette_cmds.c
      	* libgimp/gimpbrush_pdb.c
      	* libgimp/gimpgradient_pdb.c
      	* libgimp/gimppalette_pdb.c: regenerated.
      3eb69a85
  21. 28 Sep, 2004 1 commit
    • Michael Natterer's avatar
      tools/pdbgen/Makefile.am renamed group "gradient_edit" to "gradient" and · 3004cb1b
      Michael Natterer authored
      2004-09-29  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl: renamed group "gradient_edit" to
      	"gradient" and added "brush", "palette" and "pattern" groups.
      
      	* tools/pdbgen/pdb/gradient_edit.pdb: removed.
      
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/pattern.pdb: new files containing functions
      	which create, duplicate, rename, delete, query and manipulate
      	a single brush, pattern etc.
      
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/patterns.pdb: deprecated stuff that is obsolete
      	now and simply removed the procedures that were added after 2.0.
      
      	* app/pdb/gradient_edit_cmds.c
      	* libgimp/gimpgradientedit_pdb.[ch]: removed.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/palette_cmds.c
      	* app/pdb/pattern_cmds.c
      	* libgimp/gimpbrush_pdb.[ch]
      	* libgimp/gimpgradient_pdb.[ch]
      	* libgimp/gimppalette_pdb.[ch]
      	* libgimp/gimppattern_pdb.[ch]: new files.
      
      	* 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/gimp_pdb.h
      	* libgimp/gimpbrushes_pdb.[ch]
      	* libgimp/gimpgradients_pdb.[ch]
      	* libgimp/gimppalettes_pdb.[ch]
      	* libgimp/gimppatterns_pdb.[ch]: regenerated.
      
      	* app/pdb/Makefile.am
      	* libgimp/Makefile.am
      	* plug-ins/gfig/gfig-style.c: changed accordingly.
      3004cb1b
  22. 14 Jun, 2004 1 commit
  23. 02 Jun, 2004 1 commit
  24. 01 Jun, 2004 3 commits
    • Sven Neumann's avatar
      tools/pdbgen/pdb/gradient_edit.pdb mark new API as new using $since. · 133a7098
      Sven Neumann authored
      2004-06-02  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/gradient_edit.pdb
      	* tools/pdbgen/pdb/gradients.pdb: mark new API as new using $since.
      
      	* libgimp/gimpgradientedit_pdb.c
      	* libgimp/gimpgradients_pdb.c: regenerated.
      133a7098
    • Michael Natterer's avatar
      forgot two more s/int32/enum/. · 1799caae
      Michael Natterer authored
      2004-06-02  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/gradient_edit.pdb: forgot two more s/int32/enum/.
      
      	* app/pdb/gradient_edit_cmds.c
      	* libgimp/gimpgradientedit_pdb.[ch]: regenerated.
      1799caae
    • Michael Natterer's avatar
      use enums instead of integers, cleanup. · 20b16129
      Michael Natterer authored
      2004-06-01  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/gradient_edit.pdb: use enums instead of
      	integers, cleanup.
      
      	* app/pdb/gradient_edit_cmds.c
      	* libgimp/gimpgradientedit_pdb.[ch]: regenerated.
      20b16129
  25. 30 May, 2004 1 commit
    • Michael Natterer's avatar
      app/core/core-enums.h app/core/gimpgradient.[ch] app/pdb/Makefile.am · 421024cc
      Michael Natterer authored
      2004-05-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.h
      	* app/core/gimpgradient.[ch]
      	* app/pdb/Makefile.am
      	* app/widgets/gimpgradienteditor.c
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl
      	* tools/pdbgen/pdb/gradient_edit.pdb: applied a patch from Shlomi
      	Fish that adds lots of gradient edit functions to
      	gimpgradient.[ch] and makes them available through the PDB.
      	Fixes bug #129675 and bug #129678.
      
      	Did some cleanups / enhancments to the patch:
      
      	* app/core/gimpgradient.[ch]: changed the naming scheme of the new
      	functions and changed old functions to match the new scheme.
      	Introduce a "freeze_count" and public freeze()/thaw() API which
      	enables subsequent gradient changes without "dirty" being emitted
      	all the time.  Added GimpGradient parameters to all functions
      	which modify the gradient.
      
      	* app/widgets/gimpgradienteditor.c: use the new freeze/thaw
      	stuff to keep the gradient from updating when not in
      	"Instant Update" mode.
      
      	* app/actions/gradient-editor-commands.c: removed all gradient
      	editing code and call the new core functions.
      
      	* libgimp/Makefile.am
      	* tools/pdbgen/pdb/gradient_edit.pdb: changed the namespace of all
      	added functions. Generate libgimp wrappers for them..
      
      	* app/pdb/gradient_edit_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimp_pdb.h
      	* libgimp/gimpenums.h
      	* libgimp/gimpgradientedit_pdb.[ch]
      	* plug-ins/pygimp/gimpenums.py
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: (re)generated.
      421024cc