1. 18 May, 2003 2 commits
  2. 17 May, 2003 4 commits
    • Michael Natterer's avatar
      Fixed File->Revert, which was completely broken before: · 9252db58
      Michael Natterer authored
      2003-05-17  Michael Natterer  <mitch@gimp.org>
      
      	Fixed File->Revert, which was completely broken before:
      
      	* app/gui/file-commands.c (file_revert_confirm_callback): set the
      	new image on all GimpContexts which had the old image set.  Unref
      	the new image after the displays are reconnected.
      
      	Added some paranoia code for similar future situations (the
      	functions below were not broken, but affected by the above bug):
      
      	* app/display/gimpdisplay-handlers.c (gimp_display_disconnect):
      	set gdisp->gimage to NULL before unrefing the image.
      
      	* app/widgets/gimpimagedock.c (gimp_image_dock_image_changed):
      	unref the gimage pointer returned by g_object_get() only if it is
      	non-NULL. Cleanup.
      9252db58
    • Michael Natterer's avatar
      treat the empty string as NULL filename. Fixes bug #113179. · 00645531
      Michael Natterer authored
      2003-05-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.c (gimp_image_set_filename): treat the empty
      	string as NULL filename. Fixes bug #113179.
      00645531
    • Dave Neary's avatar
      plug-ins/script-fu/scripts/alien-glow-button.scm · b53cdf5f
      Dave Neary authored
      
      2003-05-17  Dave Neary  <bolsh@gimp.org>
      
              * plug-ins/script-fu/scripts/alien-glow-button.scm
              * plug-ins/script-fu/scripts/beveled-button.scm
              * plug-ins/script-fu/scripts/beveled-pattern-button.scm:
              Applied patch from Tor Lilliqvist <tml@iki.fi> which
              fixes the same problem as that reported in bug #77572.
      b53cdf5f
    • Pedro Gimeno's avatar
      This change was not committed because of a slip in the CVS command line: · e34d3621
      Pedro Gimeno authored
      2003-05-14  Pedro Gimeno  <pggimeno@wanadoo.es>
      
      	This change was not committed because of a slip in the CVS
      	command line:
      
      	* plug-ins/common/blur.c (blur): Ported a change from STABLE
      	branch that might fix bug #84731.
      e34d3621
  3. 16 May, 2003 7 commits
    • Dave Neary's avatar
      Applied patch from Tor Lilliqvist <tml@iki.fi> to fix bug #77572. · b0542b90
      Dave Neary authored
      
      2003-05-16  Dave Neary  <bolsh@gimp.org>
      
              * plug-ins/script-fu/scripts/pupi-button.scm: Applied
              patch from Tor Lilliqvist <tml@iki.fi> to fix bug #77572.
      b0542b90
    • Dave Neary's avatar
      plug-ins/common/edge.c plug-ins/common/tiff.c plug-ins/common/mail.c · 2e7c6020
      Dave Neary authored
      
      2003-05-16  Dave Neary  <bolsh@gimp.org>
      
              * plug-ins/common/edge.c
              * plug-ins/common/tiff.c
              * plug-ins/common/mail.c
              * plug-ins/webbrowser/webbrowser.c: Removed GPL
              conflicting parts of permission notices on these files,
              in line with what has been said in bug #83362.
      2e7c6020
    • Dave Neary's avatar
      Changed licence for Graeme Gill's code in this filter. Fixes part of bug · d5d065e0
      Dave Neary authored
      
      
      2003-05-16  Dave Neary  <bolsh@gimp.org>
      
              * plug-ins/common/nlfilt.c: Changed licence for Graeme
              Gill's code in this filter. Fixes part of bug #83362.
      d5d065e0
    • Michael Natterer's avatar
      app/vectors/gimpbezierstroke.[ch] app/vectors/gimpstroke.[ch] · 0c673105
      Michael Natterer authored
      2003-05-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/vectors/gimpbezierstroke.[ch]
      	* app/vectors/gimpstroke.[ch]
      	* app/vectors/gimpvectors-preview.c
      	* app/vectors/gimpvectors.[ch]: massive cleanup / code review:
      	Made default implementations real ones. Don't add "const" to
      	call-by-value parameters. Iterate lists using for() loops. Moved
      	variables to local scopes. Removed tabs. Indentation. Stuff...
      
      	* app/vectors/gimpstroke.[ch]: added unused "gboolean closed"
      	member.
      0c673105
    • Michael Natterer's avatar
      added "gboolean cut_image" parameter so we can float selections without · 9981c464
      Michael Natterer authored
      2003-05-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.[ch] (gimp_image_mask_extract): added
      	"gboolean cut_image" parameter so we can float selections
      	without cutting them from the original drawable.
      
      	* app/gui/select-commands.c
      	* tools/pdbgen/pdb/selection.pdb: pass cut_image == TRUE.
      
      	* app/pdb/selection_cmds.c: regenerated.
      
      	* app/tools/tools-enums.[ch]: added SELECTION_MOVE_COPY value
      	to the SelectOps enum.
      
      	* app/tools/gimpselectiontool.c: use the new mode when
      	<ctrl>+<alt>-dragging a selction (yes, this is evil but there are
      	no modifiers left).
      
      	* app/tools/gimpeditselectiontool.[ch]: extended EditType enum by
      	EDIT_MASK_COPY_TO_LAYER_TRANSLATE and pass cut_image == FALSE if
      	it's passed to init_edit_selection().
      
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimprectselecttool.c: pass the new mode to
      	GimpEditSelectionTool.
      9981c464
    • Michael Natterer's avatar
      added dialog_factory and dialog_identifier parameters to the constructors · a8598c69
      Michael Natterer authored
      2003-05-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/color-notebook.[ch]: added dialog_factory and
      	dialog_identifier parameters to the constructors and register the
      	color_notebook with the passed factory as foreign dialog.
      
      	* app/widgets/gimpcolorpanel.c: changed accordingly.
      
      	* app/gui/dialogs.c
      	* app/gui/colormap-editor-commands.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/palette-editor-commands.c
      	* app/widgets/gimptoolbox-color-area.c: added session management for
      	the color notebooks created here.
      a8598c69
    • Michael Natterer's avatar
      call vectors_selection_to_vectors() instead of #warning about being · 4dcf2131
      Michael Natterer authored
      2003-05-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/vectors-commands.c (vectors_sel_to_vectors_cmd_callback):
      	call vectors_selection_to_vectors() instead of #warning about
      	being unimplemented.
      4dcf2131
  4. 15 May, 2003 16 commits
    • Michael Natterer's avatar
      fixed some bugs and warnings in the ported functions. · fb8c6aff
      Michael Natterer authored
      2003-05-16  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/paths.pdb: fixed some bugs and warnings in
      	the ported functions.
      
      	* app/pdb/paths_cmds.c: regenerated.
      fb8c6aff
    • Sven Neumann's avatar
      fixed ChangeLog mess · 79fef5ba
      Sven Neumann authored
      79fef5ba
    • Sven Neumann's avatar
      app/pdb/fileops_cmds.c this change should fix file_load_thumbnail() for · 6d347d38
      Sven Neumann authored
      2003-05-16  Sven Neumann  <sven@gimp.org>
      
      	* app/pdb/fileops_cmds.c
      	* tools/pdbgen/pdb/fileops.pdb: this change should fix
      	file_load_thumbnail() for images with alpha channel by blending
      	the resulting tempbuf on a checkerboard (bug #113033).
      6d347d38
    • Jan Morén's avatar
      Updated Swedish translation. · 6a4e9501
      Jan Morén authored
      2003-05-15  Jan Morén  <jan.moren@lucs.lu.se>
      
               * sv.po: Updated Swedish translation.
      6a4e9501
    • Michael Natterer's avatar
      removed generation of includes for enums since including "pdb-types.h" is · a05d2c63
      Michael Natterer authored
      2003-05-15  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/app.pl (declare_args): removed generation of
      	includes for enums since including "pdb-types.h" is sufficient
      	now.
      
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/convert_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_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_tools_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      a05d2c63
    • Michael Natterer's avatar
      removed PDB access to the old paths and ported everything to GimpVectors. · ecbbb962
      Michael Natterer authored
      2003-05-15  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/paths.pdb: removed PDB access to the old paths
      	and ported everything to GimpVectors. Note that everything except
      	gimp_path_set_points() is untested and that
      	gimp_path_get_point_at_dist() is currently unimplemented. Changed
      	order of the generated functions and fixed some help texts.
      
      	* tools/pdbgen/app.pl: removed $tools_eek and $paint_eek hacks
      	because pdb/ doesn't include stuff from tools/ any more and paint/
      	no longer depends on GTK+.
      
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/paths_cmds.c
      	* libgimp/gimppaths_pdb.[ch]: regenerated.
      ecbbb962
    • Sven Neumann's avatar
      fixed typo: use x1 instead of the uninitialized variable x. · 254cfb27
      Sven Neumann authored
      2003-05-15  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable-transform.c
      	(gimp_drawable_transform_tiles_affine): fixed typo: use x1 instead
      	of the uninitialized variable x.
      
      	* app/paint-funcs/paint-funcs-generic.h
      	* app/paint-funcs/paint-funcs.[ch]: removed unused variable
      	has_alpha from blend_pixels() function.
      
      	* app/base/temp-buf.c: cosmetics.
      254cfb27
    • Michael Natterer's avatar
      added new function vectors_selection_to_vectors() which invokes the · 984eef25
      Michael Natterer authored
      2003-05-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/vectors-commands.[ch]: added new function
      	vectors_selection_to_vectors() which invokes the sel2path Plug-In.
      
      	* app/gui/dialogs-constructors.c: make the new function known to
      	GimpVectorTreeView.
      
      	* app/widgets/gimpvectorstreeview.[ch]: Added a "Selection to Path"
      	button anc call the new function.
      984eef25
    • Michael Natterer's avatar
      don't clear the selection after creating the path. Minor cleanups. · 9c48f76b
      Michael Natterer authored
      2003-05-15  Michael Natterer  <mitch@gimp.org>
      
      	* plug-ins/sel2path/sel2path.c: don't clear the selection after
      	creating the path. Minor cleanups.
      9c48f76b
    • Sven Neumann's avatar
      app/pdb/fileops_cmds.c fixed docs for file_save_thumbnail (bug #113033). · 60935d50
      Sven Neumann authored
      2003-05-15  Sven Neumann  <sven@gimp.org>
      
      	* app/pdb/fileops_cmds.c
      	* tools/pdbgen/pdb/fileops.pdb: fixed docs for file_save_thumbnail
      	(bug #113033).
      60935d50
    • Sven Neumann's avatar
      added some sanity checks to temp_buf conversion routines. · 929fef0d
      Sven Neumann authored
      2003-05-15  Sven Neumann  <sven@gimp.org>
      
      	* app/base/temp-buf.c: added some sanity checks to temp_buf
      	conversion routines.
      
      	* tools/pdbgen/pdb/fileops.pdb (file_load_thumbnail_invoker): use
      	GimpImagefile to load a thumbnail. Only works for RGB images yet.
      	This adresses bug #113033.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      
      	* app/file/file-utils.[ch]: removed file_utils_readXVThumb(). It
      	is not needed any longer since GimpImagefile also handles the
      	old-style .xvpics.
      
      	* plug-ins/script-fu/scripts/copy-visible.scm: fixed typo.
      929fef0d
    • Michael Natterer's avatar
      cleaned up the old path saving functions just as the old path loading · 71a578fc
      Michael Natterer authored
      2003-05-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/xcf/xcf-save.c: cleaned up the old path saving functions
      	just as the old path loading ones. Don't use g_slist_foreach() but
      	do everything in one functions. Added error checking for path
      	saving.
      71a578fc
    • Michael Natterer's avatar
      the old paths actually *do* support multiple strokes, they are just all in · 1589a206
      Michael Natterer authored
      2003-05-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/xcf/xcf-load.c (xcf_load_old_path): the old paths actually
      	*do* support multiple strokes, they are just all in one curve.
      	Added support for loading them as separate GimpBezierStrokes.
      1589a206
    • Michael Natterer's avatar
      actually increment the coord index when iterating the coords array. Fixes · c1eddd4f
      Michael Natterer authored
      2003-05-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/vectors/gimpbezierstroke.c
      	(gimp_bezier_stroke_new_from_coords): actually increment the coord
      	index when iterating the coords array. Fixes bug #113049.
      c1eddd4f
    • Sven Neumann's avatar
      added missing reference. · db9569cb
      Sven Neumann authored
      2003-05-15  Sven Neumann  <sven@gimp.org>
      
      	* libgimpwidgets/libgimpwidgets-docs.sgml: added missing reference.
      db9569cb
    • Sven Neumann's avatar
      updated NEWS · 325c9a82
      Sven Neumann authored
      325c9a82
  5. 14 May, 2003 6 commits
    • Pedro Gimeno's avatar
      Ported a change from STABLE branch that might fix bug #84731. · c397a344
      Pedro Gimeno authored
      2003-05-14  Pedro Gimeno  <pggimeno@wanadoo.es>
      
      	* plug-ins/common/blur.c (blur): Ported a change from STABLE
      	branch that might fix bug #84731.
      
      	* plug-ins/gimpressionist/gimp.c
      	* plug-ins/gimpressionist/gimpressionist.c: Don't destroy the
      	global random-state variable before rendering. Fixes bug #113007.
      c397a344
    • Michael Natterer's avatar
      load the old paths into new GimpVectors objects. Old paths are still · a5ddcd73
      Michael Natterer authored
      2003-05-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/xcf/xcf-load.c: load the old paths into new GimpVectors
      	objects. Old paths are still created because new vectors can't be
      	saved yet. Renamed all old path loading functions to
      	xcf_load_old_path*(). Added prototypes for them and reordered them
      	to match the order of the rest of the file. Changed their
      	signatures to match the rest of the file and indented them.
      a5ddcd73
    • Dave Neary's avatar
      Attach default comment to image made by screenshot. Fixes bug #51164 · d97d3b48
      Dave Neary authored
      
      
      2003-05-14  Dave Neary  <bolsh@gimp.org>
      
              * plug-ins/common/screenshot.c: Attach default comment to
              image made by screenshot. Fixes bug #51164
      d97d3b48
    • Michael Natterer's avatar
      app/core/Makefile.am new file for utility functions. Contains · 149e81da
      Michael Natterer authored
      2003-05-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimp-utils.[ch]: new file for utility functions.
      	Contains gimp_rectangle_intersect() for now.
      
      	* app/core/gimpdrawable-transform.c: removed the function here.
      
      	* app/core/gimpdrawable.c (gimp_drawable_resize): use it to
      	determine the amount of pixels to copy between the old and new
      	tile managers. Removed restriction that forced the areas to
      	overlap by at least one pixel.
      
      	* app/core/gimpitem.c (gimp_item_real_transform): removed the
      	restriction here, too.
      
      	* app/core/gimplayer.c (gimp_layer_create_mask): use the new
      	function to decide how much to copy from the selection when
      	creating a mask from it.
      149e81da
    • Michael Natterer's avatar
      changed the TileManager variable names to "orig_tiles" and "new_tiles" in · 5f42f8da
      Michael Natterer authored
      2003-05-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable-transform.[ch]: changed the TileManager
      	variable names to "orig_tiles" and "new_tiles" in the whole file.
      
      	(gimp_drawable_transform_tiles_flip): implement "clip_result".
      	Enables flipping of linked channels.
      5f42f8da
    • Michael Natterer's avatar
      chain up to parent_class->book_removed(), not book_added(). Fixes dock · 3b4c7f2e
      Michael Natterer authored
      2003-05-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpimagedock.c (gimp_image_dock_book_removed):
      	chain up to parent_class->book_removed(), not book_added().  Fixes
      	dock destruction on last book removal.
      3b4c7f2e
  6. 13 May, 2003 5 commits
    • Dave Neary's avatar
      plug-ins/common/csource.c plug-ins/common/jpeg.c If no comment is set on a · ff94661d
      Dave Neary authored
      
      
      2003-05-12  Dave Neary  <bolsh@gimp.org>
      
              * plug-ins/common/csource.c
              * plug-ins/common/jpeg.c
              * plug-ins/common/tiff.c: If no comment is set on a
              GimpImage when it arrives to be saved, don't attach one.
              Fixes bug #98490 - and removes code which does what is
              suggested in bug #98485 as correct behaviour.
      ff94661d
    • Michael Natterer's avatar
      app/xcf/xcf-load.c (xcf_load_channel_props) store the channel's "linked" · 85f5206d
      Michael Natterer authored
      2003-05-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/xcf/xcf-load.c (xcf_load_channel_props)
      	* app/xcf/xcf-save.c (xcf_save_channel_props): store the channel's
      	"linked" state in the XCF. Older GIMPs will complain, but still
      	load the file as if the new property was not there.
      85f5206d
    • Adam D. Moss's avatar
      plug-ins/common/gif.c bolsh got permission from David Koblas to relicense · 0f912427
      Adam D. Moss authored
      
      	* plug-ins/common/gif.c
      	* plug-ins/common/gifload.c: bolsh got permission from David Koblas
              to relicense the prehistoric code that begat the original GIMP GIF
      	plugin, so Koblas' mildly-GPL-unfriendly license boilerplate can
      	finally rest in peace.
      0f912427
    • Michael Natterer's avatar
      added "gboolean clip_result" to GimpItem::flip(). · a4395cea
      Michael Natterer authored
      2003-05-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: added "gboolean clip_result" to
      	GimpItem::flip().
      
      	* app/vectors/gimpvectors.c
      	* app/tools/gimpfliptool.c: changed accordingly.
      
      	* app/core/gimpdrawable.c: implement GimpItem::flip() and
      	GimpItem::transform().
      
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c: chain up in flip() and transform() and do
      	only the layer/channel specific stuff here.
      
      	* app/core/gimpdrawable-transform.[ch]: fixed indentation.
      	(gimp_drawable_transform_tiles_flip): added "gboolean clip_result"
      	and warn that it is not yet implemented.
      	(gimp_drawable_transform_tiles_affine): when transforming a
      	channel set bg_color to transparent. Clip channels (but not layer
      	masks) only if the passed tiles have bpp == 1 (the channel is
      	unfloated).
      	(gimp_drawable_transform_affine): clip all unfloated channels.
      
      	* app/core/gimpitem-linked.[ch]: added gimp_item_linked_get_list()
      	utility function to avoind iterating all layers/channels/vectors
      	in all functions.
      
      	* app/tools/gimptransformtool.c: clip all unfloated channels.
      
      	The clipping fixes above together fix bug #112858.
      a4395cea
    • Michael Natterer's avatar
      s/bg/bg_color/g, cleanup. · 67454469
      Michael Natterer authored
      2003-05-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.c (gimp_image_mask_extract):
      	s/bg/bg_color/g, cleanup.
      67454469