Commit graph

22181 commits

Author SHA1 Message Date
Sven Neumann a16fd95983 minor cleanup.
2007-12-20  Sven Neumann  <sven@gimp.org>

	* app/paint/gimpink.c: minor cleanup.

svn path=/trunk/; revision=24411
2007-12-20 13:37:55 +00:00
Sven Neumann 734ee6ef9f updated last-active attribute for recent contributors.
2007-12-20  Sven Neumann  <sven@gimp.org>

	* authors.xml: updated last-active attribute for recent contributors.

svn path=/trunk/; revision=24410
2007-12-20 11:54:39 +00:00
Sven Neumann 69992efa31 forgot to commit this when I added the new PSD load plug-in
svn path=/trunk/; revision=24409
2007-12-20 11:41:10 +00:00
Sven Neumann 4e8df6af94 configure.in plug-ins/Makefile.am added new PSD load plug-in written by
2007-12-20  Sven Neumann  <sven@gimp.org>

	* configure.in
	* plug-ins/Makefile.am
	* plug-ins/psd: added new PSD load plug-in written by John Marshall.
	This plug-in adds a couple of features. See bug #448181 for details.

	* plug-ins/common/Makefile.am
	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/psd-load.c: removed old psd-load plug-in.

svn path=/trunk/; revision=24408
2007-12-20 11:12:05 +00:00
Sven Neumann 318bcd396d added code for adding a shortcut to the default ICC profile location on
2007-12-20  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpprofilechooserdialog.c: added code for adding 
a
	shortcut to the default ICC profile location on Windows. Based 
on
	a patch by John Marshall (bug #503410).


svn path=/trunk/; revision=24407
2007-12-20 08:26:13 +00:00
Sven Neumann b575b82f82 fixed typo
svn path=/trunk/; revision=24406
2007-12-20 07:29:11 +00:00
Sven Neumann 4c34b6ef38 adopt to changes gimp_documents_save() API.
2007-12-20  Sven Neumann  <sven@gimp.org>

	* app/actions/documents-commands.c 
(documents_clear_cmd_callback):
	adopt to changes gimp_documents_save() API.


svn path=/trunk/; revision=24405
2007-12-20 07:26:50 +00:00
Michael Natterer 1542f99678 app/core/gimp-contexts.[ch] add GErrors to save() and load().
2007-12-19  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-contexts.[ch]
	* app/core/gimp-documents.[ch]: add GErrors to save() and load().

	* app/core/gimp.c
	* app/tools/gimp-tools.c: handle the returned errors.


svn path=/trunk/; revision=24403
2007-12-19 17:45:47 +00:00
Sven Neumann 8ce82f2415 applied patch from John Marshall that fixes handling of PSD files with
2007-12-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psd-load.c: applied patch from John Marshall
	that fixes handling of PSD files with blank layer names (bug 
#504149).


svn path=/trunk/; revision=24401
2007-12-18 20:33:32 +00:00
Kevin Cozens 6e476b9b4a Added extra checks to stop bad syntax in LET*, LET, and LETREC from
2007-12-17  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c: Added extra checks to stop
	bad syntax in LET*, LET, and LETREC from causing a segmentation fault
	in Linux. See SourceForge bug #1817986.

svn path=/trunk/; revision=24400
2007-12-18 20:12:11 +00:00
William Skaggs 3decfb47af Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimpwidgets/gimpstock.h:  fix typo that probably caused
	bug #503834.

svn path=/trunk/; revision=24398
2007-12-18 19:40:56 +00:00
Michael Natterer 91c2453174 app/xcf/xcf-load.c use the proper APIs to get/set many item, layer,
2007-12-18  Michael Natterer  <mitch@gimp.org>

	* app/xcf/xcf-load.c
	* app/xcf/xcf-save.c: use the proper APIs to get/set many item,
	layer, channel and vectors properties instead of reading/writing
	their struct members directly.


svn path=/trunk/; revision=24397
2007-12-18 19:12:43 +00:00
Sven Neumann 1449a6d202 libgimpwidgets/gimpscrolledpreview.c don't rely on the pointer position in
2007-12-18  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpscrolledpreview.c
	* libgimpwidgets/gimpcolorselect.c: don't rely on the pointer
	position in the GdkEventMotion struct, query the pointer instead.

svn path=/trunk/; revision=24396
2007-12-18 17:57:27 +00:00
Sven Neumann 45b5ffb7cf don't rely on the pointer position in the GdkEventMotion struct, query the
2007-12-18  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpgradienteditor.c: don't rely on the pointer
	position in the GdkEventMotion struct, query the pointer instead.

svn path=/trunk/; revision=24395
2007-12-18 17:51:32 +00:00
Sven Neumann 325d7d0f8f minor cleanup.
2007-12-18  Sven Neumann  <sven@gimp.org>

	* app/display/gimpnavigationeditor.c: minor cleanup.

	* app/widgets/gimpnavigationview.c
	(gimp_navigation_view_motion_notify): fixed handling of motion
	events that broke when I introduced the call to
	gdk_event_request_motions().

svn path=/trunk/; revision=24394
2007-12-18 17:43:01 +00:00
Sven Neumann c86291c4f5 app/core/gimppalette-import.c applied slightly modified patch from Nicola
2007-12-18  Sven Neumann  <sven@gimp.org>

	* app/core/gimppalette-import.c
	* app/core/gimppalette-load.[ch]: applied slightly modified patch
	from Nicola Archibald that adds import of colors from CSS files
	(bug #464480).

	* app/core/gimppalette.c (gimp_palette_find_entry): allow to call
	this function on an empty palette.

svn path=/trunk/; revision=24393
2007-12-18 17:01:19 +00:00
Sven Neumann 055086aef2 use the coordinate parameters in tile_data_pointer() instead of adjusting
2007-12-18  Sven Neumann  <sven@gimp.org>

	* app/base/tile-pyramid.c: use the coordinate parameters in
	tile_data_pointer() instead of adjusting the pointer manually.

svn path=/trunk/; revision=24392
2007-12-18 15:40:01 +00:00
Sven Neumann f63b11c3aa sprinkled with const qualifiers.
2007-12-18  Sven Neumann  <sven@gimp.org>

	* app/base/tile-pyramid.c: sprinkled with const qualifiers.

svn path=/trunk/; revision=24391
2007-12-18 15:24:52 +00:00
Sven Neumann 942c8071e4 sprinkled with const qualifiers.
2007-12-18  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs.c: sprinkled with const qualifiers.

svn path=/trunk/; revision=24390
2007-12-18 14:51:55 +00:00
Sven Neumann e080bb1f26 renamed tile_manager_validate() to tile_manager_validate_tile(). If no
2007-12-18  Sven Neumann  <sven@gimp.org>

	* app/base/tile-manager.[ch]: renamed tile_manager_validate() to
	tile_manager_validate_tile(). If no validate_proc is set,
	initialize the tile data to all zero when validating it. This way
	we never hand out uninitialized data and valgrind doesn't need to
	complain any longer.

	* app/base/tile.c: changed accordingly.

	* app/core/gimpselection.c: no need to set an extra validate_proc
	here as the default implementation now does the job for us.

svn path=/trunk/; revision=24389
2007-12-18 13:07:01 +00:00
Sven Neumann 43dfbd1c97 made get_tiles() a method of GimpDrawable.
2007-12-18  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable.[ch]: made get_tiles() a method of
	GimpDrawable.

svn path=/trunk/; revision=24388
2007-12-18 11:20:23 +00:00
Sven Neumann 53f3123847 added code for 1 and 3 bytes per pixel. Fixes bug #504115.
2007-12-18  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-render.c
	(render_image_tile_fault_nearest): added code for 1 and 3 bytes
	per pixel. Fixes bug #504115.


svn path=/trunk/; revision=24387
2007-12-18 08:46:40 +00:00
William Skaggs 50f65eb1b4 Bill Skaggs <weskaggs@primate.udavis.edu>
* plug-ins/common/edge.c: reverted to state pre-12/16.

svn path=/trunk/; revision=24386
2007-12-17 23:25:07 +00:00
Michael Natterer e277fe8f68 add app/gimp-log.o
2007-12-17  Michael Natterer  <mitch@gimp.org>

	* app/Makefile.am (GTKDOC_LIBS): add app/gimp-log.o

	* app/app.types
	* app/app-docs.sgml
	* app/app-sections.txt: updated.


svn path=/trunk/; revision=24385
2007-12-17 15:52:58 +00:00
Jakub Friedl 939708625c Updated Czech translation.
2007-12-17  Jakub Friedl  <jfriedl@suse.cz>

  * cs.po: Updated Czech translation.


svn path=/trunk/; revision=24384
2007-12-17 15:24:04 +00:00
Jakub Friedl 953bdad7fd Updated Czech translation.
2007-12-17  Jakub Friedl  <jfriedl@suse.cz>

  * cs.po: Updated Czech translation.


svn path=/trunk/; revision=24383
2007-12-17 15:12:59 +00:00
Sven Neumann eea8fcda76 minor cleanup.
2007-12-17  Sven Neumann  <sven@gimp.org>

	* app/core/gimpprojection-construct.c (project_intensity): minor
	cleanup.

svn path=/trunk/; revision=24382
2007-12-17 10:45:05 +00:00
Sven Neumann 0c389448fa code cleanup; reduced number of progress updates.
2007-12-17  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpregioniterator.c: code cleanup; reduced number of
	progress updates.

svn path=/trunk/; revision=24381
2007-12-17 09:16:21 +00:00
William Skaggs 12859122c6 Bill Skaggs <weskaggs@primate.udavis.edu>
* plug-ins/common/edge.c: name reverted to "Edge",
	label in combo reverted to "Prewitt", other changes kept.

svn path=/trunk/; revision=24380
2007-12-17 04:59:35 +00:00
William Skaggs 210f27f893 missed in previous commit
svn path=/trunk/; revision=24379
2007-12-16 20:38:53 +00:00
William Skaggs 5b13d23b4e Bill Skaggs <weskaggs@primate.udavis.edu>
* plug-ins/common/edge.c: renamed to "Sharp Edges",
	added "invert" option, other usability tweaks.

svn path=/trunk/; revision=24378
2007-12-16 20:38:02 +00:00
William Skaggs 3987ff4c62 Bill Skaggs <weskaggs@primate.udavis.edu>
* menus/image-menu.xml.in: missed this yesterday

svn path=/trunk/; revision=24377
2007-12-16 18:22:01 +00:00
Sven Neumann 97be7741c8 removed mapcolor.c.
2007-12-16  Sven Neumann  <sven@gimp.org>

	* POTFILES.in: removed mapcolor.c.


svn path=/trunk/; revision=24376
2007-12-16 15:01:05 +00:00
Sven Neumann 65bbd5f9d3 plug-ins/common/plugin-defs.pl re-added psd-load. Looks like Bill
2007-12-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/Makefile.am: re-added psd-load. Looks like 
Bill
	accidentally removed it.


svn path=/trunk/; revision=24375
2007-12-16 14:58:25 +00:00
Sven Neumann 75614f65cc added new function gimp_cairo_set_focus_line_pattern().
2007-12-16  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcairo-utils.[ch]: added new function
	gimp_cairo_set_focus_line_pattern().

	* libgimpwidgets/gimpcellrenderercolor.c
	(gimp_cell_renderer_color_render): use the focus line pattern to
	emphasize the selected entry.

	* app/widgets/gimppaletteview.c (gimp_palette_view_expose): use 
the
	new utility function.

	* libgimpwidgets/gimpwidgets.def: updated.


svn path=/trunk/; revision=24371
2007-12-16 11:15:36 +00:00
William Skaggs 6d92a4a67f Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/widgets/gimphelp-ids.h
	* app/display/gimpdisplayshell-scale.[ch]
	* app/display/gimpnavigationeditor.[ch]
	* app/actions/view-commands.[ch]
	* app/actions/view-commands.c:

	Changed "Fit Image to Window" to "Fill Window", and changed
	"fit-to" to "fill" in all the related things.  Fixes
	bug #490364.

svn path=/trunk/; revision=24370
2007-12-16 02:06:15 +00:00
William Skaggs 52735b8ea8 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/mapcolor.c: removed
	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/Makefile.am: updated accordingly

svn path=/trunk/; revision=24369
2007-12-15 18:41:09 +00:00
Sven Neumann d8d68bd5b5 added utility function to reduce code duplication.
2007-12-14  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c: added utility function to reduce
	code duplication.


svn path=/trunk/; revision=24367
2007-12-14 20:08:39 +00:00
Kevin Cozens 8d38858180 Only return true when numbers are of equal value AND of the same type (ie.
2007-12-14  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c (eqv): Only return true
	when numbers are of equal value AND of the same type (ie. both
	exact or inexact). R5RS compliance fix.

svn path=/trunk/; revision=24366
2007-12-14 19:20:50 +00:00
Jakub Friedl 6251932f76 Updated Czech translation.
2007-12-14  Jakub Friedl  <jfriedl@suse.cz>

  * cs.po: Updated Czech translation.


svn path=/trunk/; revision=24365
2007-12-14 18:28:51 +00:00
Martin Nordholts 1014fca378 Reverted the changes that made GimpRectangleTool keep track of its active
2007-12-14  Martin Nordholts  <martinn@svn.gnome.org>

	Reverted the changes that made GimpRectangleTool keep track of its
	active display in GimpRectangleToolPrivate, the approach is
	broken.

svn path=/trunk/; revision=24364
2007-12-14 17:22:46 +00:00
Michael Natterer 34de04a0a8 use gimp_pdb_get_buffer() which sets a proper error instead of looking up
2007-12-14  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/edit.pdb: use gimp_pdb_get_buffer() which
	sets a proper error instead of looking up the buffers manually.

	* app/pdb/edit_cmds.c: regenerated.


svn path=/trunk/; revision=24363
2007-12-14 14:00:49 +00:00
Michael Natterer db553767cd added GErrors when functions can fail.
2007-12-14  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-edit.[ch]: added GErrors when functions can fail.

	* app/actions/edit-commands.c: handle the returned errors.

	* tools/pdbgen/pdb/edit.pdb: same here (*don't* pass the error as
	usual since these functions never fail but have a boolean return
	value indicating success instead; ugly, but better than having the
	gimp_message() calls in the core). Also changed the named buffer
	cut and copy functions to do the same (never fail but return a
	NULL buffer name on failure), so they behave as documented.

	* app/pdb/edit_cmds.c: regenerated.


svn path=/trunk/; revision=24362
2007-12-14 13:58:10 +00:00
Sven Neumann 146067d737 reduced rounding errors.
2007-12-14  Sven Neumann  <sven@gimp.org>

	* app/base/tile-pyramid.c: reduced rounding errors.

svn path=/trunk/; revision=24361
2007-12-14 08:58:36 +00:00
Martin Nordholts 8208d16bb0 Changed name of `gimp_rectangle_tool_is_active_at' to
2007-12-13  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimprectangletool.[ch]: Changed name of
	`gimp_rectangle_tool_is_active_at' to
	`gimp_rectangle_tool_is_active_on_display'.

	* app/tools/gimpcroptool.c
	* app/tools/gimprectangleselecttool.c: Use the new name.

svn path=/trunk/; revision=24360
2007-12-13 21:48:55 +00:00
Martin Nordholts 54dd1e1fab Simplified my previous ChangeLog entry.
svn path=/trunk/; revision=24359
2007-12-13 21:40:46 +00:00
Martin Nordholts f643d5545c Don't use the `display' member of GimpTool for keeping track of what
2007-12-13  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimprectangletool.[ch]: Don't use the `display' member
	of GimpTool for keeping track of what display the rectangle is
	active on. Instead store the active display in
	GimpRectangleToolPrivate. This change is based on a patch by Bill
	Skaggs.
	(gimp_rectangle_tool_is_active)
	(gimp_rectangle_tool_is_active_at)
	(gimp_rectangle_tool_get_active_display): New public functions for
	GimpRectangleTool active-display interaction.

	* app/tools/gimpellipseselecttool.c
	(gimp_ellipse_select_tool_select): Use the active display of
	GimpRectangleTool instead of tool->display.

	* app/tools/gimprectangleselecttool.c
	(gimp_rect_select_tool_rectangle_changed): Use the active display
	of GimpRectangleTool instead of tool->display.

	* app/tools/gimpcroptool.c
	(gimp_crop_tool_button_press): Use the active display of
	GimpRectangleTool instead of tool->display.

svn path=/trunk/; revision=24358
2007-12-13 21:30:59 +00:00
William Skaggs 4bab078cbe Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/widgets/gimpfiledialog.c (gimp_file_dialog_new): add
	shortcut to user's DOCUMENTS dir, fixes bug #325294.

svn path=/trunk/; revision=24357
2007-12-13 21:19:44 +00:00
Sven Neumann 0a7e4f0745 corrected formula for demultiplying the alpha value.
2007-12-13  Sven Neumann  <sven@gimp.org>

	* app/base/temp-buf.c (temp_buf_demultiply): corrected formula 
for
	demultiplying the alpha value.


svn path=/trunk/; revision=24356
2007-12-13 20:30:29 +00:00
Martin Nordholts 453f54584d Make canceling work a bit better.
2007-12-13  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimprectangletool.c
	(gimp_rectangle_tool_button_release): Make canceling work a bit
	better.

svn path=/trunk/; revision=24355
2007-12-13 20:14:41 +00:00