Commit Graph

17981 Commits

Author SHA1 Message Date
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
Manish Singh 9046551825 define datarootdir, so we work with newer autoconf.
2006-05-26  Manish Singh  <yosh@gimp.org>

        * gimp.pc.in: define datarootdir, so we work with newer autoconf.
2006-05-26 23:07:21 +00:00
Michael Natterer 90fb8dfad7 new script from Akkana Peck which reverses the layers in an image.
2006-05-26  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/reverse-layers.scm: new script from
	Akkana Peck which reverses the layers in an image.
2006-05-26 21:40:24 +00:00
Jakub Friedl 6175bfdb5c updated Czech translation.
2006-05-26  Jakub Friedl <jfriedl@centrum.cz>

  * cs.po: updated Czech translation.
2006-05-26 18:13:22 +00:00
William Skaggs db1a049927 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/dicom.c: applied patch from Dov Grobgeld
	with several fixes for dicom loading, fixes bug #163256.
2006-05-26 16:19:24 +00:00
Michael Natterer 7de66e68e3 set the "Number of colors" and "Interval" widgets insensitive for indexed
2006-05-26  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/palette-import-dialog.c: set the "Number of colors"
	and "Interval" widgets insensitive for indexed images.
	Fixes bug #342970.
2006-05-26 12:48:23 +00:00
Clytie Siddall b7e4d51d9e vi.po: Updated Vietnamese translation. 2006-05-25 11:46:08 +00:00
Michael Natterer a188d09bbc moved "Load defaults" and "Save defaults" buttons to a separate line.
2006-05-24  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/png.c: moved "Load defaults" and "Save defaults"
	buttons to a separate line. Fixes bug #310291.
2006-05-24 20:24:02 +00:00
William Skaggs 74c19c8dc7 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/jpeg/gimpexif.c
	* plug-ins/jpeg/jpeg-load.c
	* plug-ins/jpeg/jpeg-save.h
	* plug-ins/jpeg/jpeg.c
	* plug-ins/jpeg/jpeg.h: fix multiply-defined linker symbols;
	fixes bug #342456.
2006-05-24 20:16:25 +00:00
Michael Natterer 6416b18a65 use canonical procedure names in the help string.
2006-05-24  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/copy-visible.scm: use canonical
	procedure names in the help string.
2006-05-24 19:44:09 +00:00
Marco Ciampa ab59d79cc0 Update italian translation 2006-05-24 15:43:40 +00:00
Sven Neumann 8585584374 use "folder" in place of "directory".
2006-05-24  Sven Neumann  <sven@gimp.org>

	* app/config/gimprc-blurbs.h (SWAP_PATH_BLURB, TEMP_PATH_BLURB):
	use "folder" in place of "directory".

	* app/dialogs/preferences-dialog.c: use GtkFileChooserButtons for
	the "swap-path" and "temp-path" preferences and a simple GtkEntry
	for the "web-browser" preference.

	* modules/cdisplay_proof.c: use a GtkFileChooserButton instead of
	a GimpFileEntry widget.
2006-05-24 15:27:49 +00:00
Michael Natterer fa03960519 the default tool is the paintbrush, not rect select.
2006-05-24  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpcontext.c (gimp_context_tool_list_thaw): the
	default tool is the paintbrush, not rect select.

	* app/tools/gimp-tools.c (gimp_tools_register): attach the default
	visibility state to the tool_info.

	* app/actions/tools-commands.c (tools_reset_cmd_callback): use the
	attached boolean instead of reimplementing the default visibility
	logic.
2006-05-24 15:04:45 +00:00
Sven Neumann c03e117e48 use a GtkFileChooserButton instead of a GimpFileEntry widget.
2006-05-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/raw.c (load_dialog): use a GtkFileChooserButton
	instead of a GimpFileEntry widget.

	* plug-ins/script-fu/script-fu-interface.c
	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-types.h: use GtkFileChooserButton
	for SF_FILENAME and SF_DIRNAME parameters.
2006-05-24 14:53:40 +00:00
Sven Neumann 7c6cc1d09a use a GtkFileChooserButton instead of a GimpFileEntry widget.
2006-05-24  Sven Neumann  <sven@gimp.org>

	* app/dialogs/palette-import-dialog.c: use a GtkFileChooserButton
	instead of a GimpFileEntry widget.

	* data/palettes/Tango.gpl (Name): removed "Palette" from name.
2006-05-24 14:31:06 +00:00
Sven Neumann d8e48c5590 renamed a parameter, updated gtk-doc comment.
2006-05-24  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppatheditor.[ch]: renamed a parameter, updated
	gtk-doc comment.
2006-05-24 13:14:05 +00:00
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