1. 26 Jan, 2004 5 commits
    • Michael Natterer's avatar
      add the layer to the image before pasting to it. Fixes bug #132504. · dc3ac419
      Michael Natterer authored
      2004-01-26  Michael Natterer  <mitch@gimp.org>
      
      	* plug-ins/script-fu/scripts/unsharp-mask.scm: add the layer to
      	the image before pasting to it. Fixes bug #132504.
      
      	Fixed the underlying problem: make it impossible to attach
      	floating selections to drawables which are not currently part of
      	the image's layer or channel stacks.
      	Also cleaned up image <-> floating_sel interaction:
      
      	* app/core/gimplayer-floating-sel.[ch] (floating_sel_attach):
      	added assertion that the drawable is part of the image (see below).
      	Don't call gimp_image_floating_selection_changed(), it's emitted
      	by gimp_image_add_layer() now.
      
      	(floating_sel_remove)
      	(floating_sel_anchor): don't emit "floating_selection_changed",
      	it's emitted by gimp_image_remove_layer() now.
      
      	(floating_sel_anchor): removed the fix for bug #132162 because
      	gimp_image_remove_layer() behaves correctly now (see below).
      
      	Renamed floating_sel_reset() to floating_sel_activate_drawable().
      	Added g_return_if_fail() all over the place.
      
      	* app/core/gimpimage.[ch]: added new function gimp_image_owns_item()
      	which return TRUE if the passed item is part of the image.
      
      	(gimp_image_add_layer): emit "floating_selection_changed" here if
      	needed.
      
      	(gimp_image_remove_layer): emit "floating_selection_changed" if
      	needed, don't try to activate a layer if we called
      	floating_sel_activate_drawable().
      	This is the real fix for bug #132162.
      
      	* app/core/gimpimage-undo-push.c (undo_pop_layer): apply the same
      	fixes as to gimp_image_add,remove_layer(). Don't call
      	gimp_drawable_invalidate_preview() on the previously active layer
      	because that's done by gimp_image_set_active_layer() now.
      
      	* app/xcf/xcf-load.c: remember the "floating_sel_drawable" in the
      	XcfInfo struct and attach it *after* all layers and channels are
      	loaded to avoid attaching the floating selection to an
      	out-of-image drawable.
      
      	* app/core/gimp-edit.c (gimp_edit_paste)
      	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_affine,
      	gimp_drawable_transform_flip, gimp_drawable_transform_rotate)
      	* app/core/gimpselection.c (gimp_selection_float)
      	* app/text/gimptext-compat.c (text_render): added checks for
      	gimp_image_owns_item() in all functions which can produce
      	floating selections.
      
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/floating_sel.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: added checks for
      	gimp_item_owns_image() and return an execution error if invoked
      	with a drawable which is not part of the image.
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      dc3ac419
    • Michael Natterer's avatar
      store the correct offset of the floating selection's drawable. This bug · 71c94006
      Michael Natterer authored
      2004-01-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/xcf/xcf-save.c (xcf_save_channel): store the correct offset
      	of the floating selection's drawable. This bug has been around
      	since 1.2 (!!!) and made it impossible to save images correctly
      	where the floating selection's drawable was a channel or layer
      	mask.
      71c94006
    • Marco Ciampa's avatar
      Updated italian translation · 56b451e2
      Marco Ciampa authored
      56b451e2
    • Sven Neumann's avatar
      prefer automake-1.7 over 1.8 since there are issues with the latter. · 6055d812
      Sven Neumann authored
      2004-01-26  Sven Neumann  <sven@gimp.org>
      
      	* autogen.sh: prefer automake-1.7 over 1.8 since there are issues
      	with the latter.
      6055d812
    • Manish Singh's avatar
      use memcpy instead of casted assignment for storing HSV values in · d3c82f39
      Manish Singh authored
      2004-01-26  Manish Singh  <yosh@gimp.org>
      
              * app/core/gimpdrawable-blend.c (gradient_fill_region): use memcpy
              instead of casted assignment for storing HSV values in rbd.fg/bg,
              for C99 aliasing compliance.
      
              * app/xcf/xcf-load.c (xcf_load_layer_mask): use a GimpChannel *
              explictly for xcf_load_channel_props, for the above reason.
      
              * app/xcf/xcf-save.c (xcf_save_prop): use a temporary guint32 for
              saving property types, for the above reason.
      
              * app/core/gimpparasitelist.c (gimp_parasite_list_deserialize): plug
              a memory leak, since data is copied on parasite creation.
      d3c82f39
  2. 25 Jan, 2004 8 commits
  3. 24 Jan, 2004 2 commits
    • Michael Natterer's avatar
      fiddle with the passed channel index only for GRAYA drawables, not for all · 00c525ab
      Michael Natterer authored
      2004-01-24  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/color.pdb (levels, curves): fiddle with the
      	passed channel index only for GRAYA drawables, not for all GRAY
      	drawables. Fixes bug #132322.
      
      	* tools/pdbgen/pdb/color.pdb: regenerated.
      
      	* app/tools/gimpcurvestool.[ch]
      	* app/tools/gimplevelstool.[ch]: fixed the same bug here. It never
      	occured because the "channel" field was accidentially initialized
      	with the correct value and never changed after.
      00c525ab
    • Jan Morén's avatar
      Updated Swedish translation. · 8c622bcd
      Jan Morén authored
      2004-01-24  Jan Morén  <jan.moren@lucs.lu.se>
      
               * sv.po: Updated Swedish translation.
      8c622bcd
  4. 23 Jan, 2004 11 commits
  5. 22 Jan, 2004 12 commits
    • Manish Singh's avatar
      plug-ins/common/plugin-defs.pl renamed ps to postscript, so automake · e0954430
      Manish Singh authored
      2004-01-22  Manish Singh  <yosh@gimp.org>
      
              * plug-ins/common/plugin-defs.pl
              * plug-ins/common/Makefile.am: renamed ps to postscript, so automake
              doesn't get confused.
      e0954430
    • Sven Neumann's avatar
      libgimpmodule depends on gmodule-2.0 and gobject-2.0. Incorporate both · 7c313058
      Sven Neumann authored
      2004-01-22  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: libgimpmodule depends on gmodule-2.0 and gobject-2.0.
      	Incorporate both into GMODULE_CFLAGS and GMODULE_LIBS.
      7c313058
    • Ole Laursen's avatar
      Updated Danish translation. · 596b15b4
      Ole Laursen authored
      2004-01-22  Ole Laursen  <olau@hardworking.dk>
      
      	* da.po: Updated Danish translation.
      596b15b4
    • Sven Neumann's avatar
      removed outdated and unmaintained debian package description. The debian · ba1c2b47
      Sven Neumann authored
      2004-01-22  Sven Neumann  <sven@gimp.org>
      
      	* debian/*: removed outdated and unmaintained debian package
      	description. The debian package is well maintained without keeping
      	these files in our CVS tree.
      ba1c2b47
    • Ville Pätsi's avatar
      Added a depedency for libexif · f39c3a43
      Ville Pätsi authored
      * gimp.spec.in: Added a depedency for libexif
      f39c3a43
    • Michael Natterer's avatar
      plug-ins/common/gbr.c store the brush/pattern's name in a parasite · 7d93951d
      Michael Natterer authored
      2004-01-22  Michael Natterer  <mitch@gimp.org>
      
      	* plug-ins/common/gbr.c
      	* plug-ins/common/pat.c: store the brush/pattern's name in a
      	parasite attached to the image. The parasite overrides the
      	RUN_WITH_LAST_VALS logic if it exists. Consistently set the
      	description as the layer's name, but ignore the layer's name
      	when saving because it may have been modified by exporting.
      	Fixes bug #131450.
      
      	Misc. cleanup/fixes: Don't assume that strncpy() nul-terminates
      	the buffer, use sizeof() instead of magic numbers, sanitize
      	descriptions using gimp_any_to_utf8(), always use strncpy()
      	instead of strcpy().
      
      	* devel-docs/parasites.txt: document the "gimp-brush-name" and
      	"gimp-pattern-name" parasites.
      7d93951d
    • Tor Lillqvist's avatar
      Use GIMP_APP_VERSION. · 16353371
      Tor Lillqvist authored
      2004-01-22  Tor Lillqvist  <tml@iki.fi>
      
      	* gimptool-win32.c.in (get_prefix): Use GIMP_APP_VERSION.
      16353371
    • Manish Singh's avatar
      quote AM_PATH_GIMP_2_O properly so automake 1.8 won't whine at us. · d8746873
      Manish Singh authored
      2004-01-21  Manish Singh  <yosh@gimp.org>
      
              * m4macros/gimp-2.0.m4: quote AM_PATH_GIMP_2_O properly so automake
              1.8 won't whine at us.
      d8746873
    • Manish Singh's avatar
      configure.in renamed obnoxiously long fractalexplorer-examples directory · a8a6ecf9
      Manish Singh authored
      2004-01-21  Manish Singh  <yosh@gimp.org>
      
              * configure.in
              * plug-ins/FractalExplorer/Makefile.am: renamed obnoxiously long
              fractalexplorer-examples directory to simply examples.
      a8a6ecf9
    • Manish Singh's avatar
      modernized, made a lot of things m4 macros, and made versioning a lot more · 9db6153f
      Manish Singh authored
      2004-01-21  Manish Singh  <yosh@gimp.org>
      
              * configure.in: modernized, made a lot of things m4 macros, and made
              versioning a lot more finegrained, in anticipation for post-2.0.
      
              * autogen.sh: bumped up libtool and glib minimum requirements to match
              reality.
      
              * gimp-2.0.pc.in
              * gimpthumb-2.0.pc.in
              * gimpui-2.0.pc.in: adapted to new versioning variables, and bring
              in RT_LIBS when needed.
      
              * */*/Makefile.am: adapted to new versioning variables.
      9db6153f
    • Michael Natterer's avatar
      explicitly activate the drawable the floating selection was attached to · 72d7aaae
      Michael Natterer authored
      2004-01-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer-floating-sel.c (floating_sel_anchor):
      	explicitly activate the drawable the floating selection was
      	attached to (function was relying on implicit voodoo that
      	happened 1.2). Fixes bug #132162.
      72d7aaae
    • Michael Natterer's avatar
      added "gboolean use_default_values" to GimpItem::stroke(). · f3c91918
      Michael Natterer authored
      2004-01-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: added "gboolean use_default_values"
      	to GimpItem::stroke().
      
      	* app/core/gimpselection.c: changed accordingly.
      
      	* app/core/gimpchannel.c
      	* app/vectors/gimpvectors.c: if use_default_values is TRUE, don't
      	use the GimpPaintOptions passed in the GimpPaintInfo, but create a
      	new one.
      
      	* app/gui/stroke-dialog.c: pass FALSE so the values as set in the
      	tool options are used.
      
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/paths.pdb: pass TRUE so tool options settings
      	don't affect PDB stroke calls. Fixes part 2 of bug #132145.
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/paths_cmds.c: regenerated.
      f3c91918
  6. 21 Jan, 2004 2 commits