Commit Graph

5047 Commits

Author SHA1 Message Date
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
Manish Singh 6f26979be4 plug-ins/pygimp/gimpcolormodule.c plug-ins/pygimp/gimpenumsmodule.c
2007-05-28  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpcolormodule.c
        * plug-ins/pygimp/gimpenumsmodule.c
        * plug-ins/pygimp/gimpmodule.c
        * plug-ins/pygimp/gimpthumbmodule.c
        * plug-ins/pygimp/gimpuimodule.c
        * plug-ins/pygimp/pygimp-drawable.c
        * plug-ins/pygimp/pygimp-image.c
        * plug-ins/pygimp/pygimp-pdb.c
        * plug-ins/pygimp/pygimp-tile.c: cleanups.

svn path=/trunk/; revision=22644
2007-05-28 22:26:22 +00:00
Sven Neumann 97b41ca939 clamping at 255 is good enough.
2007-05-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gauss.c: clamping at 255 is good enough.


svn path=/trunk/; revision=22637
2007-05-27 22:52:49 +00:00
Sven Neumann 2afa8ea385 clamp to [0;255]. Fixes bug #441681.
2007-05-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gauss.c: clamp to [0;255]. Fixes bug #441681.


svn path=/trunk/; revision=22636
2007-05-27 22:28:52 +00:00
Kevin Cozens 0ce5d22b3b plug-ins/script-fu/script-fu-text-console.c plug-ins/script-fu/script-fu.c
2007-05-25  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/script-fu-text-console.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/script-fu/scheme-wrapper.c
	* plug-ins/script-fu/scheme-wrapper.h: Applied slightly modified
	patch from Eric Lamarque that makes use of TinyScheme's interactive
	mode for the text console in Script-Fu. Fixes bug #440674.

svn path=/trunk/; revision=22622
2007-05-25 17:45:49 +00:00
Sven Neumann 9cea61d6b0 applied patch from Aurimas Juška that fixes use of the GimpZoomPreview
2007-05-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lens.c: applied patch from Aurimas Juška that
	fixes use of the GimpZoomPreview widget (bug #356716).


svn path=/trunk/; revision=22621
2007-05-25 17:04:52 +00:00
Kevin Cozens 32259b03dc Missed commit of this file.
2007-05-25  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/Makefile.am: Missed commit of this file.

	* plug-ins/script-fu/scheme-wrapper.h:
	* plug-ins/script-fu/scheme-wrapper.c (ts_output_string): Updated
	to expect a 'const char *' and an int but no file pointer.

	* plug-ins/script-fu/tinyscheme/scheme.c:
	* plug-ins/script-fu/tinyscheme/scheme.h: Changes due to use of
	'const char *' for ts_output_routine.

svn path=/trunk/; revision=22620
2007-05-25 16:26:46 +00:00
Kevin Cozens c87485d1bf This is the first part of fixing bugs #438997 and #440674.
2007-05-25  Kevin Cozens  <kcozens@cvs.gnome.org>

	This is the first part of fixing bugs #438997 and #440674. 

	* plug-ins/script-fu/scheme-wrapper.c: Removed ts_output_routine
	declaration from here...

	* plug-ins/script-fu/tinyscheme/scheme.h: and added it here.

	* plug-ins/script-fu/tinyscheme/scheme.c (putchars): Updated to be
	smarter about where it's output needs to be sent.

svn path=/trunk/; revision=22619
2007-05-25 15:58:09 +00:00
Sven Neumann ec1161c139 plug-ins/imagemap/imap_main.c applied patch from Kevin Hurewitz that adds
2007-05-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_main.c
	* plug-ins/imagemap/imap_object.[ch]: applied patch from Kevin
	Hurewitz that adds keyboard control for resizing an area (bug 
#439226).


svn path=/trunk/; revision=22609
2007-05-25 07:28:15 +00:00
Manish Singh 1c1ee4dd21 return None if we're passed an ID of -1, like the other GIMP object
2007-05-24  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-display.c (pygimp_display_new): return None
        if we're passed an ID of -1, like the other GIMP object constructors.

svn path=/trunk/; revision=22608
2007-05-25 01:28:31 +00:00
Manish Singh db08253213 remove the delete method, PyGimp objects are supposed to be deleted via
2007-05-24  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-display.c: remove the delete method, PyGimp
        objects are supposed to be deleted via gimp.delete()

svn path=/trunk/; revision=22607
2007-05-25 01:27:48 +00:00
Sven Neumann f98b0de0d6 added an ID attribute and a delete method to the Gimp.Display object.
2007-05-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/pygimp-display.c: added an ID attribute and a
	delete method to the Gimp.Display object.

	* plug-ins/pygimp/gimpshelf.py (_display_id): use the ID 
attribute.

	* plug-ins/pygimp/gimpfu.py: enabled support for PF_DISPLAY.


svn path=/trunk/; revision=22605
2007-05-24 20:12:50 +00:00
Sven Neumann dfc676e2f5 formatting, added const qualifiers.
2007-05-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/bumpmap.c: formatting, added const qualifiers.

svn path=/trunk/; revision=22602
2007-05-24 15:39:44 +00:00
Sven Neumann 8216ba62ed plug-ins/help/gimphelpitem.c plug-ins/help/gimphelplocale.c
2007-05-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/gimphelpitem.c
	* plug-ins/help/gimphelplocale.c
	* plug-ins/help/help.c
	* plug-ins/help/gimphelpdomain.c: allocate structs using GSlice.

svn path=/trunk/; revision=22596
2007-05-23 13:59:51 +00:00
Sven Neumann 30bdffb11e applied patch from Kevin Hurewitz that fixes resizing an area while being
2007-05-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_cmd_move_sash.c (sash_move): applied
	patch from Kevin Hurewitz that fixes resizing an area while being
	zoomed in (bug #439222).

svn path=/trunk/; revision=22593
2007-05-23 11:05:38 +00:00
Tor Lillqvist 9ab35b10ce Use memset() instead of bzero().
2007-05-23  Tor Lillqvist  <tml@novell.com>

	* plug-ins/common/tiff-save.c (save_paths): Use memset() instead
	of bzero().


svn path=/trunk/; revision=22591
2007-05-23 10:23:37 +00:00