Commit graph

17880 commits

Author SHA1 Message Date
Michael Natterer 57df85fa70 don't try to reset the active tool by destroying and re-creating it
2006-05-21  Michael Natterer  <mitch@gimp.org>

	* app/tools/tool_manager.c (tool_manager_image_clean_dirty): don't
	try to reset the active tool by destroying and re-creating it
	because this doesn't work while gimp->busy is TRUE. Call
	tool_manager_control_active(HALT) instead, which is the right way
	to do it anyway. Fixes bug #330083.

	Sprinkled some local variables all over the place to get rid of a
	gazillion tool_manager->active_tool.
2006-05-21 20:22:09 +00:00
William Skaggs 00aad904a1 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimpaligntool.c: get rid of "dispose" method, use
	tool-control-halt to shut things down instead.
2006-05-21 17:52:23 +00:00
Michael Natterer a5de974a8f One of the following changes fixes a crash on exit when there is a cut
2006-05-21  Michael Natterer  <mitch@gimp.org>

	One of the following changes fixes a crash on exit when there is a
	cut buffer and a clipboard manager is runnig. I don't care which,
	since they are all the right thing to do:

	* app/widgets/gimpdialogfactory.c (gimp_dialog_factory_finalize):
	don't remove the factory from the hash table of all factories here...

	(gimp_dialog_factory_dispose): ...but here. Use the right key for
	the toolbox factory.

	(gimp_dialog_factories_set_busy)
	(gimp_dialog_factories_unset_busy): check the return value of
	g_type_class_ref() before using it.

	Unrelated:

	(gimp_dialog_factory_dispose): free the list of open dialogs here,
	not in dispose(). Don't leak all the factory's session infos.
2006-05-21 15:32:20 +00:00
Michael Natterer 3e5b6e0e05 app/core/Makefile.am new files with functions to translate, flip, rotate,
2006-05-21  Michael Natterer  <mitch@gimp.org>

	* app/core/Makefile.am
	* app/core/gimpimage-item-list.[ch]: new files with functions to
	translate, flip, rotate, transform and align a list of items
	inside an undo group.

	(gimp_image_item_list_get_list): returns a list of items matching
	any combination of GimpItemTypeMask and GimpItemSet.

	* app/core/gimpitem.[ch]: added new function gimp_item_is_in_set().

	* app/core/gimpitem-linked.[ch]: use the new functions. Removed
	gimp_item_linked_get_list().

	* app/tools/gimpeditselectiontool.c: use
	gimp_image_item_list_get_list() instead of
	gimp_item_linked_get_list().

	* app/core/gimpimage-resize.c
	* app/tools/gimpaligntool.c: use the new functions instead of
	creating and iterating the lists manually.
2006-05-21 11:32:41 +00:00
Manish Singh b9416956f8 Fixes to address -ansi -pedantic compilation (bug #342390). Thanks goes to
2006-05-20  Manish Singh  <yosh@gimp.org>

        Fixes to address -ansi -pedantic compilation (bug #342390).
        Thanks goes to Daniel Richard G. for noticing and suggesting
        fixes.

        * libgimpbase/gimpsignal.c: #include "config.h" and define
        __POSIX_SOURCE for sigaction stuff.

        * app/base/tile-swap.c (tile_swap_test): use more portable
        S_IRUSR and S_IWUSR, instead of S_IREAD and S_IWRITE.

        * plug-ins/common/ripple.c
        * plug-ins/imagemap/imap_main.c: use C89 comments.

        * plug-ins/Lighting/lighting_preview.h: don't define spin widget
        variables here...

        * plug-ins/Lighting/lighting_ui.[ch]: ... and instead take care
        of them here.
2006-05-20 07:18:25 +00:00
William Skaggs 1beec26359 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimpwidgets/gimpwidgets.c (gimp_coordinates_callback):
	use ROUND() to prevent incorrect chainbutton logic.  Fixes
	bug #336259.
2006-05-19 20:32:49 +00:00
Sven Neumann 419087b352 use the same rounding to determine width and height from the TransInfo
2006-05-19  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpscaletool.c (gimp_scale_tool_dialog_update,
	gimp_scale_tool_size_notify): use the same rounding to determine
	width and height from the TransInfo struct.
2006-05-19 16:45:38 +00:00
William Skaggs 5e78e9a2c5 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/vpropagate.c: swap meanings of "dilate"
	and "erode"; fixes bug #156545.
2006-05-19 16:31:48 +00:00
William Skaggs 34e144e1eb Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/tga.c: gracefully handle incorrect alpha
	info in header; fixes bug #306675.
2006-05-19 16:10:07 +00:00
Michael Natterer 42ff7f4920 remove enum GimpItemLinkedMask...
2006-05-19  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpitem-linked.h: remove enum GimpItemLinkedMask...

	* app/core/core-enums.[ch]: ...and add it here as GimpItemTypeMask.
	Renamed enum GimpImageResizeLayers to GimpItemSet.

	* app/core/gimpitem-linked.[ch]
	* app/core/gimpimage-resize.[ch]
	* app/dialogs/resize-dialog.[ch]
	* app/actions/image-commands.c
	* app/actions/layers-commands.c
	* app/tools/gimpeditselectiontool.c: changed accordingly.
2006-05-19 14:50:46 +00:00
Sven Neumann 36ea51a2bb tools/pdbgen/pdb/convert.pdb do not use enum values in C syntax to
2006-05-19  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/convert.pdb
	* tools/pdbgen/pdb/image.pdb: do not use enum values in C syntax
	to describe the image mode.

	* app/pdb/convert_cmds.c
	* app/pdb/image_cmds.c
	* libgimp/gimpconvert_pdb.c
	* libgimp/gimpimage_pdb.c: regenerated.
2006-05-19 13:39:12 +00:00
Michael Natterer ca1fb7b700 turn c_style_procedure_names() in $proc->{help} into
2006-05-19  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/app.pl: turn c_style_procedure_names() in
	$proc->{help} into 'canonical-procedure-names'.

	* tools/pdbgen/pdb/color.pdb: std_pdb_deprecated() expects
	canonical procedure names.

	* app/pdb/color_cmds.c
	* app/pdb/drawable_cmds.c
	* app/pdb/drawable_transform_cmds.c
	* app/pdb/edit_cmds.c
	* app/pdb/paths_cmds.c
	* app/pdb/progress_cmds.c: regenerated.
2006-05-19 12:58:27 +00:00
Sven Neumann fec7ca95f8 removed one of the two constrain properties.
2006-05-19  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptransformoptions.[ch]: removed one of the two
	constrain properties.

	* app/tools/gimprotatetool.c
	* app/tools/gimptransformtool.c: changed accordingly.

	* app/tools/gimpscaletool.c: sync "constrain" with the size-box's
	"keep-aspect" property.
2006-05-19 10:56:34 +00:00
Sven Neumann 414e661696 connect to the chain-button and update the "keep-aspect" property when it
2006-05-19  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpsizebox.c: connect to the chain-button and
	update the "keep-aspect" property when it is toggled.
2006-05-19 10:45:25 +00:00
Sven Neumann c6d8d49224 actually use the new tool icon.
2006-05-19  Sven Neumann  <sven@gimp.org>

        * app/tools/gimpaligntool.c (gimp_align_tool_register): actually
        use the new tool icon.
2006-05-19 07:44:27 +00:00
Kevin Cozens bddb97797a tinyscheme/CHANGES tinyscheme/scheme.c Updated to version 1.37 of
2006-05-18  Kevin Cozens  <kcozens@cvs.gnome.org>

	* tinyscheme/CHANGES
	* tinyscheme/scheme.c
	* tinyscheme/scheme.h: Updated to version 1.37 of TinyScheme. Adds
	'reserve_cells' to TinyScheme interface, moves the comment handling
	which fixes an obscure bug, and a patch for the allocator.
2006-05-18 21:32:28 +00:00
William Skaggs c044624785 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/dialogs/file-save-dialog.c: make sure to disconnect
	callback added in previous change.
2006-05-18 21:23:52 +00:00
William Skaggs ae2e871bfc Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/dialogs/file-save-dialog.c: make sure dialog has
	not been destroyed when setting sensitive; fixes
	bug #322978.
2006-05-18 20:04:29 +00:00
Sven Neumann 03f0f65502 use the enum's name instead of the nick, strip the "GIMP_" prefix and
2006-05-18  Sven Neumann  <sven@gimp.org>

	* app/core/gimpparamspecs-desc.c: use the enum's name instead of
	the nick, strip the "GIMP_" prefix and canonicalize it.
2006-05-18 18:56:59 +00:00
Sven Neumann 7b5484fc95 typos 2006-05-18 17:45:52 +00:00
Sven Neumann 847131f12e reverted one aspect of the last change and always load the scripts again.
2006-05-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu.c (script_fu_run): reverted one
	aspect of the last change and always load the scripts again.
2006-05-18 17:35:24 +00:00
Sven Neumann fae8657c21 tools/pdbgen/app.pl removed code that used to fiddles with the argument
2006-05-18  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/app.pl
	* tools/pdbgen/lib.pl: removed code that used to fiddles with
the
	argument descriptions.

	* tools/pdbgen/pdb/*.pdb: removed %%desc%% placeholder, added
some
	missing argument descriptions.

	* app/pdb/*_cmds.c
	* libgimp/gimpdrawabletransform_pdb.c
	* libgimp/gimpfloatingsel_pdb.c
	* libgimp/gimpgradient_pdb.c
	* libgimp/gimppainttools_pdb.c: regenerated.

	* app/core/Makefile.am
	* app/core/gimpparamspecs-desc.[ch] (gimp_param_spec_get_desc):
	new function that creates a parameter description for the PDB.

	* app/pdb/gimppdb-query.c
	* app/pdb/procedural_db_cmds.c: use the new function to create
the
	descriptions on the fly.
2006-05-18 17:25:15 +00:00
Michael Natterer ac20627cea add tooltips to all hue partition radio buttons.
2006-05-18  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimphuesaturationtool.c: add tooltips to all hue
	partition radio buttons.

	* app/tools/gimptextoptions.[ch]
	* app/tools/gimpvectoroptions.[ch]: add the widgets that are
	needed by the tools as members to the options structs instead of
	attaching them with g_object_set_data().

	* app/tools/gimptexttool.c
	* app/tools/gimpvectortool.c: access the struct members instead of
	using g_object_get_data().
2006-05-18 09:41:32 +00:00
Kevin Cozens 160f04c434 Added quotes in two AM_CONDITIONAL lines to avoid complaints of "test: too
2006-05-17  Kevin Cozens  <kcozens@cvs.gnome.org>

	* configure.in: Added quotes in two AM_CONDITIONAL lines to avoid
	complaints of "test: too many arguments" when running ./configure.
2006-05-17 23:27:54 +00:00
Michael Natterer f42487cfc8 move the align tool after the move tool.
2006-05-18  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimp-tools.c (gimp_tools_init): move the align tool
	after the move tool.
2006-05-17 22:37:12 +00:00
William Skaggs 6477f2c19a Bill Skaggs <weskaggs@primate.ucdavis.edu>
* themes/Default/images/tools/stock-tool-align-16.png
	* themes/Default/images/tools/stock-tool-align-22.png
	* libgimpwidgets/gimpstock.c
	* libgimpwidgets/gimpstock.h
	* themes/Default/images/Makefile.am: add new (ugly) icon
	for alignment tool.

	* app/tools/gimpaligntool.c: use the new icon; change
	"pressed" to "clicked" for buttons.
2006-05-17 21:48:38 +00:00
Michael Natterer cecc955623 use the same method as the newly added text tool code for finding a
2006-05-17  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpvectortool.c (gimp_vector_tool_set_vectors): use
	the same method as the newly added text tool code for finding a
	suitable display for the vectors.
2006-05-17 19:03:29 +00:00
Michael Natterer aebf12dfb9 app/core/gimpbrushclipboard.c (gimp_brush_clipboard_buffer_changed) limit
2006-05-17  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbrushclipboard.c
	(gimp_brush_clipboard_buffer_changed)
	* app/core/gimppatternclipboard.c
	(gimp_pattern_clipboard_buffer_changed): limit the size of
	clipboard brushes and patterns to 512x512 pixels to prevent OOM
	conditions when copying from huge drawables.
2006-05-17 19:00:49 +00:00
William Skaggs 0f77a49615 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimpaligntool.[ch]: major change in ui, to make
	this tool behave like alignment tools found in vector apps.
	now you select items by clicking or drawing a rubber-band
	rectangle, add items by holding down shift, and then press
	a button to align all the selected items.
2006-05-17 18:36:02 +00:00
Michael Natterer 633897f5d7 moved the collection of plug-in args to a utilty function. Add another
2006-05-17  Michael Natterer  <mitch@gimp.org>

	* app/actions/plug-in-commands.c: moved the collection of plug-in
	args to a utilty function. Add another function that is called
	when the plug-in lives in <Brushes>, <Palettes> etc. and pass the
	active object's name to the plug-in.

	* plug-ins/pygimp/plug-ins/Makefile.am
	* plug-ins/pygimp/plug-ins/palette-offset.py
	* plug-ins/pygimp/plug-ins/palette-sort.py
	* plug-ins/pygimp/plug-ins/palette-to-gradient.py: added new
	scripts written by Joao S. O. Bueno Calligaris and fixed by Carol
	Spears. Changed them myself again. The stuff doesn't work as
	expected because python-fu has too much asumptions in its
	register() code, and the sort script doesn't implement all modes
	of Adrian's palette sorting perl script. Addresses bug #104639.
2006-05-17 17:34:17 +00:00
Michael Natterer 1b60573fae app/core/gimpbrushclipboard.c (gimp_brush_clipboard_buffer_changed) remove
2006-05-17  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbrushclipboard.c
	(gimp_brush_clipboard_buffer_changed)
	* app/core/gimppatternclipboard.c
	(gimp_pattern_clipboard_buffer_changed): remove calls to
	gimp_data_dirty() because the emission of "name-changed" takes
	care of that.
2006-05-17 10:36:21 +00:00
Sven Neumann 5084a123c9 app/core/gimpbrushclipboard.c (gimp_brush_clipboard_buffer_changed) emit
2006-05-17  Sven Neumann  <sven@gimp.org>

	* app/core/gimpbrushclipboard.c
	(gimp_brush_clipboard_buffer_changed)
	* app/core/gimppatternclipboard.c
	(gimp_pattern_clipboard_buffer_changed): emit "name-changed" so that
	the description is being updated.
2006-05-17 10:24:03 +00:00
Michael Natterer 109767513b add a clipboard pattern to the pattern factory (forgot to commit this
2006-05-17  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp.c (gimp_real_initialize): add a clipboard pattern
	to the pattern factory (forgot to commit this file).
2006-05-17 09:49:20 +00:00
Manish Singh b6a9aa6381 po-libgimp/Makefile.in.in po-plug-ins/Makefile.in.in
2006-05-17  Manish Singh  <yosh@gimp.org>

        * po-libgimp/Makefile.in.in
        * po-plug-ins/Makefile.in.in
        * po-script-fu/Makefile.in.in
        * po-tips/Makefile.in.in: revert previous changes, it doesn't
        look straightforward to change these without bumping up the
        intltool dependency.
2006-05-17 08:32:57 +00:00
Sven Neumann 33abaee881 synced function names with the header file.
2006-05-17  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpresolutionentry.c: synced function names with
	the header file.

	* libgimpwidgets/gimpwidgets.def: added missing entries.
2006-05-17 06:49:49 +00:00
Manish Singh c33345bfc5 po-libgimp/Makefile.in.in po-plug-ins/Makefile.in.in
2005-05-16  Manish Singh  <yosh@gimp.org>

        * po-libgimp/Makefile.in.in
        * po-plug-ins/Makefile.in.in
        * po-script-fu/Makefile.in.in
        * po-tips/Makefile.in.in: synchronized with po/Makefile.in.in.

        * gimptool-2.0.in
        * gimptool-win32.c.in: add reference to datarootdir.
2006-05-17 03:21:09 +00:00
Michael Natterer d7cd890c9c app/core/Makefile.am app/core/core-types.h new GimpPattern subclass that
2006-05-16  Michael Natterer  <mitch@gimp.org>

	* app/core/Makefile.am
	* app/core/core-types.h
	* app/core/gimppatternclipboard.[ch]: new GimpPattern subclass
	that auto-updates its contents from gimp->global_buffer.

	* app/core/gimp.c (gimp_real_initialize): add a clipboard pattern
	to the pattern factory.

	* app/widgets/gimpaction.c (gimp_action_set_proxy): replace the
	GimpView by a new one if the viewable type changes, instead of
	running into a warning (didn't happen before because this is only
	used for imagefiles and patterns, which didn't have subclasses).
2006-05-16 19:55:01 +00:00
Karine Delvare f1d058df5e check if the tool has a display before using it
2006-05-16  Karine Delvare  <edhel@gimp.org>

	* app/tools/gimprectangletool.c: check if the tool has a display
	before using it
2006-05-16 17:21:07 +00:00
Michael Natterer d15a6191b6 app/paint-funcs/paint-funcs-generic.h implement copy_color() and
2006-05-16  Michael Natterer  <mitch@gimp.org>

	* app/paint-funcs/paint-funcs-generic.h
	* app/paint-funcs/paint-funcs.[ch]: implement copy_color() and
	copy_color_pixels() which copy only the color bytes into a dest
	that has one byte less than src. Renamed component_pixels() to
	copy_component_pixels().

	* app/core/Makefile.am
	* app/core/core-types.h
	* app/core/gimpbrushclipboard.[ch]: new GimpBrush subclass that
	auto-updates its contents from gimp->global_buffer.

	* app/core/gimp.c (gimp_real_initialize): add a clipboard brush to
	the brush factory. Fixes bug #111082.
2006-05-16 13:11:47 +00:00
Sven Neumann a450ba46bb declared GimpPlugInInfo and GimpParamDef arrays as const.
2006-05-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/*/*.c: declared GimpPlugInInfo and GimpParamDef arrays
	as const.
2006-05-16 12:26:20 +00:00
Sven Neumann 055617ac6f removed empty quit() method. Only load scripts when extension-script-fu is
2006-05-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu.c: removed empty quit() method.
	Only load scripts when extension-script-fu is started.

	* plug-ins/script-fu/script-fu-scripts.c: minor cleanup.
2006-05-16 12:05:30 +00:00
Sven Neumann c14c5393cc indentation.
2006-05-16  Sven Neumann  <sven@gimp.org>

	* app/app_procs.c (app_run): indentation.

	* app/core/gimp.c (gimp_real_initialize)
	* app/plug-in/gimppluginmanager.c (gimp_plug_in_manager_restore):
	moved a call to status_callback() to the plug-in manager.
2006-05-16 11:43:55 +00:00
Kristian Rietveld fa2e7350d4 correct small typo.
2006-05-16  Kristian Rietveld  <kris@gtk.org>

	* configure.in: correct small typo.
2006-05-16 11:36:49 +00:00
Sven Neumann de6f37fad7 news flash 2006-05-16 07:26:04 +00:00
Manish Singh 61978b679e Minor cleanups.
2006-05-15  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/plug-ins/colorxhtml.py: Minor cleanups.
2006-05-16 04:43:26 +00:00
Michael Schumacher d5c8cea9ae added missing GLIB_LIBS to LIBADD. The recent changes to the gmodule check
2006-05-15  Michael Schumacher  <schumaml@cvs.gnome.org>

	* libgimpmodule/Makefile.am: added missing GLIB_LIBS to
	LIBADD. The recent changes to the gmodule check in configure.in
	had broken the build.
2006-05-15 22:40:31 +00:00
Michael Natterer d8685ea7e6 use GMODULE_NO_EXPORT_CFLAGS/LIBS.
2006-05-15  Michael Natterer  <mitch@gimp.org>

	* libgimpmodule/Makefile.am (GTKDOC_LIBS): use
	GMODULE_NO_EXPORT_CFLAGS/LIBS.
2006-05-15 12:01:02 +00:00
Sven Neumann c357c470e3 removed debugging output.
2006-05-15  Sven Neumann  <sven@gimp.org>

	* app/plug-in/gimpplugin.c: removed debugging output.
2006-05-15 10:31:04 +00:00
Sven Neumann 6ebcf700d1 removed erroneous semicolon after G_DEFINE_TYPE macros.
2006-05-15  Sven Neumann  <sven@gimp.org>

	* app/*/*.c:
	* lib*/*.c: removed erroneous semicolon after G_DEFINE_TYPE macros.
2006-05-15 09:46:31 +00:00
Sven Neumann c89807658a include "libgimpconfig/gimpconfig.h".
2006-05-15  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-utils.c: include "libgimpconfig/gimpconfig.h".
2006-05-15 06:57:54 +00:00