Commit Graph

10678 Commits

Author SHA1 Message Date
Sven Neumann 911d267dce added a sanity check for bogus frame dimensions. Fixes bug #169113.
2005-03-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gifload.c (ReadImage): added a sanity check for
	bogus frame dimensions. Fixes bug #169113.
2005-03-03 17:50:41 +00:00
Sven Neumann 6fa94dd8d2 allocate tile-cache size more intelligently.
2005-03-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/autocrop.c: allocate tile-cache size more
	intelligently.
2005-03-03 17:00:44 +00:00
Sven Neumann 3475348866 removed linebreak from macro definition; gtk-doc doesn't like this.
2005-03-03  Sven Neumann  <sven@gimp.org>

	* libgimpconfig/gimpconfig-params.h: removed linebreak from macro
	definition; gtk-doc doesn't like this.
2005-03-03 11:56:20 +00:00
Sven Neumann 522a58a6fe commit ChangeLog entry 2005-03-03 11:42:21 +00:00
Sven Neumann 1848b84ba5 use boolean values to indicate whether a path is linked ("locked").
2005-03-03  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/paths.pdb: use boolean values to indicate
	whether a path is linked ("locked").

	* app/pdb/drawable_cmds.c
	* app/pdb/paths_cmds.c
	* libgimp/gimpdrawable_pdb.c
	* libgimp/gimppaths_pdb.[ch]: regenerated.
2005-03-03 11:10:37 +00:00
Sven Neumann 8e0fe5f3aa added new PDB function gimp_path_import_string() to allow to easily import
2005-03-03  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/paths.pdb: added new PDB function
	gimp_path_import_string() to allow to easily import dynamically
	created SVG.

	* app/pdb/internal_procs.c
	* app/pdb/paths_cmds.c
	* libgimp/gimppaths_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.

	* plug-ins/script-fu/siod-wrapper.c (marshall_proc_db_call):
	removed unused variable.
2005-03-03 11:02:12 +00:00
Manish Singh 5dda6a8219 Add check for ppc64.
2005-03-03  Manish Singh  <yosh@gimp.org>

        * configure.in: Add check for ppc64.
2005-03-03 09:23:48 +00:00
Manish Singh cedeb57631 fix a typo in the docs.
2005-03-03  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/pdb/drawable.pdb: fix a typo in the docs.
2005-03-03 08:48:47 +00:00
Manish Singh 872c501ee6 Make a compatibility wrapper for PyBool_FromLong for pre-2.3 versions of
2005-03-03  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp.h: Make a compatibility wrapper for
        PyBool_FromLong for pre-2.3 versions of python.

        * plug-ins/pygimp/gimpfu.py
        * plug-ins/pygimp/gimpui.py: Update to use some more modern python
        features.

        * plug-ins/pygimp/gimpmodule.c
        * plug-ins/pygimp/pygimp-display.c
        * plug-ins/pygimp/pygimp-drawable.c
        * plug-ins/pygimp/pygimp-image.c
        * plug-ins/pygimp/pygimp-parasite.c
        * plug-ins/pygimp/pygimp-pdb.c
        * plug-ins/pygimp/pygimp-tile.c: Throw exceptions on failures for
        libgimp wrappers (fixes bug #160136), and make the exception strings
        a lot more descriptive to aid debugging. Also return proper Bools when
        appropriate. Some new API wrapped as well. Still a work in progress.

        * plug-ins/pygimp/gimpplugin.py
        * plug-ins/pygimp/gimpshelf.py
        * plug-ins/pygimp/plug-ins/clothify.py
        * plug-ins/pygimp/plug-ins/foggify.py
        * plug-ins/pygimp/plug-ins/sphere.py: Add some whitespace to make
        things more readable.
2005-03-03 08:43:55 +00:00
Sven Neumann fd308340d4 libgimp/gimpdrawablecombobox.c set a width request on the combo boxes.
2005-03-03  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpdrawablecombobox.c
	* libgimp/gimpimagecombobox.c: set a width request on the combo boxes.

	* plug-ins/common/bumpmap.c (SCALE_WIDTH): set a minimum width on
	the scales.
2005-03-03 00:06:28 +00:00
Manish Singh 92d6b9272d libgimp/gimp.[ch] libgimp/gimpdrawable.[ch] changed attach_new_parasite
2005-03-02  Manish Singh  <yosh@gimp.org>

        * libgimp/gimp.[ch]
        * libgimp/gimpdrawable.[ch]
        * libgimp/gimpimage.[ch]: changed attach_new_parasite variants
        to return success or failure.
2005-03-02 23:26:16 +00:00
Sven Neumann 35f692711e moved entry where it belongs 2005-03-02 21:14:06 +00:00
Sven Neumann 2b3bb7d1a0 app/dialogs/resize-dialog.c (resize_dialog_reset) don't rely on GObject
2005-03-02  Sven Neumann  <sven@gimp.org>

	* app/dialogs/resize-dialog.c (resize_dialog_reset)
	* app/dialogs/scale-dialog.c (scale_dialog_reset): don't rely on
	GObject internals about the order in which properties are being
	set. Fixes one aspect of bug #169011.
2005-03-02 21:13:02 +00:00
William Skaggs 80a6700cb0 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/tools-enums.[ch]: oops, missed in previous
	commit.
2005-03-02 20:47:59 +00:00
William Skaggs c31defcbf7 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimprectangletool.c
	* app/tools/gimprectangletool.h
	* app/tools/gimprectangleoptions.c
	* app/tools/gimprectangleoptions.h: new code for base
	class for rectangle tools.

	* app/tools/gimpnewrectselecttool.[ch]: modified to
	derive from GimpRectangleTool.

	* app/tools/Makefile.am: modified accordingly

	* app/tools/gimpselectionoptions.[ch]: remove stuff
	no longer needed by new rect select tool.

	This is work in progress.
2005-03-02 18:18:19 +00:00
William Skaggs d8457740b3 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* gimp/app/widgets/gimpgradienteditor.c: allow dnd of colors
	into preview and control areas, as described in
	bug #119470.
2005-03-02 16:18:47 +00:00
Sven Neumann 61383d1e41 mention the correct files in ChangeLog entry 2005-03-02 13:13:32 +00:00
Sven Neumann c3754839d4 app/text/gimptextlayout.[ch] allow to adjust letter-spacing.
2005-03-02  Sven Neumann  <sven@gimp.org>

	* app/text/gimptextlayout.[ch]
	* app/tools/gimptextoptions.h: allow to adjust letter-spacing.
2005-03-02 12:54:54 +00:00
Manish Singh 7b962482da use g_spawn_async_with_pipes instead of popen. Addresses bug #108659. Also
2005-03-01  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/mail.c: use g_spawn_async_with_pipes instead of
        popen. Addresses bug #108659. Also some general cleanup.

        * plug-ins/common/mblur.c: Fix some typos in comments.
2005-03-02 02:20:02 +00:00
Michael Natterer c7ca43a647 added VISIBLE and LINKED to the GimpImageResizeLayers enum.
2005-03-01  Michael Natterer  <mitch@gimp.org>

	* app/core/core-enums.[ch]: added VISIBLE and LINKED to the
	GimpImageResizeLayers enum.

	* app/core/gimpimage-resize.c (gimp_image_resize_with_layers):
	changed accordingly. Also looks nicer now.
2005-03-01 20:19:53 +00:00
Sven Neumann 1fa722aaa1 plug-ins/ifscompose/ifscompose.[ch] purely cosmetic coding style changes.
2005-03-01  Sven Neumann  <sven@gimp.org>

	* plug-ins/ifscompose/ifscompose.[ch]
	* plug-ins/ifscompose/ifscompose_utils.c: purely cosmetic coding
	style changes.
2005-03-01 15:42:44 +00:00
Kevin Cozens 3f0f5b2932 Fixed marshalling code to treat string arrays as arrays instead of lists
2005-03-01  Kevin Cozens  <kcozens@cvs.gimp.org>

	* plug-ins/script-fu/siod-wrapper.c: Fixed marshalling code to
	treat string arrays as arrays instead of lists of strings. Last
	part of the fix for bug #168290.
2005-03-01 05:50:36 +00:00
Sven Neumann 49005d9bfd removed gimp_enum_combo_box_set_visible().
2005-03-01  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpenumcombobox.[ch]: removed
	gimp_enum_combo_box_set_visible().

	* libgimpwidgets/gimpintcombobox.[ch]: added
	gimp_int_combo_box_set_sensitivity() instead.

	* app/tools/gimpcurvestool.c
	* app/tools/gimplevelstool.c
	* app/widgets/gimphistogrameditor.c: changed accordingly.

	* libgimpwidgets/gimpenumstore.h: added padding for future expansion.

	* libgimpwidgets/gimpwidgets.def: updated.
2005-02-28 23:27:12 +00:00
Sven Neumann d9e6ef3d93 major speedup for dithering code thanks to a suggestion from Jay Cox.
2005-02-28  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable-blend.c: major speedup for dithering code
	thanks to a suggestion from Jay Cox.
2005-02-28 21:52:41 +00:00
Sven Neumann 7684b18117 use g_get_language_names().
2005-02-28  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimphelp.c (gimp_help_get_locales): use
	g_get_language_names().

	* plug-ins/help/locales.c (locales_parse): simplified;
	g_get_language_names() already takes care of this.
2005-02-28 21:23:53 +00:00
Sven Neumann ca3560642d another build fix for compilers that don't support C99 extensions.
2005-02-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_menu.c (menu_build_mru_items): another
	build fix for compilers that don't support C99 extensions.
2005-02-27 20:39:36 +00:00
Sven Neumann de69e05da3 added an "ellipsize" construct property and changed the default behaviour
2005-02-27  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpintcombobox.c: added an "ellipsize" construct
	property and changed the default behaviour back to not doing
	ellipsation on the text.

	* libgimp/gimpimagecombobox.c
	* libgimp/gimpdrawablecombobox.c: set "ellipsize" to middle for
	drawable and image combo boxes.
2005-02-27 19:41:42 +00:00
Sven Neumann 7e6e291e0d improved readability by introducing a macro for the dithering code.
2005-02-27  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable-blend.c: improved readability by
	introducing a macro for the dithering code.
2005-02-27 16:14:33 +00:00
Sven Neumann 7aa3ee2217 fixed rounding errors in the non-dithered case and optimized the dithering
2005-02-27  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable-blend.c: fixed rounding errors in the
	non-dithered case and optimized the dithering code.
2005-02-27 15:47:33 +00:00
Sven Neumann 7f39e41254 improve the threaded performance by using a dedicated RNG per tile.
2005-02-27  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable-blend.c: (hopefully) improve the threaded
	performance by using a dedicated RNG per tile.
2005-02-27 15:06:40 +00:00
Sven Neumann e87c8aa085 app/core/gimpimage-convert-fsdither.h save a kilobyte of data by using
2005-02-27  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-convert-fsdither.h
	* app/core/gimpimage-convertc: save a kilobyte of data by using
	guchar for the range array.
2005-02-27 14:03:50 +00:00
Sven Neumann ddf1d6343f fixed Daniel's ChangeLog entry 2005-02-27 13:58:27 +00:00
Daniel Egger 0add60298a app/base/Makefile.am app/composite/*akefile.am app/config/*akefile.am
2005-02-27  Daniel Egger  <de@axiros.com>

	* app/base/Makefile.am
	* app/composite/*akefile.am
	* app/config/*akefile.am
	* app/core/*akefile.am
	* app/display/*akefile.am
	* app/file/*akefile.am
	* app/paint-funcs/*akefile.am
	* app/pdb/*akefile.am
	* app/plug-in/*akefile.am
	* app/text/*akefile.am
	* app/tools/*akefile.am
	* app/vectors/*akefile.am
	* app/xcf/*akefile.am: Commonized include paths to always look
	in the builddir also to cater for srcdir != builddir builds.
2005-02-27 13:22:01 +00:00
Sven Neumann 644a234f30 fixed my ChangeLog entry 2005-02-27 00:35:53 +00:00
Sven Neumann 8de1e94bb7 removed the "last_visited" field from GimpGradient. Instead added the new
2005-02-27  Sven Neumann  <sven@gimp.org>

	* app/core/gimpgradient.[ch]: removed the "last_visited" field
	from GimpGradient. Instead added the new function
	gimp_gradient_get_color_at_segment() that allows the caller to do
	the same optimization.

	* app/actions/gradient-editor-commands.c
	* app/core/gimpdrawable-blend.c
	* app/core/gimppalette-import.c
	* app/paint/gimppaintoptions.c
	* app/widgets/gimpgradienteditor.c
	* app/widgets/gimpgradientselect.c
	* app/widgets/gimpviewrenderergradient.c: changed accordingly.

	* app/pdb/gradient_cmds.c
	* app/pdb/gradients_cmds.c: regenerated.
2005-02-26 23:55:50 +00:00
Manish Singh 5f4cec76da revert change to read images one row at a time, it didn't really fix the
2005-02-26  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/png.c: revert change to read images one row at a
        time, it didn't really fix the bug.
2005-02-26 21:44:23 +00:00
Sven Neumann 52b88c61d2 minor code cleanup.
2005-02-26  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable-blend.c: minor code cleanup.
2005-02-26 18:36:12 +00:00
Sven Neumann 79788b7dad obtain a lock on the pool mutex while signalling the termination
2005-02-26  Sven Neumann  <sven@gimp.org>

	* app/base/pixel-processor.c (do_parallel_regions): obtain a lock
	on the pool mutex while signalling the termination condition.
2005-02-26 11:55:52 +00:00
William Skaggs 3fd43655f9 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/png.c: read non-interlaced files one row
	at a time instead of in 64-row chunks; fixes bug #137327.
2005-02-25 23:59:26 +00:00
Kevin Cozens 9c5ed1cbae plug-ins/script-fu/siod/siod.h Creation and manipulation of string arrays
2005-02-25  Kevin Cozens  <kcozens@cvs.gimp.org>

	* plug-ins/script-fu/siod/siod.h
	* plug-ins/script-fu/siod/sliba.c: Creation and manipulation of
	string arrays was seriously broken. Fixes bug #168290.
2005-02-25 21:36:22 +00:00
Sven Neumann 3992f138ec fixed indentation.
2005-02-25  Sven Neumann  <sven@gimp.org>

	* app/base/pixel-processor.c: fixed indentation.
2005-02-25 11:54:18 +00:00
Jay Cox 3f532376e8 > > * app/base/pixel-processor.c: fixed potential race condition on >
2005-02-24  Jay Cox  <jaycox@gimp.org>
>
>       * app/base/pixel-processor.c: fixed potential race condition on
>       processor->threads.  Changed mutex to a GMutex from a GStaticMutex
>       because it needs to me initialized anyway.  Placed g_cond_wait
>       calls inside while loops to handle g_cond_wait returning prematurely.
2005-02-24 22:58:02 +00:00
Manish Singh 33b974b4e6 Handle large file sizes, and update the downloaded size for unknown file
2005-02-24  Manish Singh  <yosh@gimp.org>

        * plug-ins/uri/uri-backend-wget.c: Handle large file sizes, and
        update the downloaded size for unknown file sizes.
2005-02-24 18:34:38 +00:00
Sven Neumann bc5addbe1e pulse the progress while downloading an unspecified amount of data.
2005-02-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/uri-backend-wget.c (uri_backend_load_image): pulse
	the progress while downloading an unspecified amount of data.
2005-02-24 18:31:08 +00:00
Michael Natterer be2a5944a7 Forgot credits. 2005-02-24 18:22:27 +00:00
Manish Singh 7ca5df8645 Handle HTTP 302 Redirect output from wget properly. Also give a little
2005-02-24  Manish Singh  <yosh@gimp.org>

        * plug-ins/uri/uri-backend-wget.c: Handle HTTP 302 Redirect output
        from wget properly. Also give a little more informative display for
        unspecified sizes. Fixes bug #168322.
2005-02-24 17:19:13 +00:00
Sven Neumann 9c1c0081b4 preselect the image just as in file_open_from_image_cmd_callback().
2005-02-24  Sven Neumann  <sven@gimp.org>

	* app/actions/file-commands.c (file_open_as_layer_cmd_callback):
	preselect the image just as in file_open_from_image_cmd_callback().
2005-02-24 17:18:11 +00:00
Michael Natterer 03182eba8d Allow to resize layers with the image. Fixes bug #87789.
2005-02-24  Michael Natterer  <mitch@gimp.org>

	Allow to resize layers with the image. Fixes bug #87789.

	* app/core/core-enums.[ch]: added enum GimpImageResizeLayers which
	can be one of { NONE, MATCHING, ALL }.

	* app/core/gimpimage-resize.[ch]: added new function
	gimp_image_resize_with_layers().

	* app/dialogs/resize-dialog.[ch]: added a "Layers" frame
	containing a "Resize Layers" combo box offering the choices above.
	Changed GimpResizeCallback signature accordingly.

	* app/actions/image-commands.c
	* app/actions/layers-commands.c: changed accordingly.
2005-02-24 16:39:12 +00:00
Michael Natterer 65f360d6c7 don't reset button->press_state on double clicks because GDK_2BUTTON_PRESS
2005-02-23  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpbutton.c (gimp_button_button_press): don't
	reset button->press_state on double clicks because
	GDK_2BUTTON_PRESS always arrive immediately after
	GDK_BUTTON_PRESS, so resetting the state causes the second click
	of a double click to be always interpreted as "clicked", not
	"extended-clicked", breaking e.g. adding of multiple layers by
	shift-clicking the layers dialog's "new" button. Phew, too much
	text for a one-liner bug fix, blah... Spotted by Jimmac.
	Cleaned up this antique file a bit.
2005-02-23 23:03:00 +00:00
William Skaggs ea8c0e3bc9 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/*/Makefile.am
	* plug-ins/common/mkgen.pl: add libgimpmath deps
	needed because libgimpconfig links it.
2005-02-23 22:01:58 +00:00
Shlomi Fish a363e869ba fixed the numbers of parameters check in RUN_NONINTERACTIVE. (it was a
* plug-ins/common/displace.c: fixed the numbers of parameters check
  in RUN_NONINTERACTIVE. (it was a typo).
2005-02-23 17:40:56 +00:00
Sven Neumann b284772f77 removed redundant casts, made gimp_display_shell_compress_motion() static.
2005-02-22  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c: removed redundant casts,
	made gimp_display_shell_compress_motion() static.
2005-02-22 21:38:04 +00:00
Sven Neumann 28514e96cc fixed Shlomi's ChangeLog entry 2005-02-22 19:00:11 +00:00
Shlomi Fish 6c659592da add the gimp_channel_new_from_component() PDB function.
2005-02-22  Shlomi Fish  <shlomif@iglu.org.il>

	* tools/pdbgen/pdb/channel.pdb: add the
	gimp_channel_new_from_component() PDB function.

	* libgimp/gimpchannel_pdb.c
	* app/pdb/channel_cmds.c: resultant files.

	* libgimp/gimp.def: add the new function to the def file

	* devel-docs/libgimp/libgimp-sections.txt: add the new function
	to devel-docs
2005-02-22 17:58:36 +00:00
Michael Natterer 4d03c8862d app/tools/gimpmagnifytool.c (gimp_magnify_tool_init)
2005-02-22  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpmagnifytool.c (gimp_magnify_tool_init)
	* app/tools/gimpmeasuretool.c (gimp_measure_tool_init)
	* app/tools/gimpvectortool.c (gimp_vector_tool_init): set
	handles_empty_image to TRUE because all these tools work fine
	without active drawable.

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_tool_events): also look at
	handles_empty_image, not only at gimp_image_is_empty() before
	setting the BAD cursor.
2005-02-22 12:16:23 +00:00
Manish Singh 9676e99884 be smarter about finding trailing numbers that look like sizes, so we
2005-02-21  Manish Singh  <yosh@gimp.org>

        * app/text/gimpfont-utils.[ch]: be smarter about finding trailing
        numbers that look like sizes, so we don't have spurious commas.

        * app/text/gimpfontlist.c: As an optimization, figure out if
        pango needs a workaround, and if not, just call it directly.
2005-02-22 01:28:45 +00:00
Michael Natterer 39fd4b3984 put back some important code that was accidentially removed when fixing
2005-02-21  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_tool_events): put back some important
	code that was accidentially removed when fixing bug #162823. Also
	moved the calls to gtk_grab_add() and gtk_grab_remove() around a
	bit.
2005-02-21 18:41:05 +00:00
Michael Natterer b83dff24d5 apply evil size_request hacks to the color/image/foo areas' wrapbox
2005-02-21  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptoolbox.c (toolbox_area_notify): apply evil
	size_request hacks to the color/image/foo areas' wrapbox because
	its child requisition/allocation code is apparently broken. Works
	around bug #162500.
2005-02-21 18:21:50 +00:00
Sven Neumann 4339fb30aa fixed emboss on small images (bug #168022).
2005-02-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/emboss.c: fixed emboss on small images (bug #168022).
2005-02-21 16:12:27 +00:00
Sven Neumann f568dd4dd4 workaround for bug #167973: if no valid home directory exists, use the
2005-02-21  Sven Neumann  <sven@gimp.org>

	* libgimpthumb/gimpthumb-utils.c (gimp_thumb_init): workaround for
	bug #167973: if no valid home directory exists, use the folder for
	temporary files to store thumbnails.
2005-02-21 13:14:15 +00:00
Michael Natterer 5ea3baa090 app/actions/context-actions.c removed the newly added color picker radius
2005-02-21  Michael Natterer  <mitch@gimp.org>

	* app/actions/context-actions.c
	* app/actions/context-commands.[ch]: removed the newly added color
	picker radius actions...

	* app/actions/tools-actions.c
	* app/actions/tools-commands.[ch]: ...and added them here.
2005-02-21 11:55:39 +00:00
Manish Singh 9706fce0a3 Support for custom plug-in interpreters, independent of OS support.
2005-02-20  Manish Singh  <yosh@gimp.org>

        Support for custom plug-in interpreters, independent of OS support.

        * app/core/Makefile.am
        * app/core/core-types.h
        * app/core/gimpinterpreterdb.[ch]: implemented GimpInterpreterDB,
        which handles registering and resolving custom plug-in interpreters.

        * app/core/gimp.[ch]: keep a GimpInterpreterDB around.

        * app/config/gimpcoreconfig.[ch]
        * app/config/gimprc-blurbs.h
        * app/dialogs/preferences-dialog.c
        * app/dialogs/user-install-dialog.c
        * app/widgets/gimphelp-ids.h: interpreter-path config stuff.

        * app/plug-in/plug-in.c: use registered interpreters when running
        plug-ins.

        * themes/Default/images/preferences/Makefile.am
        * themes/Default/images/preferences/folders-interp.png: just copied
        folders-plug-ins.png here, need a better one.

        * data/interpreters/Makefile.am: creates system interpreter directory.

        * data/interpreters/default.interp: sample interpreter file info.

        * data/Makefile.am
        * configure.in: add data/interpreters directory.

        * plug-ins/pygimp/Makefile.am: install pygimp.interp, which configures
        the python interpreter to point to the python we were built with. Also
        register the .py extension.

        * etc/gimprc
        * docs/gimprc.5.in: regenerated
2005-02-21 02:56:29 +00:00
jaycox fd809bfe92 Fix for changlog entry
Fix for changlog entry
2005-02-21 01:49:08 +00:00
jaycox c408ecebfa Fix layer mask support. Addresses bugs #166976 and #109841.
* plug-ins/common/psd.c: Fix layer mask support.  Addresses bugs
	#166976 and #109841.
2005-02-21 01:47:21 +00:00
Sven Neumann 5157dba5cb Another step towards color management:
2005-02-21  Sven Neumann  <sven@gimp.org>

	Another step towards color management:

	* modules/Makefile.am
	* modules/cdisplay_lcms.c: added new color display module that
	implements color management for the image displays. Still work
	in progress...

	* modules/cdisplay_proof.c: no need to include <string.h> here.

	* libgimpconfig/gimpcolorconfig.[ch]: added new property
	"display-module" to configure the display color management module.

	* app/display/gimpdisplayshell-filter.[ch]
	* app/display/gimpdisplayshell.c: create the configured color
	management display filter for each display.
2005-02-21 00:45:17 +00:00
Sven Neumann 0c7778377b use g_filename_display_basename().
2005-02-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/gimpressionist/presets.c (get_object_name): use
	g_filename_display_basename().
2005-02-20 21:58:40 +00:00
Sven Neumann 7827c1dd88 better error reporting.
2005-02-20  Sven Neumann  <sven@gimp.org>

	* app/base/pixel-processor.c: better error reporting.
2005-02-20 21:14:06 +00:00
Sven Neumann 8b1c3e9ded app/actions/context-actions.c added actions to control the average radius
2005-02-20  Sven Neumann  <sven@gimp.org>

	* app/actions/context-actions.c
	* app/actions/context-commands.c[ch]: added actions to control the
	average radius of color picker tools (bug #167765).

	* app/actions/tool-options-actions.c: fixed a typo in a comment.
2005-02-20 14:19:22 +00:00
Manish Singh 995f874af8 attempt to support Win32 (untested).
2005-02-20  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/Makefile.am: attempt to support Win32 (untested).
2005-02-20 08:14:52 +00:00
Manish Singh 301a49b77c plug-ins/pygimp/plug-ins/gtkcons.py Use newer gtkcons widget from pygtk.
2005-02-19  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/plug-ins/gtkcons.py
        * plug-ins/pygimp/plug-ins/gimpcons.py: Use newer gtkcons widget
        from pygtk. Some cosmetic additions.
2005-02-20 07:56:45 +00:00
Manish Singh caaf65cc7c Ignore guides at or beyond image bounds, since those aren't valid slicing
2005-02-19  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/plug-ins/py-slice.py: Ignore guides at or beyond
        image bounds, since those aren't valid slicing bounds. Fixes bug
        #167843.
2005-02-20 06:17:09 +00:00
Sven Neumann 17e7e13e58 migrate gimp-2.2 settings if available. Pass the version to
2005-02-20  Sven Neumann  <sven@gimp.org>

	* app/dialogs/user-install-dialog.c: migrate gimp-2.2 settings if
	available. Pass the version to gimp_templates_migrate().

	* app/core/gimp-templates.[ch] (gimp_templates_migrate): if
	migrating templaterc from ~/.gimp-2.0, do a case-insensitive match
	on template names to accommodate for the fact that we changed the
	spelling of some default templates between 2.0 and 2.2.
2005-02-19 23:38:59 +00:00
Michael Natterer 15ac13e2c4 block the "active-layer-changed" callback while anchoring the floating
2005-02-19  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptexttool.c (gimp_text_tool_create_layer): block
	the "active-layer-changed" callback while anchoring the floating
	selection so the callback doesn't reset the text tool in the
	middle of adding a new text layer. Fixes bug #166829.
2005-02-19 19:10:33 +00:00
Hans Breuer 1f4b749d11 now that I'm aware of script-fu-server running on win32 make it compile
2005-02-19  Hans Breuer  <hans@breuer.org>

	* plug-ins/makefile.msc plug-ins/script-fu/script-fu-server.c :
	now that I'm aware of script-fu-server running on win32 make it
	compile with msvc, too ;)
2005-02-19 17:00:25 +00:00
Sven Neumann 35d7fdfa5a app/widgets/gimpdockable.c added a tooltip and a help-id for the dockable
2005-02-19  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockable.c
	* app/widgets/gimphelp-ids.h: added a tooltip and a help-id for the
	dockable menu.
2005-02-19 02:13:33 +00:00
Sven Neumann 695874dfd4 plug-ins/script-fu/script-fu.c there is script-fu server on Win32.
2005-02-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu.c
	* plug-ins/script-fu/siod-wrapper.c: there is script-fu server on
	Win32. Reverted this change, again!
2005-02-19 01:56:52 +00:00
Hans Breuer c6f63ea4e1 TILE_WIDTH is used unconditionally so always include "tile.h" WIN32 needs
2005-02-19  Hans Breuer  <hans@breuer.org>

	* app/base/pixel-processor.c : TILE_WIDTH is used unconditionally
	so always include "tile.h"
	* app/base/tile-swap.c : WIN32 needs <process.h> for _getpid()

	* app/dialogs/user-install-dialog.c : include gimpwin32-io.h
	* libgimpbase/gimpwin32-io.h : there are no group or other
	flags in msvcrt, define S_IGRP etc in terms of _S_IREAD etc

	* plug-ins/script-fu/script-fu.c plug-ins/script-fu/siod-wrapper.c :
	no script-fu server on win32, make respective function calls conditional

	* libgimpconfig/makefile.msc : new file
	* **/makefile.msc app/gimpcore.def : updated, gimp builds
	and runs once more with ms toolchain
2005-02-19 00:50:36 +00:00
Sven Neumann 41eed1e8b9 write a DEFI chunk to set the frame offset if the layer offsets are != 0,
2005-02-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mng.c (mng_save_image): write a DEFI chunk to
	set the frame offset if the layer offsets are != 0, not only if
	they are > 0. Fixes bug #166059.
2005-02-18 22:45:50 +00:00
Sven Neumann ed5e235fa6 unset the CAN_FOCUS flag on the combo boxes and the cancel button. Set
2005-02-18  Sven Neumann  <sven@gimp.org>

	* app/display/gimpstatusbar.c: unset the CAN_FOCUS flag on the
	combo boxes and the cancel button. Set "focus-on-click" to FALSE
	for the combo boxes. Fixes bug #167809.
2005-02-18 21:41:57 +00:00
Michael Natterer 93ed7cf85c applied patch from Patrice Tremblay which sets an alternative button order
2005-02-18  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpexport.c (export_dialog): applied patch from Patrice
	Tremblay which sets an alternative button order for the export
	dialog (bug #166678).
2005-02-18 18:37:27 +00:00
Sven Neumann 52d6f00e56 app/core/Makefile.am new files holding gimp_drawable_convert_rgb() and
2005-02-18  Sven Neumann  <sven@gimp.org>

	* app/core/Makefile.am
	* app/core/gimpdrawable-convert.[ch]: new files holding
	gimp_drawable_convert_rgb() and gimp_drawable_convert_grayscale()
	moved out of gimpimage-convert.[ch].

	* app/core/gimpchannel.c
	* app/core/gimpimage-convert.[ch]
	* app/core/gimplayer.c: changed accordingly.
2005-02-18 16:16:24 +00:00
Sven Neumann 6300a9632c some simple loop unrolling, converted tabs to spaces and sprinkled the
2005-02-18  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-convert.c: some simple loop unrolling,
	converted tabs to spaces and sprinkled the code with const
	qualifiers.
2005-02-17 23:31:36 +00:00
Sven Neumann 0b2fc841f6 don't attempt to read beyond the pre-calculated render buffers, even if
2005-02-17  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpviewrenderergradient.c
	(gimp_view_renderer_gradient_render): don't attempt to read beyond
	the pre-calculated render buffers, even if the gradient somehow
	has out-of-bounds values. Fixes the crash reported in bug #167604.
2005-02-17 22:01:30 +00:00
Sven Neumann 583f7d7958 fixed the build for compilers that don't support C99 extensions.
2005-02-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_main.c: fixed the build for compilers that
	don't support C99 extensions.
2005-02-17 16:34:31 +00:00
Kevin Cozens 8ad5b3bd77 Added constants MIN-IMAGE-SIZE, MAX-IMAGE-SIZE, MIN-RESOLUTION, and
2005-02-16  Kevin Cozens  <kcozens@cvs.gimp.org>

	* plug-ins/script-fu/siod-wrapper.c: Added constants MIN-IMAGE-SIZE,
	MAX-IMAGE-SIZE, MIN-RESOLUTION, and MAX-RESOLUTION for use in Script-Fu
	scripts. See comment #4 in bug #167529.
2005-02-17 00:24:31 +00:00
Sven Neumann d0e6a44640 app/widgets/gimpcontainercombobox.c set the "ellipsize" property on the
2005-02-17  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainercombobox.c
	* libgimpwidgets/gimpintcombobox.c: set the "ellipsize" property
	on the text cell-renderer. Not sure if it's a good idea to
	hardcode this for GimpIntComboBox, but let's give it a try. Fixes
	bug #136676.
2005-02-16 23:55:53 +00:00
Sven Neumann 046931480d use GOptionContext to parse the command-line.
2005-02-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/gimp-help-lookup.c: use GOptionContext to parse
	the command-line.
2005-02-16 23:29:26 +00:00
Sven Neumann 386731d6d4 switched to using a thread pool. Enables the progress callback for the
2005-02-16  Sven Neumann  <sven@gimp.org>

	* app/base/pixel-processor.c: switched to using a thread pool.
	Enables the progress callback for the threaded case.
2005-02-16 21:24:13 +00:00
William Skaggs df13000318 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/plug-ins/script-fu/scripts/guides-new.scm:  committted
	slightly modified patch from  Joao S. O. Bueno Calligaris
	to raise guide position limit to 262144.
2005-02-16 19:39:41 +00:00
William Skaggs 963a484c51 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimpclonetool.[ch]: make sure clone source is
	shown in correct display, fixes bug #167002.
2005-02-16 19:12:08 +00:00
Sven Neumann 82a5329fbf added a variant of pixel_regions_process_parallel() that takes a progress
2005-02-16  Sven Neumann  <sven@gimp.org>

	* app/base/pixel-processor.[ch]: added a variant of
	pixel_regions_process_parallel() that takes a progress callback and
	progress data. Does only work for the single-threaded case yet.

	* app/core/gimpdrawable-blend.c (gradient_fill_region): parallelized.
2005-02-16 14:54:56 +00:00
Sven Neumann 784fae02bb parallelized.
2005-02-16  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-contiguous-region.c
	(gimp_image_contiguous_region_by_color): parallelized.
2005-02-16 00:38:20 +00:00
Sven Neumann 637df82c71 parallelized.
2005-02-16  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable-desaturate.c: parallelized.
2005-02-15 23:53:56 +00:00
Sven Neumann ddf6688fc8 code cleanup.
2005-02-16  Sven Neumann  <sven@gimp.org>

	* app/core/gimplayer.c (gimp_layer_transform_color): code cleanup.
2005-02-15 23:38:59 +00:00
Sven Neumann ca9ba32c45 formatting.
2005-02-15  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs.[ch]: formatting.
2005-02-15 15:48:46 +00:00
Sven Neumann 51710aa378 changed GimpImageMapApplyFunc to be compatible with PixelProcessorFunc.
2005-02-15  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagemap.[ch]: changed GimpImageMapApplyFunc to
	be compatible with PixelProcessorFunc.

	* app/base/color-balance.[ch]
	* app/base/colorize.[ch]
	* app/base/gimplut.[ch]
	* app/base/hue-saturation.[ch]
	* app/base/threshold.[ch]: removed wrappers that used to
	shift parameters around to match GimpImageMapApplyFunc and
	PixelProcessorFunc signatures.

	* app/tools/gimpbrightnesscontrasttool.c
	* app/tools/gimpcolorbalancetool.c
	* app/tools/gimpcurvestool.c
	* app/tools/gimplevelstool.c
	* app/tools/gimpposterizetool.c
	* app/tools/gimpthresholdtool.c: changed accordingly.

	* tools/pdbgen/pdb/color.pdb: use pixel_region_process_parallel()
	for all color operations.

	* app/pdb/color_cmds.c: regenerated.
2005-02-15 15:39:27 +00:00
Sven Neumann 3d0ebd0817 added a comment about the use of mallopt() and what could be done instead.
2005-02-15  Sven Neumann  <sven@gimp.org>

	* app/main.c (gimp_init_malloc): added a comment about the use of
	mallopt() and what could be done instead. Use the TILE_WIDTH and
	TILE_HEIGHT defines to determine the M_MMAP_THRESHOLD value.
2005-02-15 11:19:23 +00:00
Sven Neumann 2b63addc8f added a comment about the use of mallopt() and what could be done instead.
2005-02-15  Sven Neumann  <sven@gimp.org>

	* app/main.c (gimp_init_malloc): added a comment about the use of
	mallopt() and what could be done instead.
2005-02-15 11:11:02 +00:00
Sven Neumann 8c245456f2 allocate histogram slots in one large block instead of multiple smaller
2005-02-14  Sven Neumann  <sven@gimp.org>

	* app/base/gimphistogram.c: allocate histogram slots in one large
	block instead of multiple smaller chunks. Hide pointer arithmetic
	in macros.
2005-02-14 17:45:35 +00:00
Sven Neumann 54b1c750ee fix for setups with multiple monitors on the same screen.
2005-02-14  Sven Neumann  <sven@gimp.org>

	* app/dialogs/resolution-calibrate-dialog.c: fix for setups with
	multiple monitors on the same screen.
2005-02-14 13:51:02 +00:00
Sven Neumann 2e9a54e282 fixed email address 2005-02-14 13:27:10 +00:00
Sven Neumann 02bc3c98c1 fixed gtk-doc comment.
2005-02-14  Sven Neumann  <neumann@jpk.com>

	* app/widgets/gimppropwidgets.c: fixed gtk-doc comment.
2005-02-14 13:26:32 +00:00
Sven Neumann 171f85b1d9 app/config/gimprc-blurbs.h app/dialogs/offset-dialog.c
2005-02-14  Sven Neumann  <sven@gimp.org>

	* app/config/gimprc-blurbs.h
	* app/dialogs/offset-dialog.c
	* plug-ins/common/displace.c
	* plug-ins/script-fu/scripts/rendermap.scm
	* plug-ins/script-fu/scripts/ripply-anim.scm: use the american
	spelling of "behaviour". Fixes bug #167267.
2005-02-14 10:50:16 +00:00
Michael Natterer 70b5a74f6e when appending an extension, update the filename entry so the user can see
2005-02-14  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/file-save-dialog.c (file_save_dialog_check_uri):
	when appending an extension, update the filename entry so the user
	can see what's going on. Added even more debugging output.
2005-02-14 10:41:55 +00:00
Sven Neumann 569dc824cc simplified the code and avoid excessive memory allocations for the
2005-02-14  Sven Neumann  <sven@gimp.org>

	* app/base/gimphistogram.c: simplified the code and avoid
	excessive memory allocations for the threaded case.
2005-02-14 01:33:14 +00:00
Sven Neumann 1cb9714f02 allocate temporary histogram slots on demand and provide an array with
2005-02-14  Sven Neumann  <sven@gimp.org>

	* app/base/gimphistogram.[ch]: allocate temporary histogram slots
	on demand and provide an array with enough slots for the maximum
	number of threads. gimp_histogram_new() doesn't need a
	GimpBaseConfig parameter any longer.

	* app/core/gimpdrawable-equalize.c
	* app/core/gimpdrawable-levels.c
	* app/tools/gimpcurvestool.c
	* app/tools/gimplevelstool.c
	* app/tools/gimpthresholdtool.c
	* app/widgets/gimphistogrameditor.c
	* tools/pdbgen/pdb/color.pdb: changed accordingly.

	* app/pdb/color_cmds.c: regenerated.
2005-02-14 01:05:34 +00:00
Sven Neumann 9e6fd61f59 define the maximum number of threads in the header file.
2005-02-14  Sven Neumann  <sven@gimp.org>

	* app/base/pixel-processor.[ch]: define the maximum number of
	threads in the header file.

	* app/config/gimpbaseconfig.c: use the #define.
2005-02-14 00:34:38 +00:00
Sven Neumann 0e1077d61d app/base/gimphistogram.c use static mutexes.
2005-02-14  Sven Neumann  <sven@gimp.org>

	* app/base/gimphistogram.c
	* app/base/pixel-processor.c: use static mutexes.
2005-02-13 23:50:18 +00:00
Sven Neumann ca38d2bb02 allow to enable the threaded tile-swapper code (use at your own risk).
2005-02-14  Sven Neumann  <sven@gimp.org>

	* configure.in: allow to enable the threaded tile-swapper code
	(use at your own risk).
2005-02-13 23:05:44 +00:00
Sven Neumann 88d59d043b typo 2005-02-13 22:50:28 +00:00
Sven Neumann d154b39899 configure.in app/base/tile-cache.c app/base/tile-private.h
2005-02-13  Sven Neumann  <sven@gimp.org>

	* configure.in
	* app/base/tile-cache.c
	* app/base/tile-private.h
	* app/base/tile-swap.c
	* app/base/tile.c: in an attempt to safe this code from bit-rot,
	ported the experimental threaded tile-swapper to gthread.
2005-02-13 22:49:50 +00:00
Sven Neumann 50f9c145b2 port this code to gthread as well.
2005-02-13  Sven Neumann  <sven@gimp.org>

	* app/base/gimphistogram.c: port this code to gthread as well.
2005-02-13 22:31:31 +00:00
jaycox cde1cfa58d plug-ins/common/psd_save.c : Rewrote all the code that deals with pixels
plug-ins/common/psd_save.c :
 *       Rewrote all the code that deals with pixels to be stingy with
 *       memory and opperate on tile-size chunks.  Create a flattened
 *       copy of the image when necessary. Fixes file corruption bug
 *       #167139 and memory bug #121871
2005-02-13 22:29:22 +00:00
Sven Neumann 22e13e84d3 some more cleanup; introduced a #define to control the number of tiles per
2005-02-13  Sven Neumann  <sven@gimp.org>

	* app/base/pixel-processor.c: some more cleanup; introduced a
	#define to control the number of tiles per thread.
2005-02-13 20:58:30 +00:00
Sven Neumann 8c76151e7b fixed typo.
2005-02-13  Sven Neumann  <sven@gimp.org>

	* app/base/base.c: fixed typo.

	* app/config/gimpbaseconfig.c: reverted last change,
	"num-processor" doesn't need a confirmation.
2005-02-13 20:05:35 +00:00
Michael Natterer 1c7e7a165a removed file_save() and renamed file_save_as() to file_save() which always
2005-02-13  Michael Natterer  <mitch@gimp.org>

	* app/file/file-save.[ch]: removed file_save() and renamed
	file_save_as() to file_save() which always requires "uri" and
	"file_proc" to be passed. This functions does no more file_proc by
	extension finding and stuff.

	* app/actions/file-commands.c (file_save_cmd_callback): only call
	file_save() if the image has both uri and save_proc, fall back to
	file_save_as_cmd_callback() otherwise.

	* app/dialogs/file-save-dialog.c: completely chopped and
	reconstructed. Added tons of checks for extension vs. save_proc
	consistency and ask the user if she really wants to save weird
	stuff. Added masive debugging output because I'm far from certain
	that everything is correct.
2005-02-13 18:05:43 +00:00
Sven Neumann aed06d70ba s/GIMP_THREAD_FLAGS/GTHREAD_CFLAGS/
2005-02-13  Sven Neumann  <sven@gimp.org>

	* libgimp*/Makefile.am: s/GIMP_THREAD_FLAGS/GTHREAD_CFLAGS/
2005-02-13 15:52:44 +00:00
Sven Neumann 366629ff0d app/base/base.c moved some code from base_init() into tile_swap_init().
2005-02-13  Sven Neumann  <sven@gimp.org>

	* app/base/base.c
	* app/base/tile-swap.[ch]: moved some code from base_init() into
	tile_swap_init().

	* app/base/pixel-processor.[ch]: prepared for porting to GThreadPool.

	* app/config/gimpbaseconfig.c: changed "num-processors" option to
	require a confirmation before being changed.
2005-02-13 15:47:36 +00:00
Sven Neumann 9511753a02 check for gthread-2.0 unless the --disable-mp option is given.
2005-02-13  Sven Neumann  <sven@gimp.org>

	* configure.in: check for gthread-2.0 unless the --disable-mp
	option is given.

	* app/app_procs.c (app_libs_init): call g_thread_init().

	* app/base/pixel-processor.c: ported to GThread.

	* app/Makefile.am
	* app/*/Makefile.am: use @GTHREAD_CFLAGS@.
2005-02-13 15:08:08 +00:00
Sven Neumann a9b9889ce1 fixed typos in comment.
2005-02-13  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpprogress.c (gimp_progress_install): fixed typos in
	comment.
2005-02-13 13:31:20 +00:00
Sven Neumann 04f08db690 gimp_progress_set_text() has boolean return value.
2005-02-13  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpprogress.[ch]: gimp_progress_set_text() has boolean
	return value.
2005-02-13 01:43:07 +00:00
Sven Neumann 4c58c5beb7 use context specific labels for the action buttons in the rotate
2005-02-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-exif.c: use context specific labels for the
	action buttons in the rotate confirmation dialog.
2005-02-13 00:56:31 +00:00
Sven Neumann 4cf9d0e429 accept an empty string.
2005-02-13  Sven Neumann  <sven@gimp.org>

	* app/core/gimpprogress.c (gimp_progress_start): accept an empty
	string.

	* app/plug-in/plug-in-progress.c: if NULL is passed as message to
	plug_in_progress_start(), set an empty string on the progress.

	* tools/pdbgen/pdb/progress.pdb:
	* libgimp/gimpprogress.[ch]: wrap the new gimp_progress_set_text()
	PDP function with a function that accepts printf-like arguments.

	* libgimp/gimpprogress_pdb.[ch]: regenerated.

	* lots of plug-ins, most of them file plug-ins:
	use gimp_progress_init(NULL) followed by gimp_progress_set_text()
	to initialize the progress using the new API instead of constructing
	a temporary string.
2005-02-13 00:11:24 +00:00
Michael Natterer 08bd204c0e use gtk_file_chooser_set_uri() to check if a file exists. Seems to work
2005-02-12  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/file-save-dialog.c (file_save_dialog_response): use
	gtk_file_chooser_set_uri() to check if a file exists. Seems to
	work reliably even for remote files and fixes the issue i
	mentioned below.
2005-02-12 22:41:39 +00:00
Sven Neumann 344463b7d1 Changes suggested in bug #167200:
2005-02-12  Sven Neumann  <sven@gimp.org>

	Changes suggested in bug #167200:

	* plug-ins/common/unsharp.c: increased maximum value for Amount.

	* app/tools/gimplevelstool.c: changed increments for gamma
	spinbutton.

	* app/tools/gimpcoloroptions.c: increased maximum radius for color
	picking to 300 pixels and made the slider logarithmic.
2005-02-12 21:17:11 +00:00
Sven Neumann 976f0598c5 increased maximum radius for color picking to 300 pixels and made the
2005-02-12  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpcoloroptions.c: increased maximum radius for color
	picking to 300 pixels and made the slider logarithmic.
2005-02-12 21:06:05 +00:00
Sven Neumann 9c4ed4806f use gimp_progress_set_text().
2005-02-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/uri-backend-gnomevfs.c: use gimp_progress_set_text().
2005-02-12 18:33:06 +00:00
Sven Neumann 7942e4a061 *** empty log message *** 2005-02-12 18:29:52 +00:00
Sven Neumann 9cabb3e9a4 only set progress value to 0.0 if it isn't 0.0 already. Allows to use
2005-02-12  Sven Neumann  <sven@gimp.org>

	* app/plug-in/plug-in-progress.c (plug_in_progress_start): only
	set progress value to 0.0 if it isn't 0.0 already. Allows to use
	gimp_progress_init() to change the progress message w/o causing
	gtk_progress_bar_set_fraction() to be called.

	* plug-ins/uri/uri-backend-gnomevfs.c: use gimp_progress_pulse()
	if the filesize is unknown. Also limit frequency of progress
	updates.
2005-02-12 18:00:16 +00:00
Sven Neumann bfbaba2b70 fixed a bug I introduced with my latest changes and cleaned up the code
2005-02-12  Sven Neumann  <sven@gimp.org>

	* app/base/pixel-processor.c: fixed a bug I introduced with my
	latest changes and cleaned up the code further.
2005-02-12 16:07:00 +00:00
Michael Natterer ce42884e50 app/dialogs/file-open-dialog.c (file_open_dialog_response) don't bail out
2005-02-12  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/file-open-dialog.c (file_open_dialog_response)
	* app/dialogs/file-save-dialog.c (file_save_dialog_response):
	don't bail out if filename_from_uri() returns NULL. Perform
	checks for G_FILE_TEST_IS_REGULAR and G_FILE_TEST_EXISTS
	only on local files.

	(This brings up the problem that we will overwrite existing remote
	files without warning. Need to fix that before enabling remote
	files in GimpFileDialog).
2005-02-12 16:04:11 +00:00
Michael Natterer fc677ae7b4 added GIMP_PROGRESS_COMMAND_PULSE.
2005-02-12  Michael Natterer  <mitch@gimp.org>

	* libgimpbase/gimpbaseenums.h (enum GimpProgressCommand):
	added GIMP_PROGRESS_COMMAND_PULSE.

	* libgimpbase/gimpbaseenums.c
	* plug-ins/pygimp/gimpenums.py
	* tools/pdbgen/enums.pl: regenerated.

	* app/core/gimppdbprogress.c: implement GimpProgress::pulse()
	and send a PULSE command to the callback.

	* libgimp/gimpprogress.c: handle PULSE by calling the set_value()
	callback with a value of -1 and document that hack in the API docs.

	* libgimp/gimpprogressbar.c: interpret -1 as request to pulse.
2005-02-12 15:46:31 +00:00
Sven Neumann 7c19953c39 added GimpProgress::pulse.
2005-02-12  Sven Neumann  <sven@gimp.org>

	* app/core/gimpprogress.[ch]: added GimpProgress::pulse.

	* app/display/gimpdisplay.c
	* app/display/gimpstatusbar.c
	* app/widgets/gimpfiledialog.c
	* app/widgets/gimpprogressbox.c
	* app/widgets/gimpprogressdialog.c
	* app/widgets/gimpthumbbox.c: implement it in the classes that
	implement the GimpProgress interface.

	* app/plug-in/plug-in-progress.[ch]: allow plug-ins to pulse their
	progress.

	* tools/pdbgen/pdb/progress.pdb: added a procedure for the new
	functionality.

	* app/pdb/internal_procs.c
	* app/pdb/progress_cmds.c
	* libgimp/gimpprogress_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.
2005-02-12 14:18:12 +00:00
Sven Neumann 5766da0380 *** empty log message *** 2005-02-11 17:05:03 +00:00
Sven Neumann adff5aeb09 code cleanup. Removed unsued code, renamed variables and types.
2005-02-11  Sven Neumann  <sven@gimp.org>

	* app/base/pixel-processor.[ch]: code cleanup. Removed unsued code,
	renamed variables and types.

	* app/base/gimphistogram.c
	* app/core/gimpchannel-combine.c
	* app/core/gimpchannel.c
	* app/core/gimpdrawable-equalize.c
	* app/core/gimpdrawable-invert.c
	* app/core/gimpdrawable-levels.c
	* app/paint-funcs/paint-funcs.c
	* tools/pdbgen/pdb/color.pdb: changed accordingly.

	* app/pdb/color_cmds.c: regenerated.
2005-02-11 17:03:56 +00:00
Sven Neumann 9c01b4dc7b include <string.h>.
2005-02-11  Sven Neumann  <sven@gimp.org>

	* app/base/pixel-processor.c: include <string.h>.
2005-02-11 15:24:02 +00:00
Sven Neumann 9405b51d1a reordered pages in an attempt to list important settings first.
2005-02-11  Sven Neumann  <sven@gimp.org>

	* app/dialogs/preferences-dialog.c: reordered pages in an attempt
	to list important settings first.
2005-02-11 13:32:10 +00:00
Sven Neumann 369a4a40fb enable support for multiple processors by default. Hyperthreading and
2005-02-11  Sven Neumann  <sven@gimp.org>

	* configure.in: enable support for multiple processors by default.
	Hyperthreading and multicore CPUs are becoming common and we
	should try to give this as much testing as possible.

	* app/config/gimpbaseconfig.c: use two processors by default. Also
	increased default tile-cache-size to 256MB.
2005-02-11 12:43:44 +00:00
Sven Neumann 68ed0fc12c drop everything after the first newline and strip leading and trailing
2005-02-11  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptoolbox.c (toolbox_paste_received): drop
	everything after the first newline and strip leading and trailing
	whitespace from the pasted text.
2005-02-11 11:14:10 +00:00
Michael Natterer 9279ee7cb6 fixed "layers-duplicate" action entry.
2005-02-11  Michael Natterer  <mitch@gimp.org>

	* app/actions/layers-actions.c (layers_actions): fixed
	"layers-duplicate" action entry.
2005-02-11 01:55:06 +00:00
Sven Neumann a424d738f9 app/actions/layers-actions.c added shortcuts for New Layer (Shift-Ctrl-N,
2005-02-11  Sven Neumann  <sven@gimp.org>

	* app/actions/layers-actions.c
	* app/actions/view-actions.c: added shortcuts for New
	Layer (Shift-Ctrl-N, used to be the Navigation Dialog) and
	Duplicate Layer (Shift-Ctrl-D).
2005-02-11 01:26:14 +00:00
Sven Neumann eb8742cd62 allow to paste URLs and filenames to the toolbox using the middle mouse
2005-02-11  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptoolbox.c: allow to paste URLs and filenames to
	the toolbox using the middle mouse button.
2005-02-11 01:23:41 +00:00
Manish Singh dd81c98a13 Make sure filename is initialized before use.
2005-02-10  Manish Singh  <yosh@gimp.org>

        * app/file/file-save.c (file_save_as): Make sure filename is
        initialized before use.
2005-02-10 23:47:30 +00:00
Michael Natterer 2b84ce5029 use gimp_memsize_to_string() instead of always showing bytes with a
2005-02-10  Michael Natterer  <mitch@gimp.org>

	* plug-ins/uri/uri-backend-gnomevfs.c: use gimp_memsize_to_string()
	instead of always showing bytes with a translatable %llu format
	string. Increased BUFSIZE to 4096.

	* plug-ins/uri/uri-backend-wget.c (uri_backend_load_image): don't
	leak the memsize string. Use sizeof(buf) instead of BUFSIZE.
2005-02-10 20:36:43 +00:00
Michael Natterer 415a200536 app/tools/gimpcroptool.c alternative button order for the info dialogs
2005-02-10  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpcroptool.c
	* app/tools/gimptransformtool.c: alternative button order for
	the info dialogs (bug #166678).
2005-02-10 19:19:24 +00:00
Sven Neumann 13ce17be63 applied a modified patch from Joao S. O. Bueno Calligaris that adds a
2005-02-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/displace.c: applied a modified patch from Joao
	S. O. Bueno Calligaris that adds a polar mode to the Displace
	plug-in (bug #161131).
2005-02-10 15:26:26 +00:00
Sven Neumann f5e3d9b335 applied a (slightly modified) patch from Shlomi Fish that automatically
2005-02-10  Sven Neumann  <sven@gimp.org>

	* app/file/file-save.c (file_save_as): applied a (slightly
	modified) patch from Shlomi Fish that automatically adds the .xcf
	extension if none is given (bug #165684).
2005-02-10 14:32:14 +00:00
Sven Neumann 3fef851411 app/actions/data-commands.c app/actions/edit-commands.c
2005-02-10  Sven Neumann  <sven@gimp.org>

	* app/actions/data-commands.c
	* app/actions/edit-commands.c
	* app/actions/error-console-commands.c
	* app/actions/file-commands.c
	* app/actions/gradient-editor-commands.c
	* app/actions/gradients-commands.c
	* app/actions/plug-in-commands.c
	* app/actions/templates-commands.c
	* app/actions/text-editor-commands.c
	* app/actions/tool-options-commands.c
	* app/dialogs/image-new-dialog.c
	* app/dialogs/resize-dialog.c
	* app/display/gimpdisplayshell-close.c
	* app/display/gimpdisplayshell-filter-dialog.c
	* app/display/gimpdisplayshell-scale.c
	* app/tools/gimpimagemaptool.c
	* app/tools/gimptexttool.c
	* libgimp/gimpexport.c
	* libgimpwidgets/gimpcolorbutton.c
	* libgimpwidgets/gimpfileentry.c
	* libgimpwidgets/gimpquerybox.c
	* libgimpwidgets/gimpunitmenu.c: applied another patch by Patrice
	Tremblay to make more dialogs obey the alternative button order
	setting (bug #166678).
2005-02-10 11:00:46 +00:00
Manish Singh 4bfb3e26a5 new function to workaround pango bug #166540, by tacking on a ',' to font
2005-02-09  Manish Singh  <yosh@gimp.org>

        * app/text/gimpfont-utils.[ch]: new function to workaround pango
        bug #166540, by tacking on a ',' to font names that end in numbers,
        so pango_font_description_from_string doesn't interpret it as a size.

        * app/text/Makefile.am: add above files.

        * app/text/gimpfontlist.c
        * app/text/gimptext-compat.c: use new function.

        * app/text/gimptext-xlfd.c: also make sure font names pulled out
        from XLFD don't end in numbers.

        * app/text/gimpfont.c
        * app/text/gimptextlayout.c: remove some redundant checks.
2005-02-10 05:33:01 +00:00
William Skaggs a666d52d84 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_tool_events):  For testing, apply
	patch switching display-wide grab to app-wide grab while
	handling button-release event, see bug #162823.
2005-02-10 03:16:52 +00:00