Michael Natterer
7a373152f9
Remove boolean variable that was only set and never used after
2009-08-25 20:00:30 +02:00
Michael Natterer
c4075975bf
Bring parent items to the public API in the core
...
* app/core/gimpimage.[ch]: make the parent parameter public in
add_layer(), add_layers(), add_channel() and add_vectors().
* app/vectors/gimpvectors-import.[ch]: add parent parameters to
the vectors import functions.
* app/core/gimpchannelundo.[ch]
* app/core/gimplayerundo.[ch]
* app/vectors/gimpvectorsundo.[ch]
* app/core/gimpimage-undo-push.[ch]: remember the parent item when
removing layers, channels and vectors.
* app/actions/channels-commands.c
* app/actions/debug-commands.c
* app/actions/edit-commands.c
* app/actions/layers-commands.c
* app/actions/vectors-commands.c
* app/core/gimp-edit.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-quick-mask.c
* app/core/gimplayer-floating-sel.c
* app/core/gimpselection.c
* app/core/gimptemplate.c
* app/dialogs/file-open-dialog.c
* app/display/gimpdisplayshell-dnd.c
* app/text/gimptext-compat.c
* app/tools/gimptexttool.c
* app/tools/gimpvectortool.c
* app/widgets/gimptoolbox-dnd.c
* app/xcf/xcf-load.c
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/paths.pdb
* tools/pdbgen/pdb/vectors.pdb: pass NULL as parent item to above
functions and add FIXMEs all over the place because there is some
more hacking needed to make adding with index = -1 (on top of the
current item) work again.
* app/pdb/image-cmds.c
* app/pdb/paths-cmds.c
* app/pdb/vectors-cmds.c: regenerated.
* app/core/gimpimage-duplicate.c: duplicate the original image's
tree structure in the copy.
* app/widgets/gimpitemtreeview.[ch]: add parent to GimpAddItemFunc,
add utility function gimp_item_tree_view_get_drop_index() which
figures where to add something dropped to an item tree.
* app/widgets/gimpchanneltreeview.c
* app/widgets/gimplayertreeview.c
* app/widgets/gimpvectorstreeview.c: changed accordingly, using above
new GimpItemTreeView API.
2009-08-03 19:21:51 +02:00
Michael Natterer
88f49a5ddb
Use gimp_item_get_index() all over the place
...
Remove gimp_image_get_layer,channel,vectors_index() and
use the new function everywhere.
2009-08-01 20:49:55 +02:00
Michael Natterer
d9b5207aa2
Change licence to GPLv3 (and to LGPLv3 for libgimp).
...
2009-01-17 Michael Natterer <mitch@gimp.org>
* all files with a GPL header and all COPYING files:
Change licence to GPLv3 (and to LGPLv3 for libgimp).
Cleaned up some copyright headers and regenerated the parsers in
the ImageMap plugin.
svn path=/trunk/; revision=27913
2009-01-17 22:28:01 +00:00
Martin Nordholts
de38a9887b
New offset getters for inline use.
...
* app/core/gimpitem.c
(gimp_item_get_offset_x)
(gimp_item_get_offset_y): New offset getters for inline use.
* app/core/gimpchannel.c
* app/core/gimpdrawable.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-resize.c
* app/tools/gimptexttool.c: Don't access GimpItem offset members
directly, use gimp_item_set_offset() and
gimp_item_get_offset_[xy]() instead.
svn path=/trunk/; revision=27848
2008-12-28 12:43:07 +00:00
Martin Nordholts
5aeb568650
s/gimp_container_children_type/gimp_container_get_children_type/
...
s/gimp_container_policy/gimp_container_get_policy/
s/gimp_container_num_children/gimp_container_get_n_children/
* app/actions/actions.c
* app/actions/file-actions.c
* app/actions/file-commands.c
* app/actions/tool-options-actions.c
* app/actions/tools-actions.c
* app/actions/tools-commands.c
* app/actions/vectors-actions.c
* app/core/gimpcontainer-filter.c
* app/core/gimpcontainer.c
* app/core/gimpcontainer.h
* app/core/gimpimage-convert.c
* app/core/gimpimage-flip.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-resize.c
* app/core/gimpimage-rotate.c
* app/core/gimpimage-scale.c
* app/core/gimpimage-undo.c
* app/core/gimpimage.c
* app/core/gimpimagefile.c
* app/core/gimplist.c
* app/core/gimpundostack.c
* app/dialogs/palette-import-dialog.c
* app/dialogs/quit-dialog.c
* app/display/gimpdisplay.c
* app/display/gimpdisplayshell-layer-select.c
* app/display/gimpdisplayshell-title.c
* app/gui/gui-vtable.c
* app/menus/tool-options-menu.c
* app/tools/gimp-tools.c
* app/widgets/gimpcontrollerlist.c
* app/widgets/gimpimagepropview.c
* app/widgets/gimpsettingsbox.c
* app/widgets/gimpviewablebutton.c
* app/xcf/xcf-load.c
* app/xcf/xcf-save.c
svn path=/trunk/; revision=27692
2008-11-20 22:45:19 +00:00
Michael Natterer
fb1660a4ea
rename gimp_image_floating_sel() to gimp_image_get_floating_selection().
...
2008-11-14 Michael Natterer <mitch@gimp.org>
* app/core/gimpimage.[ch]: rename gimp_image_floating_sel() to
gimp_image_get_floating_selection().
* app/actions/channels-actions.c
* app/actions/image-actions.c
* app/actions/layers-actions.c
* app/actions/layers-commands.c
* app/actions/select-actions.c
* app/core/gimpdrawable.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-quick-mask.c
* app/core/gimplayer-floating-sel.c
* app/core/gimpselection.c
* app/display/gimpdisplayshell-layer-select.c
* app/display/gimpdisplayshell.c
* app/tools/gimpeditselectiontool.c
* app/tools/gimpfreeselecttool.c
* app/tools/gimpmovetool.c
* app/tools/gimprectangleselecttool.c
* app/tools/gimpregionselecttool.c
* app/tools/gimpselectiontool.c
* app/tools/gimptexttool.c
* app/widgets/gimpdrawabletreeview.c
* app/widgets/gimplayertreeview.c
* app/xcf/xcf-save.c
* tools/pdbgen/pdb/image.pdb: changed accordingly, replaced some
instances of direct acces by the accessor.
* app/pdb/image-cmds.c: regenerated.
svn path=/trunk/; revision=27649
2008-11-14 15:01:44 +00:00
Sven Neumann
b37c8bcf0a
app/core/Makefile.am added GIMP_ERROR as general error domain.
...
2008-11-12 Sven Neumann <sven@gimp.org>
* app/core/Makefile.am
* app/core/gimperror.[ch]: added GIMP_ERROR as general error
domain.
* app/core/gimpchannel.c
* app/core/gimpdrawable-bucket-fill.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-merge.c
* app/core/gimpimage.c
* app/core/gimplayer-floating-sel.c
* app/core/gimplayer.c
* app/core/gimplayermask.c
* app/core/gimpselection.c
* app/core/gimptooloptions.c
* app/paint/gimpbrushcore.c
* app/paint/gimpclone.c
* app/paint/gimpheal.c
* app/paint/gimppaintcore-stroke.c
* app/paint/gimpperspectiveclone.c
* app/paint/gimpsourcecore.c
* app/tools/gimpblendtool.c
* app/tools/gimpbrightnesscontrasttool.c
* app/tools/gimpcolorbalancetool.c
* app/tools/gimpcolorizetool.c
* app/tools/gimpcurvestool.c
* app/tools/gimpdesaturatetool.c
* app/tools/gimpgegltool.c
* app/tools/gimphuesaturationtool.c
* app/tools/gimplevelstool.c
* app/tools/gimpposterizetool.c
* app/tools/gimpthresholdtool.c
* app/vectors/gimpvectors-import.c: use GIMP_ERROR as error
domain
instead of 0, which is not accepted by g_set_error_literal().
* app/gui/session.c
* app/menus/menus.c
* app/vectors/gimpvectors-export.c
* app/widgets/gimpdevices.c: use G_FILE_ERROR as error domain
for
file errors.
svn path=/trunk/; revision=27628
2008-11-12 10:56:06 +00:00
Sven Neumann
4762b73403
bumped minimum required version of GLib to 2.18.0.
...
2008-11-04 Sven Neumann <sven@sven>
* configure.in: bumped minimum required version of GLib to
2.18.0.
* INSTALL: document the updated dependency.
* app/core/gimp.[ch]: introduced gimp_message_literal(), a
variant
of gimp_message() that takes a literal string.
* app/errors.[ch]: removed format arguments from
gimp_fatal_error()
and gimp_terminate() and let them take a literal string instead.
* app/tools/gimptool.[ch]: introduced
gimp_tool_message_literal(),
a variant of gimp_tool_message() that takes a literal string.
* app/actions/documents-commands.c
* app/actions/drawable-commands.c
* app/actions/edit-commands.c
* app/actions/error-console-commands.c
* app/actions/file-commands.c
* app/actions/gradients-commands.c
* app/actions/image-commands.c
* app/actions/layers-commands.c
* app/actions/palettes-commands.c
* app/actions/plug-in-commands.c
* app/actions/select-commands.c
* app/actions/vectors-commands.c
* app/config/gimprc.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/gimpcontainer-filter.c
* app/core/gimpdrawable-bucket-fill.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-merge.c
* app/core/gimpimage.c
* app/core/gimpimagefile.c
* app/core/gimplayer-floating-sel.c
* app/core/gimplayer.c
* app/core/gimpselection.c
* app/dialogs/convert-dialog.c
* app/dialogs/dialogs.c
* app/dialogs/palette-import-dialog.c
* app/dialogs/preferences-dialog.c
* app/dialogs/quit-dialog.c
* app/dialogs/stroke-dialog.c
* app/display/gimpdisplayshell-dnd.c
* app/file/file-open.c
* app/file/file-procedure.c
* app/file/file-save.c
* app/file/file-utils.c
* app/gegl/gimpcurvesconfig.c
* app/gegl/gimplevelsconfig.c
* app/gui/gui-message.c
* app/gui/gui.c
* app/gui/session.c
* app/paint/gimpbrushcore.c
* app/paint/gimpclone.c
* app/paint/gimpheal.c
* app/paint/gimpperspectiveclone.c
* app/paint/gimpsourcecore.c
* app/pdb/gimppdb-utils.c
* app/pdb/gimpprocedure.c
* app/plug-in/gimpplugin-message.c
* app/plug-in/gimpplugin.c
* app/plug-in/gimppluginmanager-restore.c
* app/plug-in/gimppluginprocedure.c
* app/text/gimptextlayer.c
* app/tools/gimp-tools.c
* app/tools/gimpaligntool.c
* app/tools/gimpblendtool.c
* app/tools/gimpbrightnesscontrasttool.c
* app/tools/gimpbucketfilltool.c
* app/tools/gimpcolorbalancetool.c
* app/tools/gimpcolorpickertool.c
* app/tools/gimpcurvestool.c
* app/tools/gimpdesaturatetool.c
* app/tools/gimpeditselectiontool.c
* app/tools/gimpforegroundselecttool.c
* app/tools/gimpfreeselecttool.c
* app/tools/gimpgegltool.c
* app/tools/gimphuesaturationtool.c
* app/tools/gimpimagemaptool-settings.c
* app/tools/gimpiscissorstool.c
* app/tools/gimplevelstool.c
* app/tools/gimpmeasuretool.c
* app/tools/gimppainttool.c
* app/tools/gimpposterizetool.c
* app/tools/gimpselectiontool.c
* app/tools/gimpsourcetool.c
* app/tools/gimpthresholdtool.c
* app/tools/gimptransformtool.c
* app/tools/gimpvectortool.c
* app/widgets/gimpactionview.c
* app/widgets/gimpcontrollerlist.c
* app/widgets/gimpcontrollers.c
* app/widgets/gimpdataeditor.c
* app/widgets/gimpdevices.c
* app/widgets/gimpdnd-xds.c
* app/widgets/gimperrordialog.c
* app/widgets/gimphelp.c
* app/widgets/gimpitemtreeview.c
* app/widgets/gimppdbdialog.c
* app/widgets/gimpsettingsbox.c
* app/widgets/gimpvectorstreeview.c
* app/widgets/gimpwidgets-utils.c
* app/xcf/xcf-load.c
* tools/pdbgen/pdb/convert.pdb
* tools/pdbgen/pdb/edit.pdb
* tools/pdbgen/pdb/floating_sel.pdb
* tools/pdbgen/pdb/image.pdb: use the _literal variants for
g_set_error(), gimp_message() and gimp_tool_message().
* app/pdb/convert-cmds.c
* app/pdb/edit-cmds.c
* app/pdb/floating-sel-cmds.c
* app/pdb/image-cmds.c: regenerated.
svn path=/trunk/; revision=27548
2008-11-04 12:33:09 +00:00
Michael Natterer
740ab5e633
renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height()
...
2008-11-03 Michael Natterer <mitch@gimp.org>
* app/core/gimpitem.[ch]: renamed
gimp_item_width() to gimp_item_get_width() and
gimp_item_height() to gimp_item_get_height().
* app/actions/channels-commands.c
* app/actions/drawable-commands.c
* app/actions/layers-commands.c
* app/core/<many>.c
* app/dialogs/offset-dialog.c
* app/dialogs/resize-dialog.c
* app/dialogs/scale-dialog.c
* app/display/gimpdisplayshell-dnd.c
* app/display/gimpdisplayshell.c
* app/paint/gimpbrushcore.c
* app/paint/gimpdodgeburn.c
* app/paint/gimpink.c
* app/paint/gimppaintcore.c
* app/paint/gimpsmudge.c
* app/text/gimptextlayer-xcf.c
* app/text/gimptextlayer.c
* app/tools/gimpaligntool.c
* app/tools/gimpeditselectiontool.c
* app/tools/gimpforegroundselecttool.c
* app/tools/gimpimagemaptool.c
* app/tools/gimprectangletool.c
* app/tools/gimpregionselecttool.c
* app/tools/gimptexttool.c
* app/vectors/gimpvectors.c
* app/vectors/gimpvectorsmodundo.c
* app/widgets/gimptoolbox-dnd.c
* app/widgets/gimpviewrendererdrawable.c
* app/widgets/gimpviewrenderervectors.c
* app/xcf/xcf-load.c
* app/xcf/xcf-save.c
* tools/pdbgen/pdb/drawable.pdb: changed accordingly.
* app/pdb/drawable-cmds.c: regenerated.
svn path=/trunk/; revision=27531
2008-11-03 00:09:01 +00:00
Michael Natterer
5b68a1d0eb
renamed gimp_item_offsets() to gimp_item_get_offset() and
...
2008-11-03 Michael Natterer <mitch@gimp.org>
* app/core/gimpitem.[ch]: renamed
gimp_item_offsets() to gimp_item_get_offset() and
gimp_item_set_offsets() to gimp_item_set_offset().
* app/actions/drawable-commands.c
* app/actions/layers-commands.c
* app/core/<many>.c
* app/display/gimpdisplayshell-dnd.c
* app/display/gimpdisplayshell-preview.c
* app/display/gimpdisplayshell-transform.c
* app/display/gimpdisplayshell.c
* app/paint/gimppaintcore-stroke.c
* app/paint/gimppaintcore.c
* app/paint/gimpsourcecore.c
* app/text/gimptextlayer-xcf.c
* app/tools/<many>.c
* app/widgets/gimptoolbox-dnd.c
* tools/pdbgen/pdb/drawable.pdb
* tools/pdbgen/pdb/drawable_transform.pdb
* tools/pdbgen/pdb/selection.pdb
* tools/pdbgen/pdb/transform_tools.pdb
* tools/pdbgen/pdb/vectors.pdb: changed accordingly.
* app/pdb/drawable-cmds.c
* app/pdb/drawable-transform-cmds.c
* app/pdb/selection-cmds.c
* app/pdb/vectors-cmds.c
* app/pdb/transform-tools-cmds.c: regenerated.
svn path=/trunk/; revision=27529
2008-11-02 23:03:29 +00:00
Michael Natterer
d1ca165b4e
add new functions gimp_image_get_layer_iter(), channel_iter() and
...
2008-11-02 Michael Natterer <mitch@gimp.org>
* app/core/gimpimage.[ch]: add new functions
gimp_image_get_layer_iter(), channel_iter() and vectors_iter()
which return the GList inside the resp. GimpList.
* app/actions/channels-actions.c
* app/actions/layers-actions.c
* app/actions/vectors-actions.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-crop.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage-flip.c
* app/core/gimpimage-item-list.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-resize.c
* app/core/gimpimage-rotate.c
* app/core/gimpimage-scale.c
* app/core/gimpimage.c
* app/core/gimpimage.h
* app/core/gimpprojection-construct.c
* app/display/gimpdisplayshell-draw.c
* app/file/file-open.c
* app/tools/gimpaligntool.c
* app/tools/gimpdrawtool.c
* app/vectors/gimpvectors-compat.c
* app/vectors/gimpvectors-export.c
* app/widgets/gimplayertreeview.c
* app/xcf/xcf-save.c
* tools/pdbgen/pdb/image.pdb: use the new functions instead of
peeking both into the image and the list. Remove inclusions of
"gimplist.h" or change them into "gimpcontainer.h" if needed.
* app/pdb/image-cmds.c: regenerated.
svn path=/trunk/; revision=27524
2008-11-02 20:46:57 +00:00
Michael Natterer
5503e6a055
Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a
...
2008-10-09 Michael Natterer <mitch@gimp.org>
Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h
had a GEGL dependency (they will have in the next commit, but I
wanted to keep the commit separate).
* app/dialogs/Makefile.am
* app/file/Makefile.am
* app/gui/Makefile.am
* app/menus/Makefile.am
* app/paint/Makefile.am
* app/plug-in/Makefile.am
* app/text/Makefile.am
* app/vectors/Makefile.am
* app/widgets/Makefile.am
* app/xcf/Makefile.am: add GEGL_CFLAGS.
* app/actions/*.c
* app/core/*.c
* app/dialogs/*.c
* app/display/*.c
* app/file/*.c
* app/gui/*.c
* app/menus/*.c
* app/paint/*.c
* app/pdb/gimppdb-utils.c
* app/pdb/gimpprocedure.c
* app/plug-in/*.c
* app/text/*.c
* app/tools/*.c
* app/vectors/*.c
* app/widgets/*.c
* app/xcf/*.c: add <gegl.h> or replace <glib-object.h> by <gegl.h>
to all files which include a drawable subclass or gimpimage.h
* tools/pdbgen/app.pl: include <gegl.h> instead of <glib-object.h>
in all generated files.
* app/pdb/*-cmds.c: regenerated.
* data/images/gimp-splash.png: the goat is still sleeping.
By Aurore Derriennic.
svn path=/trunk/; revision=27202
2008-10-09 20:24:04 +00:00
Michael Natterer
0e4a35a2d8
Remove the last code duplication from the undo system (or if not the last
...
2008-10-09 Michael Natterer <mitch@gimp.org>
Remove the last code duplication from the undo system (or if not
the last then at least the most ugly):
* app/core/gimpimage.[ch] (gimp_image_add_layer,channel,vectors):
add "gboolean push_undo" parameter and add the item without
touching undo if it's TRUE. Changed assertions from
g_object_is_floating() to !gimp_item_is_attached() so they also
take items from the undo stack and not only newly created ones.
(gimp_image_remove_layer,channel,vectors): add "push_undo"
parameter here too. Also add a "new_active" parameter where an
optional new active item can be passed.
(gimp_image_remove_layer,channel): these functions must not be
called with push_undo=FALSE and a floating selection attached to
the layer/channel. This can't currently happen; added warnings in
case other code is changed and makes it happen anyway.
* app/core/gimpchannelundo.c
* app/core/gimplayerundo.c
* app/vectors/gimpvectorsundo.c: use above functions to add/remove
items instead of duplicating (parts of) their code. Pass
push_undo=FALSE and the previously active item to the remove()
functions.
* app/actions/channels-commands.c
* app/actions/edit-commands.c
* app/actions/layers-commands.c
* app/actions/vectors-commands.c
* app/core/gimp-edit.c
* app/core/gimpchannelundo.c
* app/core/gimpimage-crop.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-quick-mask.c
* app/core/gimpimage-scale.c
* app/core/gimplayer-floating-sel.c
* app/core/gimplayerundo.c
* app/core/gimpselection.c
* app/core/gimptemplate.c
* app/display/gimpdisplayshell-dnd.c
* app/text/gimptext-compat.c
* app/tools/gimptexttool.c
* app/tools/gimpvectortool.c
* app/vectors/gimpvectors-import.c
* app/vectors/gimpvectorsundo.c
* app/widgets/gimpchanneltreeview.c
* app/widgets/gimpitemtreeview.[ch]
* app/widgets/gimplayertreeview.c
* app/widgets/gimptoolbox-dnd.c
* app/widgets/gimpvectorstreeview.c
* app/xcf/xcf-load.c
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/paths.pdb: changed accordingly (pass TRUE
unless it's a new image like when loading and XCF file).
* app/pdb/image-cmds.c
* app/pdb/paths-cmds.c: regenerated.
svn path=/trunk/; revision=27200
2008-10-09 19:40:41 +00:00
Michael Natterer
68c21b49e9
Revert the change which adds GError parameters to
...
2008-09-17 Michael Natterer <mitch@gimp.org>
Revert the change which adds GError parameters to
gimp_image_add_{channel,layer,vectors}():
* app/actions/channels-commands.c
* app/actions/edit-commands.c
* app/actions/layers-commands.c
* app/actions/vectors-commands.c
* app/core/gimp-edit.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-quick-mask.c
* app/core/gimpimage.[ch]
* app/core/gimplayer-floating-sel.c
* app/core/gimpselection.c
* app/core/gimptemplate.c
* app/display/gimpdisplayshell-dnd.c
* app/text/gimptext-compat.c
* app/tools/gimptexttool.c
* app/tools/gimpvectortool.c
* app/vectors/gimpvectors-import.c
* app/widgets/gimpchanneltreeview.c
* app/widgets/gimpitemtreeview.[ch]
* app/widgets/gimplayertreeview.c
* app/widgets/gimptoolbox-dnd.c
* app/widgets/gimpvectorstreeview.c
* app/xcf/xcf-load.c: revert.
Instead, fix it at the PDB level:
* app/core/gimpimage.c: turn the "added to wrong image" warning
into a g_return_val_if_fail() assertion.
* app/pdb/gimppdb-utils.[ch] (gimp_pdb_item_is_floating): add a
"dest_image" parameter and fail if the passed item is not for this
image.
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/layer.pdb
* tools/pdbgen/pdb/paths.pdb: pass the dest image to
gimp_pdb_item_is_floating().
* app/pdb/image-cmds.c
* app/pdb/layer-cmds.c
* app/pdb/paths-cmds.c: regenerated.
svn path=/trunk/; revision=26970
2008-09-17 11:41:54 +00:00
Michael Natterer
b0dab70de8
add GError parameter to gimp_image_add_{channel,layer,vectors}() and
...
2008-09-17 Michael Natterer <mitch@gimp.org>
* app/core/gimpimage.[ch]: add GError parameter to
gimp_image_add_{channel,layer,vectors}() and remove calls to
g_warning(). Changed checks to be possible failures at all.
* app/widgets/gimpitemtreeview.h (GimpAddItemFunc): add the GError
here too.
* app/actions/channels-commands.c
* app/actions/edit-commands.c
* app/actions/layers-commands.c
* app/actions/vectors-commands.c
* app/core/gimp-edit.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-quick-mask.c
* app/core/gimplayer-floating-sel.c
* app/core/gimpselection.c
* app/core/gimptemplate.c
* app/display/gimpdisplayshell-dnd.c
* app/text/gimptext-compat.c
* app/tools/gimptexttool.c
* app/tools/gimpvectortool.c
* app/vectors/gimpvectors-import.c
* app/widgets/gimpchanneltreeview.c
* app/widgets/gimpitemtreeview.c
* app/widgets/gimplayertreeview.c
* app/widgets/gimptoolbox-dnd.c
* app/widgets/gimpvectorstreeview.c
* app/xcf/xcf-load.c: pass a NULL error.
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/paths.pdb: pass the error.
* app/pdb/image-cmds.c
* app/pdb/paths-cmds.c: regenerated.
svn path=/trunk/; revision=26963
2008-09-17 08:27:35 +00:00
Sven Neumann
a5f8345609
added clear_region().
...
2008-09-01 Sven Neumann <sven@gimp.org>
* app/paint-funcs/paint-funcs.[ch]: added clear_region().
* app/base/tile-manager-crop.c
* app/core/gimpchannel.c
* app/core/gimpimage-merge.c
* app/core/gimpmaskundo.c
* app/core/gimpprojection-construct.c: use it instead of calling
color_region() with a zero color.
svn path=/trunk/; revision=26826
2008-09-01 20:44:00 +00:00
Sven Neumann
4aa7e67c67
removed "add_alpha" parameter from gimp_item_duplicate() and
...
2008-01-08 Sven Neumann <sven@gimp.org>
* app/core/gimpitem.[ch]: removed "add_alpha" parameter from
gimp_item_duplicate() and gimp_item_convert(). This is a relict
from the time when only the bottom layer was allowed to have no
alpha channel.
* app/actions/channels-commands.c
* app/actions/layers-commands.c
* app/actions/vectors-commands.c
* app/core/gimpchannel.c
* app/core/gimpdrawable.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-quick-mask.c
* app/core/gimplayer.c
* app/core/gimplayermask.c
* app/core/gimpselection.c
* app/display/gimpdisplayshell-dnd.c
* app/file/file-open.c
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c
* app/text/gimptextlayer.c
* app/vectors/gimpvectors.c
* app/vectors/gimpvectorsmodundo.c
* app/widgets/gimpchanneltreeview.c
* app/widgets/gimpitemtreeview.c
* app/widgets/gimplayertreeview.c
* app/widgets/gimptoolbox-dnd.c
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: changed accordingly.
svn path=/trunk/; revision=24570
2008-01-08 11:46:15 +00:00
Michael Natterer
75061fccfd
app/actions/channels-commands.c app/actions/colormap-actions.c
...
2007-12-25 Michael Natterer <mitch@gimp.org>
* app/actions/channels-commands.c
* app/actions/colormap-actions.c
* app/actions/colormap-commands.c
* app/actions/image-commands.c
* app/core/gimp-edit.c
* app/core/gimpdrawable-preview.c
* app/core/gimpimage-colorhash.c
* app/core/gimpimage-colormap.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-crop.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage-flip.c
* app/core/gimpimage-guides.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-preview.c
* app/core/gimpimage-quick-mask.c
* app/core/gimpimage-resize.c
* app/core/gimpimage-rotate.c
* app/core/gimpimage-sample-points.c
* app/core/gimpimage-scale.c
* app/core/gimpimage-snap.c
* app/core/gimpimage.c
* app/core/gimpimagefile.c
* app/core/gimpimageundo.c
* app/core/gimpitem-preview.c
* app/core/gimpitem.c
* app/core/gimplayer.c
* app/core/gimppalette-import.c
* app/core/gimpprojection-construct.c
* app/core/gimpprojection.c
* app/core/gimpselection.c
* app/core/gimpundo.c
* app/dialogs/layer-options-dialog.c
* app/dialogs/print-size-dialog.c
* app/display/gimpdisplay.c
* app/display/gimpdisplayshell-draw.c
* app/display/gimpdisplayshell-scale.c
* app/display/gimpdisplayshell-scroll.c
* app/display/gimpdisplayshell-title.c
* app/display/gimpdisplayshell-transform.c
* app/display/gimpdisplayshell.c
* app/display/gimpstatusbar.c
* app/file/file-open.c
* app/paint/gimppaintoptions.c
* app/tools/gimpaligntool.c
* app/tools/gimpcolortool.c
* app/tools/gimpeditselectiontool.c
* app/tools/gimpiscissorstool.c
* app/tools/gimpmeasuretool.c
* app/tools/gimpmovetool.c
* app/tools/gimpperspectiveclonetool.c
* app/tools/gimprectangleselecttool.c
* app/tools/gimprectangletool.c
* app/tools/gimprotatetool.c
* app/vectors/gimpvectors-export.c
* app/vectors/gimpvectors-import.c
* app/vectors/gimpvectors.c
* app/widgets/gimpimagepropview.c
* app/widgets/gimpnavigationview.c
* app/widgets/gimpselectioneditor.c
* app/widgets/gimpviewrendererdrawable.c
* app/widgets/gimpviewrendererimage.c
* app/xcf/xcf-load.c
* app/xcf/xcf-save.c
* tools/pdbgen/pdb/guides.pdb
* tools/pdbgen/pdb/image.pdb: use accessors for many image properties.
* app/pdb/guides_cmds.c
* app/pdb/image_cmds.c: regenerated.
svn path=/trunk/; revision=24432
2007-12-25 16:21:40 +00:00
Michael Natterer
ecb2c46dc8
app/actions/layers-commands.c app/core/gimpchannel-combine.c
...
2007-12-23 Michael Natterer <mitch@gimp.org>
* app/actions/layers-commands.c
* app/core/gimpchannel-combine.c
* app/core/gimpchannel-select.c
* app/core/gimpchannel.c
* app/core/gimpdrawable-convert.c
* app/core/gimpdrawable.c
* app/core/gimpdrawablemodundo.c
* app/core/gimpfloatingselundo.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-resize.c
* app/core/gimpimage.c
* app/core/gimpitem-preview.c
* app/core/gimpitem.c
* app/core/gimplayer-floating-sel.c
* app/core/gimplayer.c
* app/core/gimplayermask.c
* app/core/gimplayerundo.c
* app/core/gimpmaskundo.c
* app/core/gimppalette-import.c
* app/core/gimpprojection-construct.c
* app/core/gimpselection.c
* app/dialogs/offset-dialog.c
* app/text/gimptextlayer-xcf.c
* app/text/gimptextlayer.c
* app/vectors/gimpvectors-compat.c
* app/vectors/gimpvectors.c
* app/vectors/gimpvectorsmodundo.c
* app/widgets/gimplayertreeview.c
* app/widgets/gimpviewrendererdrawable.c
* app/widgets/gimpviewrenderervectors.c: use accessors for item,
layer, channel and mask attributes.
svn path=/trunk/; revision=24429
2007-12-23 16:58:41 +00:00
Michael Natterer
0ed8370adb
app/core/gimpimage-merge.[ch] added GError parameters.
...
2007-12-06 Michael Natterer <mitch@gimp.org>
* app/core/gimpimage-merge.[ch]
* app/core/gimpimage-convert.[ch]: added GError parameters.
* app/dialogs/convert-dialog.c
* app/actions/image-commands.c
* app/actions/vectors-commands.c: handle the returned error.
* tools/pdbgen/pdb/convert.pdb: pass the error.
* app/pdb/convert_cmds.c: regenerated.
svn path=/trunk/; revision=24276
2007-12-06 19:51:02 +00:00
Sven Neumann
5582efd62a
when we encounter an unsupported merge operation (merging an opaque
...
2007-11-13 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-merge.c (gimp_image_merge_layers): when we
encounter an unsupported merge operation (merging an opaque
indexed layer onto an indexed layer with alpha channel), then
add
an alpha channel and try again. Fixes bug #496437 .
svn path=/trunk/; revision=24149
2007-11-13 19:09:41 +00:00
Sven Neumann
f44a8ea793
corrected the size of the pixel region passed to color_region() in case of
...
2007-11-12 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-merge.c (gimp_image_merge_layers): corrected
the size of the pixel region passed to color_region() in case of
an indexed image. Fixes bug #495990 .
svn path=/trunk/; revision=24136
2007-11-12 16:49:07 +00:00
Sven Neumann
41237259c9
In all files, changed the standard copyright notice to say "GIMP - The GNU
...
2006-12-09 Sven Neumann <sven@gimp.org>
* In all files, changed the standard copyright notice to say
"GIMP - The GNU Image Manipulation Program".
2006-12-09 21:33:38 +00:00
Michael Natterer
dd6f5d711a
changed GimpDrawable parameter to "GimpImageType dest_type".
...
2006-10-26 Michael Natterer <mitch@gimp.org>
* app/core/gimpimage.[ch]
(gimp_image_transform_rgb)
(gimp_image_transform_color)
(gimp_image_transform_temp_buf): changed GimpDrawable parameter to
"GimpImageType dest_type".
(gimp_image_get_foreground)
(gimp_image_get_background): ditto and reordered parameters.
* app/core/gimp-edit.c
* app/core/gimpdrawable-bucket-fill.c
* app/core/gimpdrawable-stroke.c
* app/core/gimpdrawable-transform.c
* app/core/gimpdrawable.c
* app/core/gimpimage-merge.c
* app/core/gimplayer.c
* app/core/gimpselection.c
* app/paint/gimpbrushcore.c
* app/paint/gimpclone.c
* app/paint/gimperaser.c
* app/paint/gimpheal.c
* app/paint/gimpink.c
* app/paint/gimppaintbrush.c: changed accordingly.
* app/core/gimpdrawable-transform.c
(gimp_drawable_transform_tiles_affine): set the progress to 1.0
when done, some tiny cleanups around lanczos.
2006-10-25 22:14:36 +00:00
Michael Natterer
1ed8dd4f53
app/actions/data-commands.c app/actions/documents-commands.c
...
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.
2006-10-09 18:49:15 +00:00
Sven Neumann
9dba73fb01
made gimp_image_merge_layers() a static function, it isn't used outside
...
2006-07-11 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-merge.[ch]: made gimp_image_merge_layers()
a
static function, it isn't used outside this file.
2006-07-11 18:51:54 +00:00
Sven Neumann
d091dbb072
allow Merge operations on single layers as suggested in bug #340491 .
...
2006-05-03 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-merge.c: allow Merge operations on single
layers as suggested in bug #340491 .
2006-05-03 07:43:04 +00:00
Sven Neumann
5fc9bd4096
app/actions/tool-options-commands.c app/core/gimp.c
...
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.
2006-04-07 10:51:22 +00:00
Sven Neumann
cef9db57fe
renamed gimp_drawable_data() to gimp_drawable_get_tiles().
...
2006-04-07 Sven Neumann <sven@gimp.org>
* app/core/gimpdrawable.[ch]: renamed gimp_drawable_data() to
gimp_drawable_get_tiles().
[lots of files]: changed accordingly.
2006-04-07 09:21:18 +00:00
Sven Neumann
e43b8ea082
allow to discard invisible layers as suggested in bug #337557 .
...
2006-04-07 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-merge.[ch] (gimp_image_merge_visible_layers):
allow to discard invisible layers as suggested in bug #337557 .
* app/actions/image-commands.c
* app/dialogs/image-merge-layers-dialog.[ch]: added a check button
to the Merge Visible Layers dialog to control the new feature.
* app/file/file-open.c
* tools/pdbgen/pdb/image.pdb: pass FALSE for the new parameter.
* app/pdb/image_cmds.c: regenerated.
2006-04-07 08:01:02 +00:00
Sven Neumann
905fdfcbed
did a global gimage -> image substitution.
...
2006-03-28 Sven Neumann <sven@gimp.org>
* app/*: did a global gimage -> image substitution.
2006-03-28 17:08:36 +00:00
David Odin
62f7298ba0
fixed merge down (previously broken by a not that purely cosmetic change).
...
* app/core/gimpimage-merge.c: fixed merge down (previously broken by a
not that purely cosmetic change). Spotted by Amar Takhar.
2006-03-05 22:02:40 +00:00
Sven Neumann
4b7f6a0a02
purely cosmetic change.
...
2006-02-27 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-merge.c: purely cosmetic change.
2006-02-27 14:48:11 +00:00
Sven Neumann
0728f76b35
added gimp_undo_stack_get_depth().
...
2005-07-29 Sven Neumann <sven@gimp.org>
* app/core/gimpundostack.[ch]: added gimp_undo_stack_get_depth().
* app/widgets/gimpimagepropview.[ch]: display number and memory
usage of undo/redo steps.
* app/core/gimpimage-merge.c: fixed signedness issue.
2005-07-28 22:40:32 +00:00
Sven Neumann
7be65c2d60
removed redundant casts.
...
2005-05-06 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-merge.c: removed redundant casts.
2005-05-06 15:45:04 +00:00
Simon Budig
7945dc7a4b
Return the active layer instead of the bottom layer when just merging down
...
2004-11-13 Simon Budig <simon@gimp.org>
* app/core/gimpimage-merge.c: Return the active layer instead of
the bottom layer when just merging down a floating selection.
Untabbified.
Fixes bug #158130 .
2004-11-13 01:59:16 +00:00
Michael Natterer
c5ec0d4f70
*** empty log message ***
2004-07-13 16:36:29 +00:00
Michael Natterer
de7a940501
app/config/gimpconfig-deserialize.c app/config/gimpscanner.c
...
2004-05-12 Michael Natterer <mitch@gimp.org>
* app/config/gimpconfig-deserialize.c
* app/config/gimpscanner.c
* app/core/gimp-edit.c
* app/core/gimpchannel-combine.c
* app/core/gimpcontainer.c
* app/core/gimpdrawable-bucket-fill.c
* app/core/gimpdrawable-combine.c
* app/core/gimpdrawable.c
* app/core/gimpgradient.c
* app/core/gimpimage-flip.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-projection.c
* app/core/gimpimage.c
* app/display/gimpdisplay-handlers.c
* app/display/gimpdisplayshell-callbacks.c
* app/display/gimpprogress.c
* app/gui/info-dialog.c
* app/gui/module-browser.c
* app/gui/offset-dialog.c
* app/plug-in/plug-in.c
* app/tools/gimpdrawtool.c
* app/tools/tool_manager.c
* app/widgets/gimpactiongroup.c
* app/widgets/gimpdialogfactory.c
* app/widgets/gimpgradienteditor.c
* app/widgets/gimpitemfactory.c
* app/widgets/gimppropwidgets.c
* app/widgets/gimpwidgets-utils.c
* app/xcf/xcf-save.c
* libgimp/gimpexport.c
* libgimpwidgets/gimphelpui.c
* libgimpwidgets/gimppixmap.c
* libgimpwidgets/gimpunitmenu.c: replaced G_GNUC_FUNCTION,
G_GNUC_PRETTY_FUNCTION, G_STRLOC and hardcoded function names in
g_warning()s by G_STRFUNC.
2004-05-12 08:13:33 +00:00
Michael Natterer
18d9161eea
Get rid of the "current_context" which was in fact just a bunch of global
...
2004-04-15 Michael Natterer <mitch@gimp.org>
Get rid of the "current_context" which was in fact just a bunch of
global variables. Instead, pass the needed context all the way
from the GUI and the PDB to the core. This is a prerequisite for
macro recording and generally helps separating the various
subsystems from each other. Work in progress...
* app/core/gimp.[ch]: removed member "current_context" and
gimp_[get|set]_current_context().
* app/core/gimp-edit.[ch]
* app/core/gimpdrawable-blend.[ch]
* app/core/gimpdrawable-bucket-fill.[ch]
* app/core/gimpdrawable-offset.[ch]
* app/core/gimpdrawable-transform.[ch]
* app/core/gimpimage-crop.[ch]
* app/core/gimpimage-flip.[ch]
* app/core/gimpimage-merge.[ch]
* app/core/gimpimage-resize.[ch]
* app/core/gimpimage-rotate.[ch]
* app/core/gimpimage.[ch]
* app/core/gimpimagefile.[ch]
* app/core/gimpitem-linked.[ch]
* app/core/gimpitem.[ch]
* app/core/gimplayer.[ch]
* app/core/gimpselection.[ch]
* app/core/gimptemplate.[ch]
* app/file/file-open.[ch]
* app/file/file-save.[ch]
* app/pdb/procedural_db.[ch]
* app/text/gimptext-compat.[ch]
* app/text/gimptextlayer-transform.[ch]
* app/gui/brush-select.[ch]
* app/gui/font-select.[ch]
* app/gui/gradient-select.[ch]
* app/gui/palette-select.[ch]
* app/gui/pattern-select.[ch]: added tons of "GimpContext *context"
parameters and use the passed context instead of
gimp_get_current_context().
* app/app_procs.c
* app/batch.c
* app/core/gimpchannel.c
* app/core/gimpdrawable.c
* app/paint/gimperaser.c
* app/paint/gimppaintbrush.c
* app/plug-in/plug-in-message.c
* app/plug-in/plug-ins.c
* app/text/gimptextlayer.c
* app/tools/gimpblendtool.c
* app/tools/gimpbucketfilltool.c
* app/tools/gimpcroptool.c
* app/tools/gimpeditselectiontool.c
* app/tools/gimpfliptool.c
* app/tools/gimpinktool.c
* app/tools/gimptransformtool.c
* app/vectors/gimpvectors.c
* app/gui/convert-dialog.c
* app/gui/drawable-commands.c
* app/gui/edit-commands.c
* app/gui/file-commands.c
* app/gui/file-new-dialog.c
* app/gui/file-open-dialog.c
* app/gui/file-save-dialog.c
* app/gui/image-commands.c
* app/gui/layers-commands.c
* app/gui/offset-dialog.c
* app/gui/select-commands.c
* app/gui/vectors-commands.c
* app/widgets/gimpdnd.c
* app/widgets/gimpdocumentview.c
* app/widgets/gimphelp.c
* app/widgets/gimpthumbbox.c: pass gimp_get_user_context() or
GIMP_CONTEXT(tool_options) or whatever is the right context
to the changed core functions.
* tools/pdbgen/app.pl: pass "GimpContext *context" to all
generated PDB invokers.
* tools/pdbgen/pdb/brush_select.pdb
* tools/pdbgen/pdb/brushes.pdb
* tools/pdbgen/pdb/drawable.pdb
* tools/pdbgen/pdb/edit.pdb
* tools/pdbgen/pdb/font_select.pdb
* tools/pdbgen/pdb/gradient_select.pdb
* tools/pdbgen/pdb/gradients.pdb
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/layer.pdb
* tools/pdbgen/pdb/paint_tools.pdb
* tools/pdbgen/pdb/palette.pdb
* tools/pdbgen/pdb/palette_select.pdb
* tools/pdbgen/pdb/palettes.pdb
* tools/pdbgen/pdb/paths.pdb
* tools/pdbgen/pdb/pattern_select.pdb
* tools/pdbgen/pdb/patterns.pdb
* tools/pdbgen/pdb/selection.pdb
* tools/pdbgen/pdb/text_tool.pdb
* tools/pdbgen/pdb/transform_tools.pdb: pass the new context
parameter to the changed core functions.
* app/pdb/*_cmds.c: regenerated.
2004-04-14 23:37:34 +00:00
Michael Natterer
6eb772946b
libgimpwidgets/gimpquerybox.c configure the labels in the message dialog
...
2003-11-14 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpquerybox.c
* app/widgets/gimpwidgets-utils.c: configure the labels in the
message dialog and the query boxes to do automatic word wrapping
to be HIG compliant.
* app/app_procs.c
* app/batch.c
* app/config/gimpconfig-deserialize.c
* app/config/gimpconfig-path.c
* app/config/gimpconfig-utils.c
* app/config/gimpconfigwriter.c
* app/config/gimpscanner.c
* app/core/gimpbrush.c
* app/core/gimpbrushgenerated.c
* app/core/gimpbrushpipe.c
* app/core/gimpdatafactory.c
* app/core/gimpgradient.c
* app/core/gimpimage-merge.c
* app/core/gimpimage.c
* app/core/gimpimagefile.c
* app/core/gimplayer-floating-sel.c
* app/core/gimppalette.c
* app/core/gimppattern.c
* app/core/gimpselection.c
* app/display/gimpdisplayshell.c
* app/file/file-utils.c
* app/gui/brush-select.c
* app/gui/dialogs-commands.c
* app/gui/drawable-commands.c
* app/gui/edit-commands.c
* app/gui/file-commands.c
* app/gui/file-new-dialog.c
* app/gui/font-select.c
* app/gui/gradient-select.c
* app/gui/gui.c
* app/gui/image-commands.c
* app/gui/layers-commands.c
* app/gui/palette-select.c
* app/gui/palettes-commands.c
* app/gui/pattern-select.c
* app/gui/preferences-dialog.c
* app/gui/select-commands.c
* app/gui/stroke-dialog.c
* app/gui/tool-options-menu.c
* app/gui/vectors-commands.c
* app/gui/view-commands.c
* app/plug-in/plug-in-message.c
* app/plug-in/plug-in.c
* app/plug-in/plug-ins.c
* app/text/gimptextlayer-xcf.c
* app/text/gimptextlayer.c
* app/tools/gimpcurvestool.c
* app/tools/gimphuesaturationtool.c
* app/tools/gimplevelstool.c
* app/tools/gimptransformtool.c
* app/vectors/gimpvectors-export.c
* app/widgets/gimpdatafactoryview.c
* app/widgets/gimphelp.c
* app/widgets/gimptemplateview.c
* app/widgets/gimptooloptionseditor.c
* app/xcf/xcf.c
* tools/pdbgen/pdb/image.pdb: removed explicit newlines from
messages. Reduced number of translatable strings by making many
file error messages the same. Quote single words and filenames
with 'foo', not "foo". Replaced some more "drawable" by "layer".
General message cleanup and consistency check.
* app/pdb/image_cmds.c: regenerated.
2003-11-14 15:33:40 +00:00
Simon Budig
31f7e362ac
New function that appends a duplicate of the source vectors strokes to the
...
2003-11-07 Simon Budig <simon@gimp.org>
* app/vectors/gimpvectors.[ch]: New function that appends a
duplicate of the source vectors strokes to the list of strokes
of a target vectors object.
* app/core/gimpimage-merge.[ch]
* app/core/core-enums.h: Use this new function to merge
the visible vectors in an Image. New Undo type for vectors merging.
* app/core/core-enums.c: regenerated.
* app/gui/vectors-menu.c
* app/gui/vectors-commands.[ch]
* app/widgets/gimphelp-ids.h: New Menu entry + callback to invoke
the merge functionality. New Help ID for the menu entry.
2003-11-07 13:20:52 +00:00
Michael Natterer
7cf4eb467a
removed "visible" and all its API...
...
2003-09-11 Michael Natterer <mitch@gimp.org>
* app/core/gimpdrawable.[ch]: removed "visible" and all its API...
* app/core/gimpitem.[ch]: ...and added it here.
* app/core/core-enums.[ch]
* app/core/gimpimage-undo-push.[ch]: changed the drawable
visibility undo to be an item visibility undo.
* app/xcf/xcf-load.c
* app/xcf/xcf-save.c: save it in PROP_VECTORS and changed channel
and layer loading/saving accordingly.
* app/core/gimpimage-merge.c
* app/core/gimpimage-preview.c
* app/core/gimpimage-projection.c
* app/core/gimpimage.c
* app/core/gimplayer-floating-sel.c
* app/core/gimplayer.c
* app/core/gimpselection.c
* app/text/gimptextlayer.c
* app/gui/channels-commands.c
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: changed accordingly.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpdrawabletreeview.[ch]: removed the eye icon...
* app/widgets/gimpitemtreeview.[ch]: ...and added it here.
2003-09-11 19:52:29 +00:00
Sven Neumann
5cfcf0486a
unref the parasite list before assigning a copy.
...
2003-09-05 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-merge.c (gimp_image_merge_layers): unref
the parasite list before assigning a copy.
2003-09-05 11:53:04 +00:00
Michael Natterer
966fb5595f
don't default to clip_result == TRUE (unlike the other transform
...
2003-05-20 Michael Natterer <mitch@gimp.org>
* app/core/gimpchannel.c (gimp_channel_rotate): don't default to
clip_result == TRUE (unlike the other transform functions).
* app/core/gimpdrawable-transform.c
(gimp_drawable_transform_tiles_rotate): fixed offset calculation.
* app/core/gimpimage-rotate.c: change the image size *after* all items
are rotated. Adjust all items' offsets after rotation. Rotate the
resolutions too. Seems to work now and fixes bug #6101 .
* app/core/gimpimage.c (gimp_image_size_changed): emit
"size_changed" on all vectors.
* app/core/gimpitem-linked.[ch]: added gimp_item_linked_rotate().
* app/gui/drawable-commands.c: flip and rotate linked items too.
* app/vectors/gimpvectors.c (gimp_vectors_rotate): fixed rotation
angles.
Unrelated:
* app/core/gimpimage-merge.c: don't #include "path.h".
2003-05-20 15:26:38 +00:00
Michael Natterer
c1ab39a5e8
removed gimp_drawable_offsets().
...
2003-05-08 Michael Natterer <mitch@gimp.org>
* app/core/gimpdrawable.[ch]: removed gimp_drawable_offsets().
* app/core/gimpitem.[ch]: added gimp_item_offsets().
* app/core/gimpdrawable-blend.c
* app/core/gimpdrawable-bucket-fill.c
* app/core/gimpdrawable-histogram.c
* app/core/gimpedit.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-crop.c
* app/core/gimpimage-mask-select.c
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-pick-color.c
* app/core/gimpimage-preview.c
* app/core/gimpimage-projection.c
* app/core/gimpimage-undo-push.c
* app/core/gimpimage.c
* app/core/gimplayer-floating-sel.c
* app/core/gimplayer.c
* app/display/gimpdisplay.c
* app/display/gimpdisplayshell-transform.c
* app/display/gimpdisplayshell.c
* app/gui/channels-commands.c
* app/gui/layers-commands.c
* app/paint/gimppaintcore.c
* app/tools/gimpbezierselecttool.c
* app/tools/gimpblendtool.c
* app/tools/gimpbucketfilltool.c
* app/tools/gimpbycolorselecttool.c
* app/tools/gimpclonetool.c
* app/tools/gimpcolorpickertool.c
* app/tools/gimpcroptool.c
* app/tools/gimpcurvestool.c
* app/tools/gimpeditselectiontool.c
* app/tools/gimpfliptool.c
* app/tools/gimpfuzzyselecttool.c
* app/tools/gimpinktool.c
* app/tools/gimplevelstool.c
* app/tools/gimppainttool.c
* app/tools/gimprectselecttool.c
* app/tools/gimptransformtool.c
* app/widgets/gimpselectioneditor.c
* app/widgets/gimptoolbox.c
* tools/pdbgen/pdb/color.pdb
* tools/pdbgen/pdb/drawable.pdb: changed accordingly.
* app/pdb/color_cmds.c
* app/pdb/drawable_cmds.c: regenerated.
2003-05-08 14:06:03 +00:00
Michael Natterer
54878b79ce
removed gimp_drawable_width,height().
...
2003-05-08 Michael Natterer <mitch@gimp.org>
* app/core/gimpdrawable.[ch]: removed gimp_drawable_width,height().
* app/core/gimpitem.[ch]: added gimp_item_width,height().
* app/core/gimpchannel.c
* app/core/gimpdrawable-bucket-fill.c
* app/core/gimpdrawable-offset.c
* app/core/gimpdrawable-preview.c
* app/core/gimpdrawable-transform.c
* app/core/gimpimage-contiguous-region.c
* app/core/gimpimage-crop.c
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-preview.c
* app/core/gimpimage-projection.c
* app/core/gimpimage-undo-push.c
* app/core/gimpimage.c
* app/core/gimpimagemap.c
* app/core/gimplayer-floating-sel.c
* app/core/gimplayer.c
* app/core/gimplayermask.c
* app/core/gimpscanconvert.c
* app/display/gimpdisplay.c
* app/display/gimpdisplayshell-dnd.c
* app/display/gimpdisplayshell.c
* app/gui/channels-commands.c
* app/gui/layers-commands.c
* app/paint/gimpclone.c
* app/paint/gimpconvolve.c
* app/paint/gimpdodgeburn.c
* app/paint/gimppaintcore.c
* app/paint/gimpsmudge.c
* app/text/gimptextlayer.c
* app/tools/gimpbezierselecttool.c
* app/tools/gimpbucketfilltool.c
* app/tools/gimpbycolorselecttool.c
* app/tools/gimpclonetool.c
* app/tools/gimpcroptool.c
* app/tools/gimpeditselectiontool.c
* app/tools/gimpfliptool.c
* app/tools/gimpfuzzyselecttool.c
* app/tools/gimphistogramtool.c
* app/tools/gimpinktool.c
* app/tools/gimprectselecttool.c
* app/tools/gimptransformtool.c
* app/widgets/gimpselectioneditor.c
* app/widgets/gimptoolbox.c
* tools/pdbgen/pdb/drawable.pdb
* tools/pdbgen/pdb/selection.pdb: changed accordingly.
* app/pdb/drawable_cmds.c
* app/pdb/selection_cmds.c: regenerated.
2003-05-08 13:12:46 +00:00
Michael Natterer
4136e61ddc
More transform virtualization preparation:
...
2003-05-08 Michael Natterer <mitch@gimp.org>
More transform virtualization preparation:
* app/core/gimpdrawable.[ch]: removed "width", "height", "offset_x"
and "offset_y"...
* app/core/gimpitem.[ch]: ...and added them here.
* app/core/gimpchannel.c
* app/core/gimpdrawable-preview.c
* app/core/gimpdrawable-transform.c
* app/core/gimpedit.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-qmask.c
* app/core/gimpimage-undo-push.c
* app/core/gimplayer-floating-sel.c
* app/core/gimplayer.c
* app/text/gimptext-compat.c
* app/text/gimptextlayer.c
* app/tools/gimptexttool.c
* app/tools/gimptransformtool.c
* app/widgets/gimppreviewrendererdrawable.c
* app/xcf/xcf-load.c
* app/xcf/xcf-save.c
* tools/pdbgen/pdb/layer.pdb: changed accordingly.
* app/pdb/layer_cmds.c: regenerated.
2003-05-08 11:52:31 +00:00
Sven Neumann
28fddfd554
Makefile.am removed this header file.
...
2003-03-25 Sven Neumann <sven@gimp.org>
* Makefile.am
* gimpintl.h: removed this header file.
* gimpmiscui.c: include libgimp-intl.h.
* gimp.c (gimp_main): call setlocale() and bind to the libgimp
textdomain so that plug-ins don't need to do that explicitely.
* libgimp/stdplugins-intl.h: added the functionality that used to
live in gimpintl.h and removed the libgimp related stuff. Got rid
of the INIT_I18N_UI() macro.
* plug-ins/*/*.c: removed all occurances of INIT_I18N_UI().
Plug-ins simply call INIT_I18N() once in their run() function.
* plug-ins/script-fu/script-fu-intl.h: added the functionality
that used to live in gimpintl.h and removed the libgimp related
stuff.
* app/Makefile.am
* app/gimp-intl.h: new file that defines the gettext macros for
the GIMP core.
* app/*/*.c: include gimp-intl.h instead of libgimp/gimpintl.h.
* plug-ins/script-fu/scripts/test-sphere.scm: fixed typos.
2003-03-25 16:38:19 +00:00
Michael Natterer
884b3aa7a3
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
...
2003-03-17 Michael Natterer <mitch@gimp.org>
Made drawable/layer properties (visibility, opacity etc.)
undoable (fixes bug #73893 ).
* app/core/core-enums.[ch]: added undo types/groups for
visibility, mode, opacity, linked and preserve_trans.
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
ref'ed GimpItem pointer so (1) this doesn't need to be done by all
undo steps related to an item and (2) the item the undo step is
for can be determined from outside the undo system.
* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
which returns a new GimpItemUndo.
* app/core/gimpimage-undo-push.[ch]: use it for all item related
undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
and GimpVectors pointers from the private undo structs. Added
undo push functions for the new undo types added above.
* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
"gboolean push_undo" parameter.
* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
_preserve_trans, _linked): added "gboolean push_undo" parameters.
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimplayer-floating-sel.c
* app/tools/gimpmovetool.c
* app/xcf/xcf-load.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c: changed accordingly.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
the foo_accessors() functions. Removed $func from foo_accesors()
because we don't manipulate items without using getters/setters
any longer.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
which carries an additional "GdkModifierType state" parameter as
in GimpCellRendererViewable .
* app/widgets/gimpcontainertreeview.c: emit "clicked" from
the toggle renderer, not "toggled" so the callbacks get the
modifier state.
* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
visible by <shift>+click" feature as in 1.2.
* app/widgets/gimplayertreeview.c: compress layer opacity undos by
looking at the top of the undo stack and not pushing an undo if
there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
layer.
2003-03-17 18:02:41 +00:00