Commit graph

5062 commits

Author SHA1 Message Date
Sven Neumann 9e1604a973 coding style improvements.
2007-06-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psd-save.c: coding style improvements.


svn path=/trunk/; revision=22791
2007-06-16 13:16:34 +00:00
Sven Neumann 373b6bfc9f applied patch from Eric Ross that changes the PSD save plug-in to save an
2007-06-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psd-save.c: applied patch from Eric Ross that
	changes the PSD save plug-in to save an extra data block with 
the
	layer names in UCS-2 encoding (bug #447267).


svn path=/trunk/; revision=22790
2007-06-16 13:04:08 +00:00
Mukund Sivaraman ad6bb7664f prepend instead of appending to list (patch written earlier).
2007-06-15  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/gfig/gfig-dobject.c: prepend instead of appending to
        list (patch written earlier).


svn path=/trunk/; revision=22786
2007-06-15 08:32:13 +00:00
Mukund Sivaraman 152f2a28f9 prepend instead of appending to list.
2007-06-13  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-load.c: prepend instead of appending to list.


svn path=/trunk/; revision=22775
2007-06-13 17:31:02 +00:00
Kevin Cozens 182b2e27f8 Update "cursor" after writing characters to a string buffer. Fixes bug
2007-06-13  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c (putchars): Update "cursor"
	after writing characters to a string buffer. Fixes bug #446884.

svn path=/trunk/; revision=22774
2007-06-13 15:47:01 +00:00
Mukund Sivaraman 0a1285fdae small fix to the previous commit in how layers are skipped.
2007-06-13  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-load.c: small fix to the previous commit
        in how layers are skipped.


svn path=/trunk/; revision=22770
2007-06-13 11:43:08 +00:00
Mukund Sivaraman a8ab7fad18 don't load any layers from a TIFF directory which don't match the mode of
2007-06-13  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-load.c: don't load any layers from a TIFF
        directory which don't match the mode of the first image in the TIFF 
        directory.


svn path=/trunk/; revision=22769
2007-06-13 09:57:43 +00:00
Raphael Quinet eab19066db Instead of passing any file to libexif blindly, check first that some JPEG
2007-06-12  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/jpeg/jpeg-load.c (load_image): Instead of passing any
	file to libexif blindly, check first that some JPEG APP1 marker
	contains the EXIF header.

	* plug-ins/jpeg/jpeg-exif.c (jpeg_apply_exif_data_to_image):
	removed the tests that were checking for the presense of some EXIF
	tags such as the EXIF version before deciding if the data should
	be processed or not (bug #446809).

svn path=/trunk/; revision=22766
2007-06-12 18:13:09 +00:00
Sven Neumann 5ead9fdacd initialize the GtkAdjustment used for the rotation angle; fixes bug
2007-06-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/curve_bend.c: initialize the GtkAdjustment used
	for the rotation angle; fixes bug #446681.

svn path=/trunk/; revision=22765
2007-06-12 14:19:01 +00:00
Sven Neumann dfeaec0861 applied slightly modified patch from Eric Ross that adds support for
2007-06-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psd-load.c: applied slightly modified patch 
from
	Eric Ross that adds support for loading long layer names from 
the
	extra layer data section (bug #445316).


svn path=/trunk/; revision=22763
2007-06-12 06:37:34 +00:00
Michael Schumacher ae37e4e257 if load_image fails, return GIMP_PDB_EXECUTION_ERROR
2007-06-11  Michael Schumacher  <schumaml@cvs.gnome.org>

	* plug-ins/common/raw.c (run): if load_image fails, return
	GIMP_PDB_EXECUTION_ERROR 

	* plug-ins/twain/twain.c (run): added missing ;

svn path=/trunk/; revision=22759
2007-06-11 20:40:32 +00:00
Sven Neumann 3ce6de2bb1 moved run_mode initialisation up a few lines.
2007-06-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/twain/twain.c (run): moved run_mode initialisation up 
a
	few lines.


svn path=/trunk/; revision=22755
2007-06-11 18:02:20 +00:00
Sven Neumann 65385a4781 added gimp_image_resize_to_selection().
2007-06-09  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-resize.[ch]: added
	gimp_image_resize_to_selection().

	* app/actions/image-actions.c
	* app/actions/image-commands.[ch]
	* app/widgets/gimphelp-ids.h
	* menus/image-menu.xml.in: added an action and a menu item for 
it.
	Fixes bug #335672.

	* plug-ins/common/align_layers.c: resolved a conflicting 
mnemonic.


svn path=/trunk/; revision=22749
2007-06-09 17:17:30 +00:00
Kevin Cozens dabf16b162 Applied patch from Daniel Richard G. that defines SCHEME_EXPORT as extern
2007-06-08  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.h: Applied patch from Daniel
	Richard G. that defines SCHEME_EXPORT as extern for non-Windows
	systems. Fixes bug #444964.

svn path=/trunk/; revision=22747
2007-06-08 15:32:23 +00:00
Mukund Sivaraman c2d1214551 Changed "The GIMP" to "GIMP" everywhere, where it's used as a name.
2007-06-06  Mukund Sivaraman  <muks@mukund.org>

        Changed "The GIMP" to "GIMP" everywhere, where it's used as a name.


svn path=/trunk/; revision=22715
2007-06-06 08:44:52 +00:00
Michael Natterer 7b1d0ce92c don't expand the row we are going to, only its parent node.
2007-06-05  Michael Natterer  <mitch@gimp.org>

	* plug-ins/helpbrowser/dialog.c (browser_dialog_goto_index): don't
	expand the row we are going to, only its parent node.


svn path=/trunk/; revision=22714
2007-06-05 14:51:42 +00:00
Simon Budig 95a23ed0dd Oops, quick fix.
svn path=/trunk/; revision=22713
2007-06-05 14:33:44 +00:00
Simon Budig d54d09d050 plug-ins/common/tiff-load.c Implement the proposed scheme for storing
2007-06-05  Simon Budig  <simon@gimp.org>

	* plug-ins/common/tiff-load.c
	* plug-ins/common/tiff-save.c: Implement the proposed scheme for
	storing international path names in TIFF files.


svn path=/trunk/; revision=22712
2007-06-05 14:26:42 +00:00
Sven Neumann c2758fcc61 plug-ins/helpbrowser/dialog.c plug-ins/imagemap/imap_browse.c
2007-06-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/dialog.c
	* plug-ins/imagemap/imap_browse.c
	* plug-ins/imagemap/imap_preview.c
	* plug-ins/imagemap/imap_selection.c: added const qualifiers.

svn path=/trunk/; revision=22711
2007-06-05 14:15:50 +00:00
Michael Natterer fe6787a105 new function which takes an uri and selects its item from the index tree.
2007-06-05  Michael Natterer  <mitch@gimp.org>

	* plug-ins/helpbrowser/dialog.[ch] (browser_dialog_goto_index):
	new function which takes an uri and selects its item from the
	index tree.

	* plug-ins/helpbrowser/helpbrowser.c (temp_proc_run): use it to
	select the right tree item when invoked from gimp.


svn path=/trunk/; revision=22710
2007-06-05 13:24:15 +00:00
Michael Natterer 54016ed370 keep a reverse mapping uri -> GtkTreeIter around and use it to select the
2007-06-05  Michael Natterer  <mitch@gimp.org>

	* plug-ins/helpbrowser/dialog.c: keep a reverse mapping
	uri -> GtkTreeIter around and use it to select the currently
	displayed help page in the index tree.


svn path=/trunk/; revision=22709
2007-06-05 12:34:17 +00:00
Sven Neumann 6ebc273959 applied patch from Saul Goode that enables Distress Selection for
2007-06-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/distress-selection.scm: applied patch
	from Saul Goode that enables Distress Selection for grayscale images.

svn path=/trunk/; revision=22706
2007-06-04 16:18:32 +00:00
Kevin Cozens ca3c9634a4 Removed spurious call to 'gimp-image-undo-disable'. From a patch by Saul
2007-06-03  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/round-corners.scm: Removed spurious
	call to 'gimp-image-undo-disable'. From a patch by Saul Goode.

svn path=/trunk/; revision=22697
2007-06-04 00:43:19 +00:00
Sven Neumann 3f1114859f allocate structs using GSlice.
2007-05-31  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/queue.c:  allocate structs using GSlice.

svn path=/trunk/; revision=22684
2007-05-31 12:25:42 +00:00
Mukund Sivaraman 2957d402cf plug-ins/Lighting/lighting_ui.c Specify maximum field width in fscanf() to
2007-05-31  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/Lighting/lighting_ui.c
        * plug-ins/FractalExplorer/Dialogs.c: Specify maximum field width in   
        fscanf() to avoid buffer overflows.


svn path=/trunk/; revision=22683
2007-05-31 10:35:06 +00:00
Mukund Sivaraman 1bf9e5623a Specify maximum field width in sscanf() to avoid buffer overflows.
2007-05-31  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/gfig/gfig.c: Specify maximum field width in sscanf() to
        avoid buffer overflows.


svn path=/trunk/; revision=22682
2007-05-31 10:30:46 +00:00
Mukund Sivaraman 97ded8c030 Don't write to an uninitialized pointer (end).
2007-05-31  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/spheredesigner.c: Don't write to an uninitialized  
        pointer (end).


svn path=/trunk/; revision=22681
2007-05-31 10:15:06 +00:00
Mukund Sivaraman 43360ede74 Specify maximum field width in sscanf() to avoid buffer overflows.
2007-05-31  Mukund Sivaraman  <muks@mukund.org> 

        * plug-ins/gfig/gfig-style.c: Specify maximum field width in
        sscanf() to avoid buffer overflows.


svn path=/trunk/; revision=22680
2007-05-31 10:09:06 +00:00
Mukund Sivaraman 188196bdaf Specify maximum field width in fscanf() to avoid buffer overflows.
2007-05-31  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/gflare/gflare.c: Specify maximum field width in
        fscanf() to avoid buffer overflows.


svn path=/trunk/; revision=22679
2007-05-31 10:01:44 +00:00
Mukund Sivaraman c5fafe783f Added format strings to dangerous fprintf() calls without them which
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/mail.c: Added format strings to dangerous  
        fprintf() calls without them which directly print variable data.       


svn path=/trunk/; revision=22678
2007-05-30 17:57:26 +00:00
Mukund Sivaraman bf49055820 Use a macro for size of style text entries array.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/gfig/gfig-style.c: Use a macro for size of style text
        entries array.  


svn path=/trunk/; revision=22677
2007-05-30 17:48:50 +00:00
Mukund Sivaraman 7a377dafe2 Replaced hardcoded constant with sizeof array.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/decompose.c: Replaced hardcoded constant with
        sizeof array.


svn path=/trunk/; revision=22676
2007-05-30 17:40:22 +00:00
Mukund Sivaraman e6d21475d3 Replaced g_malloc()+sprintf() with more safe g_strdup_printf().
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/gtm.c: Replaced g_malloc()+sprintf() with more
        safe g_strdup_printf().


svn path=/trunk/; revision=22675
2007-05-30 17:37:42 +00:00
Mukund Sivaraman 5163b6fcd0 Use strncpy() instead of strcpy() to avoid buffer overflows.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/decompose.c: Use strncpy() instead of strcpy() to
        avoid buffer overflows.


svn path=/trunk/; revision=22674
2007-05-30 17:26:24 +00:00
Mukund Sivaraman f111033d15 Specify maximum field width in sscanf() to avoid buffer overflows.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/compose.c: Specify maximum field width in
        sscanf() to avoid buffer overflows.


svn path=/trunk/; revision=22673
2007-05-30 17:15:38 +00:00
Mukund Sivaraman edd086bb5f Specify maximum field width in fscanf() to avoid buffer overflows.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/channel_mixer.c: Specify maximum field width in
        fscanf() to avoid buffer overflows.


svn path=/trunk/; revision=22672
2007-05-30 17:11:13 +00:00
Mukund Sivaraman 97ab35b5ea Check and handle case where number of style items read can overflow the
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/gfig/gfig-style.c: Check and handle case where number of
        style items read can overflow the buffer.


svn path=/trunk/; revision=22671
2007-05-30 16:44:38 +00:00
Mukund Sivaraman 5cb2e5c6b5 Replaced use of g_new()+strcpy() with g_strdup().
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/gfig/gfig-style.c: Replaced use of g_new()+strcpy() with
        g_strdup().


svn path=/trunk/; revision=22670
2007-05-30 16:40:25 +00:00
Mukund Sivaraman dbe7d7af81 Use strncpy() instead of strcpy() to avoid buffer overflows.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/winsnap/winsnap.c: Use strncpy() instead of strcpy() to  
        avoid buffer overflows.


svn path=/trunk/; revision=22669
2007-05-30 16:22:45 +00:00
Mukund Sivaraman a3b97fc77a Replaced use of g_malloc()+strcpy() with g_strdup().
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/xjt/xjt.c: Replaced use of g_malloc()+strcpy() with
        g_strdup().


svn path=/trunk/; revision=22668
2007-05-30 16:14:03 +00:00
Mukund Sivaraman ddd9121be0 Use strncpy() instead of strcpy() to avoid buffer overflows.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/gqbist.c: Use strncpy() instead of strcpy() to
        avoid buffer overflows.


svn path=/trunk/; revision=22667
2007-05-30 16:00:10 +00:00
Mukund Sivaraman 8b3e91c015 Use strncpy() instead of strcpy() to avoid buffer overflows.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/gtm.c: Use strncpy() instead of strcpy() to avoid
        buffer overflows.


svn path=/trunk/; revision=22666
2007-05-30 15:54:00 +00:00
Mukund Sivaraman 327a683cd4 Removed redundant image_ID declaration that shadowed an outer variable
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/jpeg/jpeg.c: Removed redundant image_ID declaration that
        shadowed an outer variable needlessly (found using Splint).


svn path=/trunk/; revision=22665
2007-05-30 14:10:10 +00:00
Mukund Sivaraman 23ff5cc24f Initialize spline.linearity before use.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/sel2path/fit.c: Initialize spline.linearity before use.


svn path=/trunk/; revision=22663
2007-05-30 13:13:21 +00:00
Mukund Sivaraman f136f00756 Initialize spline.linearity before use.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/sel2path/spline.c: Initialize spline.linearity before use.


svn path=/trunk/; revision=22662
2007-05-30 12:54:15 +00:00
Mukund Sivaraman eedd56c67a plug-ins/script-fu/re/split.c plug-ins/script-fu/re/split.h
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/script-fu/re/split.c
        * plug-ins/script-fu/re/split.h
        * plug-ins/script-fu/re/main.c
        * plug-ins/script-fu/re/Makefile.am: Created a header file (split.h)
        and added a prototype for split().


svn path=/trunk/; revision=22661
2007-05-30 12:02:11 +00:00
Mukund Sivaraman f67306c1d3 Added missing include.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * app/tools/gimpdrawtool.c: Added missing include.

        * app/tools/gimpbycolorselecttool.c: Removed unused variable.

        * app/plug-in/gimpenvirontable.c: Added cast for callback function.

        * plug-ins/script-fu/tinyscheme/scheme.c: Correctly cast pointer to
        an long integer type.


svn path=/trunk/; revision=22659
2007-05-30 11:49:14 +00:00
Sven Neumann 2e32d33c6d set a filename based on the image name. Based on a patch from Kevin
2007-05-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_file.c (do_file_save_as_dialog): set a
	filename based on the image name. Based on a patch from Kevin
	Hurewitz (bug #317916).

	* plug-ins/twain/tw_mac.c: don't use C++ style comments.


svn path=/trunk/; revision=22658
2007-05-30 07:23:10 +00:00
Sven Neumann bb89e53743 minor code cleanup.
2007-05-29  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/postscript.c: minor code cleanup.

svn path=/trunk/; revision=22657
2007-05-29 15:29:37 +00:00
Mukund Sivaraman c705096434 Use C89 declarations.
2007-05-29  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/imagemap/imap_object.c: Use C89 declarations.


svn path=/trunk/; revision=22646
2007-05-29 02:31:15 +00:00