Michael Natterer
5f700549e7
Change the license URL from http://www.gnu.org/licenses/ to https://
2018-07-11 23:29:46 +02:00
Michael Natterer
539927ebfa
app: replace all g_assert() by the newly added gimp_assert()
...
which is just a #define to g_assert for now, but can now easily be
turned into something that does some nicer debugging using our new
stack trace infrastructure. This commit also reverts all constructed()
functions to use assert again.
2018-02-11 22:23:10 +01:00
Michael Natterer
0cb3e75f79
app: use a lot of g_clear_object() and g_clear_pointer()
...
More than 2000 lines of code less in app/, instead of
if (instance->member)
{
g_object_unref/g_free/g_whatever (instance->member);
instance->member = NULL;
}
we now simply use
g_clear_object/pointer (&instance->member);
2017-07-15 18:42:44 +02:00
Michael Natterer
697572ccc0
app,libgimp*: fix includes to follow our include policy
...
- don't include <gdk-pixbuf/gdk-pixbuf.h> in headers in app/
- instead, include it in many .c files instead of <glib-object.h>,
finally acknowledging the fact that app/ depends on gdk-pixbuf almost
globally
- fix up includes as if libgimpbase depended in GIO, which it soon will
2013-10-15 01:58:39 +02:00
Michael Natterer
908f727f0a
Chain up unconditionally in GObject::constructed()
...
It's supported since GLib 2.28.
2012-11-12 21:51:22 +01:00
Michael Natterer
c1b3575648
app: implement GObject::constructed() instead of ::constructor()
2011-01-12 23:06:03 +01:00
Michael Natterer
ea33581451
Use gimp_image_set_size() instead of setting width and height manually
...
This also (really this time) fixes nested group layers. There were
cases when the outer group layer didn't properly resize itself because
gimp_drawable_set_tiles() on the inner group layer failed to emit
notify::width and notify::height.
2009-08-26 13:03:40 +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
Michael Natterer
b994ab724e
app/core/gimp-edit.c app/core/gimpchannel.c
...
2008-11-03 Michael Natterer <mitch@gimp.org>
* app/core/gimp-edit.c
* app/core/gimpchannel.c
* app/core/gimpdrawable-transform.c
* app/core/gimpdrawable.c
* app/core/gimpdrawablemodundo.c
* app/core/gimplayer.c
* app/core/gimplayermask.c
* app/core/gimpselection.c
* app/text/gimptext-compat.c
* app/text/gimptextlayer-xcf.c
* app/vectors/gimpvectorsmodundo.c
* app/widgets/gimpviewrendererdrawable.c
* app/xcf/xcf-load.c
* app/xcf/xcf-save.c
* tools/pdbgen/pdb/layer.pdb: use accessors for item->offset_x,y.
Some minor unrelated cleanups.
* app/pdb/layer-cmds.c: regenerated.
svn path=/trunk/; revision=27537
2008-11-03 21:17:50 +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
Martin Nordholts
24fac1de0f
Move the base GeglNode here in preparation for moving the GimpLayer
...
* app/core/gimpitem.[ch]: Move the base GeglNode here in
preparation for moving the GimpLayer gegl:shift op to here as
well. After all, the offsets are properties of GimpItem and not
GimpLayer.
* app/core/gimpdrawable.[ch]: Delegate appropriate stuff to the
GimpItem base class, like part of the visibility toggling and the
creation and destruction of the GimpItem node.
* app/core/gimplayer.c
* app/core/gimpchannel.c
* app/core/gimpdrawablestack.c: Changed accordingly, use the new
function names.
* app/core/gimpitempropundo.c
* app/vectors/gimpvectors-warp.c
* app/vectors/gimpvectorsmodundo.c: Include gegl.h instead of
glib-object.h
svn path=/trunk/; revision=27521
2008-11-02 16:39:38 +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
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
036085fd9e
app/base/temp-buf.c app/base/tile-manager.c accept NULL in all
...
2007-11-16 Michael Natterer <mitch@gimp.org>
* app/base/temp-buf.c
* app/base/tile-manager.c
* app/core/gimpobject.c: accept NULL in all get_memsize() functions.
* app/core/gimp-utils.[ch]: ditto. Added gimp_string_get_memsize().
* app/core/gimp.c
* app/core/gimpbrush.c
* app/core/gimpbuffer.c
* app/core/gimpcontainer.c
* app/core/gimpcontext.c
* app/core/gimpdata.c
* app/core/gimpdrawable.c
* app/core/gimpdrawablemodundo.c
* app/core/gimpdrawableundo.c
* app/core/gimpimage.c
* app/core/gimpitempropundo.c
* app/core/gimplayer.c
* app/core/gimpmaskundo.c
* app/core/gimppalette.c
* app/core/gimpparasitelist.c
* app/core/gimppattern.c
* app/core/gimppreviewcache.c
* app/core/gimpundo.c
* app/core/gimpundostack.c
* app/core/gimpviewable.c
* app/pdb/gimpprocedure.c
* app/plug-in/gimpplugindef.c
* app/plug-in/gimppluginmanager.c
* app/plug-in/gimppluginprocedure.c
* app/text/gimptext.c
* app/text/gimptextlayer.c
* app/text/gimptextundo.c
* app/vectors/gimpvectorsmodundo.c: simplify
GimpObject::get_memsize() implementations accordingly.
* app/core/gimpimageundo.c: ditto. Always keep around colormaps in
chunks of GIMP_IMAGE_COLORMAP_SIZE to be coonsistent with the
other colormap handling code.
svn path=/trunk/; revision=24174
2007-11-16 18:19:30 +00:00
Michael Natterer
6c01c0db6b
app/vectors/Makefile.am app/vectors/vectors-types.h new undo class for
...
2007-01-31 Michael Natterer <mitch@gimp.org>
* app/vectors/Makefile.am
* app/vectors/vectors-types.h
* app/vectors/gimpvectorsmodundo.[ch]: new undo class for
GIMP_UNDO_VECTORS_MOD.
* app/core/gimpimage-undo-push.c: use it here.
* app/core/gimpdrawablemodundo.h: fix typo in include guard.
svn path=/trunk/; revision=21825
2007-01-31 19:56:41 +00:00