Commit Graph

17967 Commits

Author SHA1 Message Date
William Skaggs bca074ae1d Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimpbase/Makefile.am: include gimpcpuaccel.h in
	libgimpbaseinclude_HEADERS; missed in Sven's changes.
2006-06-02 21:31:56 +00:00
William Skaggs ff94c83f0e Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimpnewrectselecttool.[ch]: use RECT_INACTIVE state,
	(but doesn't seem to do anything).  More importantly, change
	logic so that button_release executes the tool, and button
	release undo's if appropriate.
2006-06-02 19:39:28 +00:00
William Skaggs 84dadb1819 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimprectangletool.[ch]: add new function RECT_INACTIVE
	for cases where no rectangle exists.  This may take some
	tweaking to get right.
2006-06-02 19:34:47 +00:00
William Skaggs 7c90b66c36 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimprectangletool.c (gimp_rectangle_tool_button_press):
	if function is RECT_CREATING, start a new rectangle.

	* app/tools/gimpnewrectselecttool.c: remove g_printerr statement that
	mitch added for debugging.
2006-06-02 16:12:31 +00:00
Michael Natterer d1a76d93f7 cursors/Makefile.am cursors/cursor-corner-bottom-left.png
2006-06-02  Michael Natterer  <mitch@gimp.org>

	* cursors/Makefile.am
	* cursors/cursor-corner-bottom-left.png
	* cursors/cursor-corner-bottom-right.png
	* cursors/cursor-corner-top-left.png
	* cursors/cursor-corner-top-right.png
	* cursors/cursor-side-bottom.png
	* cursors/cursor-side-left.png
	* cursors/cursor-side-right.png
	* cursors/cursor-side-top.png
	* cursors/xbm/cursor-corner-bottom-left-mask.xbm
	* cursors/xbm/cursor-corner-bottom-left.xbm
	* cursors/xbm/cursor-corner-bottom-right-mask.xbm
	* cursors/xbm/cursor-corner-bottom-right.xbm
	* cursors/xbm/cursor-corner-top-left-mask.xbm
	* cursors/xbm/cursor-corner-top-left.xbm
	* cursors/xbm/cursor-corner-top-right-mask.xbm
	* cursors/xbm/cursor-corner-top-right.xbm
	* cursors/xbm/cursor-side-bottom-mask.xbm
	* cursors/xbm/cursor-side-bottom.xbm
	* cursors/xbm/cursor-side-left-mask.xbm
	* cursors/xbm/cursor-side-left.xbm
	* cursors/xbm/cursor-side-right-mask.xbm
	* cursors/xbm/cursor-side-right.xbm
	* cursors/xbm/cursor-side-top-mask.xbm
	* cursors/xbm/cursor-side-top.xbm: new cursors for edge and corner
	resizing. They perfectly align with the small crosshair and can be
	used together with tool cursors and cursor modifiers.

	* cursors/gimp-tool-cursors.xcf: add them here too.

	* app/widgets/widgets-enums.h: add them to the GimpCursorType enum.

	* app/widgets/gimpcursor.c: add them here too.

	* app/display/gimpdisplayshell-cursor.c: treat them like the small
	crosshair (don't replace them by the small crosshair but use them
	as-is). Also allow the bad modifier with the large crosshair.

	* app/tools/gimprectangletool.c
	(gimp_rectangle_tool_cursor_update): use the new cursors. Don't
	call gimp_tool_set_cursor() here.

	(gimp_rectangle_tool_response): reset "function" to RECT_CREATING
	when resetting the tool.

	* app/tools/gimpselectiontool.[ch] (struct GimpSelectionTool):
	added boolean member "allow_move" which defalts to TRUE.

	(gimp_selection_tool_oper_update): don't move masks, floating
	selections or anything when "allow_move" is FALSE. Changed
	behavior of click inside a selection to simply create a new
	selection, need to press alt+shift now to drag-float the
	selection. Please test this, it's apretty fundamental change!

	(gimp_selection_tool_cursor_update): use the tool's configured
	cursor instead of always GIMP_CURSOR_MOUSE, so this function can
	be called after gimp_rectangle_tool_cursor_update() to add the
	plus, minus etc. modifiers.

	* app/tools/gimpnewrectselecttool.c: implement
	GimpTool::cursor_update() and call
	gimp_rectangle_tool_cursor_update() from there. Chain up to get
	the plus, minus etc. modifiers added.

	Re-enble selection moving:

	(gimp_new_rect_select_tool_oper_update): set GimpSelectionTool's
	"allow_move" to FALSE unless the rectangle tool is in an idle
	state.

	(gimp_new_rect_select_tool_button_press): allow a selection moving
	to be started if the rectangle tool is idle. Fall back to starting
	a rect select if gimp_selection_tool_start_edit() returned FALSE.
2006-06-02 15:23:47 +00:00
Sven Neumann 3a7629733a always look at $plugins{$_}->{cflags}.
2006-06-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mkgen.pl: always look at $plugins{$_}->{cflags}.

	* plug-ins/common/plugin-defs.pl: use MMX_EXTRA_CFLAGS for the
	selective gaussian blur plug-in.

	* plug-ins/common/Makefile.am: regenerated.
2006-06-02 13:33:10 +00:00
Sven Neumann 65ee6f7bb5 hide the GimpParamSpecParasite struct like we do with other custom param
2006-06-02  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimpparasite.[ch]: hide the GimpParamSpecParasite
	struct like we do with other custom param specs.
2006-06-02 12:53:06 +00:00
Sven Neumann 5df0dfb289 libgimpbase/libgimpbase-docs.sgml libgimpbase/libgimpbase-sections.txt
2006-06-02  Sven Neumann  <sven@gimp.org>

	* libgimpbase/libgimpbase-docs.sgml
	* libgimpbase/libgimpbase-sections.txt
	* libgimpbase/tmpl/gimpcpuaccel.sgml: added docs for cpu accel API.

	* libgimpbase/tmpl/gimpbaseenums.sgml
	* libgimpwidgets/tmpl/gimppatheditor.sgml: regenerated.
2006-06-02 12:43:40 +00:00
Sven Neumann 90876ca3c1 fixed entry 2006-06-02 11:57:36 +00:00
Sven Neumann 7078005f7a libgimp/gimp.[ch] removed gimp_use_cpu_accel() again. libgimp handles this
2006-06-02  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.[ch]
	* libgimp/gimp.def: removed gimp_use_cpu_accel() again. libgimp
	handles this transparently by calling gimp_cpu_accel_set_use().
2006-06-02 11:49:51 +00:00
Sven Neumann fd972c23dc need to test for GIMP_COMPOSITE_OPTION_NOEXTENSIONS.
2006-06-02  Sven Neumann  <sven@gimp.org>

	* app/composite/gimp-composite.c (gimp_composite_use_cpu_accel):
	need to test for GIMP_COMPOSITE_OPTION_NOEXTENSIONS.

	* libgimp/gimp.c (gimp_config): call gimp_set_use_cpu_accel() from
	here, not in gimp_main().

	* plug-ins/common/sel_gauss.c: applied patch from Loren Merritt
	that adds MMX code to boost the plug-in speed (bug #342860).
2006-06-02 11:36:16 +00:00
Sven Neumann 7777e97eba moved semicolon to the right place 2006-06-02 10:40:15 +00:00
Sven Neumann 13ee1107c8 updated.
* libgimpbase/gimpbase.def: updated.
2006-06-02 10:00:19 +00:00
Sven Neumann db75625d27 Moved the CPU detection code to libgimpbase (see bug #342860):
2006-06-02  Sven Neumann  <sven@gimp.org>

	Moved the CPU detection code to libgimpbase (see bug #342860):

	* app/base/Makefile.am
	* app/base/cpu-accel.[ch]
	* app/base/test-cpu-accel.c: removed here...

	* libgimpbase/Makefile.am
	* libgimpbase/gimpbase.h
	* libgimpbase/gimpcpuaccel.[ch]

	* libgimpbase/test-cpu-accel.c: ... and added here again with
	some API changes.

	* app/composite/Makefile.am
	* app/composite/make-installer.py: changed accordingly.

	* app/composite/gimp-composite-*-installer.c: regenerated.

	* libgimp/gimp.c (gimp_main): call gimp_set_use_cpu_accel().
2006-06-02 09:58:03 +00:00
Sven Neumann 66a47904da news flash 2006-06-02 06:52:51 +00:00
Kevin Cozens 5c5ddcf9ed Fixed the definition of fmod for real this time. Previous commit fixed the
2006-06-01  Kevin Cozens  <kcozens@cvs.gnome.org>

	* scripts/script-fu-compat.init: Fixed the definition of fmod for
	real this time. Previous commit fixed the definition of truncate.
2006-06-02 02:34:44 +00:00
Kevin Cozens ddea9b01e8 Fixed the definition of fmod.
2006-06-01  Kevin Cozens  <kcozens@cvs.gnome.org>

	* scripts/script-fu-compat.init: Fixed the definition of fmod.
2006-06-02 01:47:19 +00:00
Michael Natterer 3f7b118225 cursors/Makefile.am cursors/modifier-bad.png
2006-06-01  Michael Natterer  <mitch@gimp.org>

	* cursors/Makefile.am
	* cursors/modifier-bad.png
	* cursors/xbm/modifier-bad-mask.xbm
	* cursors/xbm/modifier-bad.xbm: new "bad" cursor
	modifier. Replaces the "bad" cursor.

	* cursors/gimp-tool-cursors.xcf: added it here too.

	* app/widgets/widgets-enums.h: added GIMP_CURSOR_MODIFIER_BAD.

	* app/widgets/gimpcursor.c: add the bad modifier. Leave the bad
	cursor there for now.

	* app/display/gimpdisplayshell-callbacks.c
	* app/tools/gimpaligntool.c
	* app/tools/gimpblendtool.c
	* app/tools/gimpbycolorselecttool.c
	* app/tools/gimpclonetool.c
	* app/tools/gimpcolortool.c
	* app/tools/gimpfliptool.c
	* app/tools/gimpiscissorstool.c
	* app/tools/gimpmovetool.c
	* app/tools/gimptransformtool.c
	* app/tools/gimpvectortool.c: use the modifier instead of the
	cursor. Fixes hotspot jumping when switching between normal and
	bad cursors. The changed cursor_update() functions even make more
	sense IMHO. Fixes bug #158407.
2006-06-01 20:30:52 +00:00
Sven Neumann 6c25ae9374 Added basic framework for plug-ins to access the use_cpu_accel
2006-06-01  Sven Neumann  <sven@gimp.org>

	Added basic framework for plug-ins to access the use_cpu_accel
	configuration (bug #342860):

	* app/composite/gimp-composite.[ch]: added new function
	gimp_composite_use_cpu_accel().

	* libgimpbase/gimpprotocol.[ch]: added use_cpu_accel to the config
	message.

	* app/plug-in/gimppluginmanager-call.c: pass the return value of
	gimp_composite_use_cpu_accel() for config.use_cpu_accel.

	* libgimp/gimp.[ch]: make the config value accessible by means of
	a new function gimp_use_cpu_accel().

	* libgimp/gimp.def: updated.
2006-06-01 15:34:58 +00:00
Sven Neumann a3e967f4e8 applied patch from Loren Merritt that replaces the floating-point
2006-06-01  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/sel_gauss.c: applied patch from Loren Merritt
	that replaces the floating-point implementation of selective
	gaussian blur with a fixed-point version (bug #342860).
2006-06-01 10:16:56 +00:00
William Skaggs 8387dd98a4 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimprectangletool.[ch]: add "constrain" property
	to specify whether to clip at image bounds when computing
	dimensions.

	* app/tools/gimpcroptool.c
	* app/tools/gimpnewrectselecttool.c: set "constrain" to TRUE.

	* app/tools/gimpellipseselecttool.c: set "constrain" to FALSE.

	Hopefully fixes bug #329817.
2006-05-31 19:45:38 +00:00
Michael Natterer 2606a93524 removed #define SHADOW 1, it's not a constant value. Use the
2006-05-31  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcolorscale.c: removed #define SHADOW 1, it's
	not a constant value. Use the GtkRange::trough-border style
	property instead.
2006-05-31 10:16:08 +00:00
Raphael Quinet 088950c283 protect against broken XMP blocks using rdf:Alt instead of rdf:Seq. Fixes
2006-05-30  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/metadata/xmp-parse.c: protect against broken XMP blocks
	using rdf:Alt instead of rdf:Seq.  Fixes bug #343315.

	* plug-ins/metadata/xmpdump.c (main): call g_set_prgname() to get
	better messages from glib.

	* data/images/gimp-splash.png: new splash screen, waiting for the
	old animation feature to be restored.
2006-05-30 22:20:53 +00:00
Michael Natterer 35c5434b10 Honor active components when pasting. Fixes bug #150845:
2006-05-30  Michael Natterer  <mitch@gimp.org>

	Honor active components when pasting. Fixes bug #150845:

	* app/core/gimplayer-floating-sel.c (floating_sel_composite):
	don't temporarily set all image components to active while
	compositing.

	* app/core/gimpimage.c (gimp_image_set_component_active):
	relax()/rigor() the floating selection around setting the "active"
	flag. Also make sure the projection is updated correctly.
2006-05-30 21:22:34 +00:00
Sven Neumann e1e77738a0 typo 2006-05-30 12:54:26 +00:00
Michael Natterer 8903c67fb0 app/widgets/gimpdataeditor.c (gimp_data_editor_name_activate) strip the
2006-05-30  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdataeditor.c (gimp_data_editor_name_activate)
	* app/widgets/gimpdatafactoryview.c
	(gimp_data_factory_view_tree_name_edited): strip the newly
	entered name from whitespace and reject empty names.
2006-05-30 11:56:42 +00:00
Manish Singh ed4620dc43 GIMP_BATCH_INTERPRETER can be set in the environment to override the
2006-05-30  Manish Singh  <yosh@gimp.org>

        * app/batch.c (batch_run): GIMP_BATCH_INTERPRETER can be set in
        the environment to override the default batch interpreter procedure.

        * plug-ins/pygimp/plug-ins/happy-valley-relief.py: basic python
        code evaluator function.

        * plug-ins/pygimp/plug-ins/Makefile.am: add above file.
2006-05-30 09:41:36 +00:00
Manish Singh 587763d394 Other code places should allow menu paths to be None too.
2006-05-30  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py: Other code places should allow
        menu paths to be None too.
2006-05-30 08:47:44 +00:00
Manish Singh 48de9ef030 Allow menu paths to be None.
2006-05-30  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py: Allow menu paths to be None.
2006-05-30 08:39:31 +00:00
Manish Singh 30073a15cb #define _GNU_SOURCE instead of _SVID_SOURCE, so we get all the
2006-05-30  Manish Singh  <yosh@gimp.org>

        * app/file/gimprecentlist.c: #define _GNU_SOURCE instead of
        _SVID_SOURCE, so we get all the declarations we need. Fixes
        bug #342390.
2006-05-30 07:22:53 +00:00
Manish Singh b3ec60ac56 libgimpwidgets/gimpchainbutton.c #include "config.h"
2006-05-29  Manish Singh  <yosh@gimp.org>

        * libgimpwidgets/gimpchainbutton.c
        * libgimpwidgets/gimppixmap.c: #include "config.h"
2006-05-30 02:01:39 +00:00
Manish Singh c7ba1223c3 app/errors.c app/main.c app/file/gimprecentlist.c libgimp/gimp.c
2006-05-29  Manish Singh  <yosh@gimp.org>

        * app/errors.c
        * app/main.c
        * app/file/gimprecentlist.c
        * libgimp/gimp.c
        * libgimpbase/gimpsignal.c
        * modules/cdisplay_lcms.c
        * modules/cdisplay_proof.c
        * modules/controller_midi.c
        * plug-ins/common/gqbist.c
        * plug-ins/metadata/xmp-schemas.h: miscellaneous fixes for building
        with -ansi -pedantic. Mostly #define _FOO_SOURCE stuff. Thanks to
        Daniel Richard G. for the patch. Fixes bug #342390.
2006-05-30 01:55:42 +00:00
Tor Lillqvist 76596605cd Sync.
2006-05-30  Tor Lillqvist  <tml@novell.com>

	* libgimpwidgets/gimpwidgets.def: Sync.
2006-05-29 22:28:15 +00:00
Sven Neumann cdfb4bcc29 use PANGO_DISABLE_DEPRECATED for pango < 0.13.0.
2006-05-29  Sven Neumann  <sven@gimp.org>

	* configure.in: use PANGO_DISABLE_DEPRECATED for pango < 0.13.0.

	* app/text/gimptext-vectors.c: added const qualifiers to the
	FT_Vector parameters of the FT_Outline_Funcs.
2006-05-29 20:12:52 +00:00
Sven Neumann 80bddf14a9 code cleanup; only call gtk_window_present() if called with present ==
2006-05-29  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdialogfactory.c
	(gimp_dialog_factory_dialog_new_internal): code cleanup; only call
	gtk_window_present() if called with present == TRUE.
2006-05-29 16:41:18 +00:00
Sven Neumann 6ce6160966 don't choke on brush files with empty names (bug #343140).
2006-05-29  Sven Neumann  <sven@gimp.org>

	* app/core/gimpbrushgenerated.c (gimp_brush_generated_load): don't
	choke on brush files with empty names (bug #343140).
	(gimp_brush_generated_save): warn about brushes with empty names.
2006-05-29 15:43:05 +00:00
Michael Natterer ae0cfe3dc0 make sure text widgets get all key events first. Fixes bug #301006.
2006-05-29  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdock.c (gimp_dock_key_press_event): make sure
	text widgets get all key events first. Fixes bug #301006.
2006-05-29 12:33:18 +00:00
Sven Neumann 8e39085306 suppress progress popups by installing progress handlers that do nothing
2006-05-29  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-server.c: suppress progress popups
	by installing progress handlers that do nothing (bug #317498).

	* plug-ins/script-fu/script-fu-interface.c: formatting.
2006-05-29 12:06:37 +00:00
Sven Neumann 6072b0991d push a channel undo. Fixes bug #343026.
2006-05-29  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/channel.pdb (channel_combine_masks): push a
	channel undo. Fixes bug #343026.

	* app/pdb/channel_cmds.c: regenerated.
2006-05-29 11:30:05 +00:00
Sven Neumann 651a102cf8 check for NULL before using a string pointer. Fixes bug #343121.
2006-05-29  Sven Neumann  <sven@gimp.org>

	* plug-ins/gimpressionist/presets.c: check for NULL before using a
	string pointer. Fixes bug #343121.
2006-05-29 09:39:30 +00:00
Michael Natterer 52d56985c1 applied patch from Martin Collins which adds PBM (bitmap) support. Fixes
2006-05-28  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/pnm.c: applied patch from Martin Collins which
	adds PBM (bitmap) support. Fixes bug #167578. Did some additional
	cleanups and sprinkled some gimp_progress_update(1.0).
2006-05-28 21:29:59 +00:00
Michael Natterer 17475c5fec Applied patch from David Gowers which adds actions to select palette and
2006-05-28  Michael Natterer  <mitch@gimp.org>

	Applied patch from David Gowers which adds actions to select
	palette and colormap colors with actions. Modified the patch quite
	a bit. Fixes bug #130123.

	* app/widgets/gimpcolormapeditor.[ch]
	* app/widgets/gimppaletteeditor.[ch]: add functions get_index()
	which gets the currently selected color's index (optionally the
	index of a passed color), set_index() which sets the selected
	color by index, and max_index() which returns the maximum possible
	color index.

	* app/dialogs/dialogs-constructors.c: changed accordingly.

	* app/actions/context-actions.c
	* app/actions/context-commands.[ch]: actions and callbacks which
	use the new functions.
2006-05-28 19:45:52 +00:00
Akkana Peck fa71c34b22 revert previous change: allow layers without alpha to be moved up.
* plug-ins/script-fu/scripts/reverse-layers.scm: revert
	previous change: allow layers without alpha to be moved up.
2006-05-28 17:20:30 +00:00
Michael Natterer 70adfc5c7e added support for extracting colors from the selected pixels only.
2006-05-28  Michael Natterer  <mitch@gimp.org>

	* app/core/gimppalette-import.[ch]: added support for extracting
	colors from the selected pixels only.

	* app/dialogs/palette-import-dialog.c: added "Sample merged" and
	"Selected Pixels only" toggles. Fixes bug #316212. Cleaned up the
	code quite a bit.
2006-05-28 14:51:06 +00:00
Michael Natterer 5af5606aac removed all code except info dialog updating and chain up instead.
2006-05-28  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpcolorpickertool.c (gimp_color_picker_tool_picked):
	removed all code except info dialog updating and chain up instead.

	* app/tools/gimpcolortool.c (gimp_color_tool_real_picked): newly
	added default implementation. Also updates the colormap dialog and
	picks into a palette.

	* app/tools/gimppainttool.c (gimp_paint_tool_color_picked):
	removed. The default impl. does this and much more now. Hopefully
	fixes bug #320660.
2006-05-28 14:13:44 +00:00
Akkana Peck 01ec1abfc6 if any layers are opaque, make them transparent when reversing. Current
* plug-ins/script-fu/scripts/reverse-layers.scm: if any layers
        are opaque, make them transparent when reversing. Current CVS
        allows moving opaque layers above the bottom, but that might change.
2006-05-28 05:13:14 +00:00
Michael Natterer cec27e0b48 remove code duplication, cleanup.
2006-05-27  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-crop.c (gimp_image_crop_guess_bgcolor):
	remove code duplication, cleanup.
2006-05-27 16:50:24 +00:00
Michael Natterer 41e76ffdcf fix spacing broken by tab removal.
2006-05-27  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage.h: fix spacing broken by tab removal.
2006-05-27 15:31:35 +00:00
Michael Natterer 05522bfc4a cast the return value of gimp_enums_get_type_names() to (const gchar **)
2006-05-27  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/enumcode.pl: cast the return value of
	gimp_enums_get_type_names() to (const gchar **) to fix compiler
	warning.

	* libgimp/gimpenums.c.tail: regenerated.
2006-05-27 15:19:15 +00:00
Carol Spears 454d704361 data/palettes/Named_Colors.gpl: small repairs to the color names, not worth mentioning in Changelog 2006-05-27 03:00:31 +00:00