Commit Graph

17902 Commits

Author SHA1 Message Date
Jakub Friedl 10f998b587 updated Czech translation.
2006-05-24  Jakub Friedl <jfriedl@centrum.cz>

  * cs.po: updated Czech translation.
2006-05-24 12:04:38 +00:00
Jakub Friedl d0e5148b72 Updated Czech translation.
2006-05-24  Jakub Friedl  <jfriedl@suse.cz>

  * cs.po: Updated Czech translation.
2006-05-24 09:03:04 +00:00
Sven Neumann 6e3a59ed60 use GTK_STOCK_OPEN instead of "..." to label the "Browse" button. This
2006-05-24  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpfileentry.c: use GTK_STOCK_OPEN instead of
	"..."  to label the "Browse" button. This makes the widget more
	similar to the GtkFileChooserButton and addresses bug #342749.
2006-05-24 07:36:48 +00:00
Michael Natterer 93fa4b6ebd use g_hash_table_replace() instead of g_hash_table_insert() and make sure
2006-05-24  Michael Natterer  <mitch@gimp.org>

	* app/pdb/gimppdb.c (gimp_pdb_real_register_procedure)
	(gimp_pdb_real_unregister_procedure): use g_hash_table_replace()
	instead of g_hash_table_insert() and make sure the used key is
	always the name of the first procedure in the list.
	Fixes bug #342578.

	(It's actually a miracle that only the PDB browser crashed, and
	not GIMP, since we were using pointers to g_free()'d memory as
	keys when different plug-ins registered procedures with the same
	name)
2006-05-23 22:41:05 +00:00
Sven Neumann a40bd928cb improved output for missing libasound.
2006-05-23  Sven Neumann  <sven@gimp.org>

	* configure.in: improved output for missing libasound.
2006-05-23 20:40:56 +00:00
Michael Natterer c99609fd8b Fix for bug #333156:
2006-05-23  Michael Natterer  <mitch@gimp.org>

	Fix for bug #333156:

	* app/paint-funcs/paint-funcs-types.h (enum CombinationMode):
	added value COMBINE_INTEN_A_INDEXED.

	* app/paint-funcs/paint-funcs.c
	(combine_inten_a_and_indexed_pixels): new function which
	implements the new CombinationMode.

	(combine_sub_region)
	(combine_regions): added the needed bits to call the new function.

	* app/core/gimpprojection-construct.c (project_indexed): added
	mask PixelRegion parameter since that's supported by paint-funcs
	now, replaced g_warning() about unimplemented combine type
	by call to combine_regions(..., COMBINE_INTEN_A_INDEXED).

	(gimp_projection_construct_layers): pass the mask to
	project_indexed() and removed comments about not supporting it.
2006-05-23 19:18:00 +00:00
Karine Delvare 1ce44a4555 app/core/gimpcontext.c app/tools/gimp-tools.c
2006-05-23  Karine Delvare  <edhel@gimp.org>

	* app/core/gimpcontext.c
	* app/tools/gimp-tools.c
	* app/tools/gimpnewrectselecttool.c
	* app/tools/gimprectselecttool.c
	* app/widgets/gimptoolbox.c
	* menus/image-menu.xml.in: replace old rect select by new in the
	toolbox.
2006-05-23 18:14:51 +00:00
Karine Delvare 4d0e186ea9 app/tools/gimpcroptool.c app/tools/gimpnewrectselecttool.c eek, I broke
2006-05-23  Karine Delvare  <edhel@gimp.org>

	* app/tools/gimpcroptool.c
	* app/tools/gimpnewrectselecttool.c
	* app/tools/gimprectangletool.[ch]: eek, I broke the build.
2006-05-23 17:37:18 +00:00
Karine Delvare c282b4ff12 app/tools/gimpcroptool.c revert rect select execution on leaving, revert
2006-05-23  Karine Delvare  <edhel@gimp.org>

	* app/tools/gimpcroptool.c
	* app/tools/gimpnewrectselecttool.c: revert rect select execution on
	leaving, revert auto-conversion to selection.
2006-05-23 17:04:00 +00:00
Jakub Friedl fc01137a62 Updated Czech translation.
2006-05-23  Jakub Friedl  <jfriedl@suse.cz>

  * cs.po: Updated Czech translation.
2006-05-23 16:31:46 +00:00
Karine Delvare 9ae62df553 don't execute gimp_rectangle_tool_response() twice. Fixes bug #342506.
2006-05-23  Karine Delvare  <edhel@gimp.org>

	* app/tools/gimpnewrectselecttool.c: don't execute
	gimp_rectangle_tool_response() twice. Fixes bug #342506.
2006-05-23 16:11:44 +00:00
Sven Neumann c3448b2cbf It makes more sense to have GimpData::dirty indicate a name change than to
2006-05-23  Sven Neumann  <sven@gimp.org>

	It makes more sense to have GimpData::dirty indicate a name change
	than to invalidate the previews whenever the name changes.

	* app/core/gimpdata.c: call gimp_object_name_changed() from
	gimp_data_real_dirty() instead of implementing
	GimpObject::name-changed and calling gimp_data_dirty() from there.

	* app/core/gimpbrushclipboard.c
	* app/core/gimppalette.c
	* app/core/gimppatternclipboard.c: call gimp_data_dirty() in place
	of gimp_object_name_changed().

	* app/core/gimpbrushgenerated.c (gimp_brush_generated_dirty):
	chain up unconditionally.
2006-05-23 15:39:45 +00:00
Michael Natterer bb342e89bd tools/pdbgen/pdb/drawable_transform.pdb add the drawable's offset to the x
2006-05-23  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/drawable_transform.pdb
	* tools/pdbgen/pdb/transform_tools.pdb: add the drawable's offset
	to the x and y returned by gimp_drawable_mask_intersect() because
	all transform functions expect image coordinates.
	Fixes bug #342548.

	* app/pdb/drawable_transform_cmds.c
	* app/pdb/transform_tools_cmds.c: regenerated.
2006-05-23 11:11:06 +00:00
Michael Natterer 5b4660a326 don't call the virtual function if there is no dialog.
2006-05-23  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptransformtool.c (gimp_transform_tool_dialog_update):
	don't call the virtual function if there is no dialog.

	(gimp_transform_tool_recalc): show the dialog here after updating it.

	* app/tools/gimpperspectivetool.c
	* app/tools/gimprotatetool.c
	* app/tools/gimpscaletool.c
	* app/tools/gimpsheartool.c (dialog_update): don't show it here.
2006-05-23 09:23:33 +00:00
Michael Natterer 4a9a80548a remove some #if 0'ed cruft.
2006-05-22  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimppainttool.c (gimp_paint_tool_control): remove
	some #if 0'ed cruft.
2006-05-22 19:23:23 +00:00
Michael Natterer 474da9fcc4 re-apply heavily modified patch from Michael Schumacher which shows the
2006-05-22  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpclonetool.[ch]: re-apply heavily modified patch
	from Michael Schumacher which shows the clone source even while
	not painting. Fixes bug #324224. Did some additional cleanup.
2006-05-22 18:35:58 +00:00
William Skaggs 5e81a4a012 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/png.c: fix remapping of colors when
	saving IndexedA images; fixes bug #303864.
2006-05-22 17:13:30 +00:00
Sven Neumann 534fedbdd7 removed debugging output.
2006-05-22  Sven Neumann  <sven@gimp.org>

	* app/actions/plug-in-commands.c (plug_in_collect_image_args):
	removed debugging output.

	* app/tools/gimpscaletool.c: create the GimpSizeBox in the
	prepare() method to make entering relative sizes work.
2006-05-22 13:29:32 +00:00
Sven Neumann a01ec45967 initialize width, height and keep-aspect properties of the size box.
2006-05-22  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpscaletool.c (gimp_scale_tool_prepare): initialize
	width, height and keep-aspect properties of the size box.
2006-05-22 13:00:04 +00:00
Michael Natterer 39f2238655 revert previous change. Tools must not do anything essential in
2006-05-22  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpclonetool.c: revert previous change. Tools must
	not do anything essential in cursor_update(), and poking in the
	GimpClone struct is a bad hack. Will look into this.
2006-05-22 07:11:15 +00:00
William Skaggs b011f16411 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimpclonetool.c:  apply patch from Michael
	Schumacher to show clone source even while not
	painting; fixes bug #324224.
2006-05-21 23:40:59 +00:00
Michael Natterer b3c20ed2a5 prefix with GIMP_TOOL_ACTION_
2006-05-21  Michael Natterer  <mitch@gimp.org>

	* app/tools/tools-enums.h (enum GimpToolAction): prefix with
	GIMP_TOOL_ACTION_

	* app/display/gimpdisplay.c
	* app/display/gimpdisplayshell.c
	* app/tools/gimpaligntool.c
	* app/tools/gimpcolorpickertool.c
	* app/tools/gimpcolortool.c
	* app/tools/gimpcroptool.c
	* app/tools/gimpdrawtool.c
	* app/tools/gimpforegroundselecttool.c
	* app/tools/gimpfreeselecttool.c
	* app/tools/gimpimagemaptool.c
	* app/tools/gimpiscissorstool.c
	* app/tools/gimpmeasuretool.c
	* app/tools/gimpmovetool.c
	* app/tools/gimpnewrectselecttool.c
	* app/tools/gimppainttool.c
	* app/tools/gimpselectiontool.c
	* app/tools/gimptexttool.c
	* app/tools/gimptool.c
	* app/tools/gimptransformtool.c
	* app/tools/gimpvectortool.c
	* app/tools/tool_manager.c: changed accordingly. Introduce a
	common style for GimpTool::control()'s switch() block. Some
	minor cleanups.
2006-05-21 21:12:01 +00:00
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