Commit Graph

13244 Commits

Author SHA1 Message Date
Michael Natterer 49dd42f65b app/plug-in/plug-in-message.c app/plug-in/plug-in-run.c (plug_in_temp_run)
2004-08-11  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in-message.c
	* app/plug-in/plug-in-run.c (plug_in_temp_run)
	* libgimp/gimp.c (gimp_temp_proc_run): removed ENABLE_TEMP_RETURN
	#define and all code which was in #ifndef ENABLE_TEMP_RETURN.
2004-08-11 09:41:48 +00:00
Michael Natterer ca30f73817 added "display_ID" to gimp_new_progress().
2004-08-11  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-gui.[ch]: added "display_ID" to gimp_new_progress().

	* app/gui/gui-vtable.c: changed accordingly.

	* app/plug-in/plug-in-progress.[ch]: reenabled showing the
	progress in a particular display.
2004-08-11 09:36:51 +00:00
Michael Natterer 4671054c08 added a commented-out midi controller entry with some example mappings.
2004-08-11  Michael Natterer  <mitch@gimp.org>

	* etc/controllerrc: added a commented-out midi controller entry
	with some example mappings.
2004-08-11 09:16:36 +00:00
David Odin d04237e085 converted to GimpPreviewArea.
* plug-ins/common/plasma.c: converted to GimpPreviewArea.
2004-08-11 02:36:40 +00:00
David Odin 8f9e510998 converted to GimpPreviewArea. Also added scrollbars to move around. The
* plug-ins/common/noisify.c: converted to GimpPreviewArea.  Also added
  scrollbars to move around.  The preview was rather useless without them.
2004-08-11 00:59:21 +00:00
Michael Natterer 502f9b71f3 app/core/gimpdrawable-blend.c some progress cleanup.
2004-08-11  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable-blend.c
	* app/core/gimpprogress.c: some progress cleanup.

	* app/display/gimpstatusbar.c (gimp_statusbar_progress_start): no
	need to warn if there is already a progress active, just silently
	return NULL as all other GimpProgressInterface implementors.

	* app/plug-in/plug-in-progress.c: several progress fixes.
	It's still a mess.

	* plug-ins/common/url.c: don't show progress depending on
	run_mode. Run the actual file plug-in with the same run_mode we
	were invoked with.
2004-08-11 00:34:34 +00:00
Sven Neumann 846bacd905 app/gui/file-open-location-dialog.c increased horizontal size request to
2004-08-11  Sven Neumann  <sven@gimp.org>

	* app/gui/file-open-location-dialog.c
	* app/widgets/gimpprogressbox.c: increased horizontal size request
	to reduce resizing.
2004-08-10 23:37:06 +00:00
Sven Neumann 28fcd47b35 app/app-docs.sgml app/app-sections.txt updated for new GimpProgress API.
2004-08-11  Sven Neumann  <sven@gimp.org>

	* app/app-docs.sgml
	* app/app-sections.txt
	* app/app.types: updated for new GimpProgress API.
2004-08-10 22:52:11 +00:00
Michael Natterer 828b852e06 fixed annoying resizing when thumbnailing exactly one image.
2004-08-11  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpthumbbox.c (gimp_thumb_box_create_thumbnails):
	fixed annoying resizing when thumbnailing exactly one image.
2004-08-10 22:34:45 +00:00
Michael Natterer 06ea7dbd96 app/widgets/Makefile.am app/widgets/widgets-types.h new GtkVBox subclass
2004-08-11  Michael Natterer  <mitch@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpprogressbox.[ch]: new GtkVBox subclass featuring
	a label and a progressbar. Implements GimpProgressIterface.

	* app/widgets/gimpprogressdialog.[ch]: replaced label and progress
	by a GimpProgressBox. Delegate most progress functionality to it.

	* app/widgets/gimpwidgets-utils.[ch]: factored out utility
	function gimp_dialog_set_sensitive().

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_set_sensitive):
	use it.

	* app/gui/file-open-location-dialog.c (file_open_location_response):
	embed the called file procedure's progress using a GimpProgressBox.
2004-08-10 22:21:56 +00:00
Michael Natterer 95607cce19 new function which works on all widgets in the dialog except the cancel
2004-08-10  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpfiledialog.[ch]
	(gimp_file_dialog_set_sensitive): new function which works on all
	widgets in the dialog except the cancel button.

	Remember if the active progress is cancelable and added two
	booleans "busy" and "canceled". Added GtkDialog::response()
	implementation which, if the dialog is busy, cancels the active
	progress and sets the dialog's "canceled" state.

	Moved the progress bar right above the action area so it is next
	to the cancel button and in the same place for both open and save
	dialogs.

	* app/gui/file-open-dialog.c
	* app/gui/file-save-dialog.c: use the new API to make image loading
	and saving cancelable again.

	* app/widgets/gimpthumbbox.c: use the same stuff to make
	thumbnailing cancelable. Increased the minimum height a bit so it
	doesn't resize when the progress bars are shown.
2004-08-10 21:20:38 +00:00
Michael Natterer 02d2b990f5 Redid the whole internal progress stuff: don't pass around
2004-08-10  Michael Natterer  <mitch@gimp.org>

	Redid the whole internal progress stuff: don't pass around
	progress_callback and progress_data; instead, provide a
	pointer to a GimpProgressInterface which can be implemented
	by a variety of backends.

	Addresses (but not yet fixes) bugs #6010, #97266 and #135185.

	* app/display/Makefile.am
	* app/display/gimpprogress.[ch]: removed the old progress hack.

	* app/core/Makefile.am
	* app/core/core-types.h
	* app/core/gimpprogress.[ch]: implement GimpProgressInterface.

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpprogressdialog.[ch]: the standalone progress
	dialog as widget implementing GimpProgressInterface.

	* app/display/gimpdisplay.c
	* app/display/gimpstatusbar.[ch]
	* app/widgets/gimpfiledialog.[ch]
	* app/widgets/gimpthumbbox.[ch]: added GimpProgressInterface
	implementation to these classes.

	* app/core/gimp-gui.[ch]
	* app/gui/gui-vtable.c: replaced the old progress vtable entries
	by two new to create and destroy a GimpProgressDialog in case
	no other progress is available.

	* app/pdb/procedural_db.[ch]
	* app/plug-in/plug-in-run.[ch]
	* tools/pdbgen/app.pl: pass a GimpProgress to all PDB wrappers and
	all plug-ins.

	* app/plug-in/plug-in.[ch]
	* app/plug-in/plug-ins.c
	* app/plug-in/plug-in-message.c
	* app/plug-in/plug-in-progress.c: handle the case there the
	plug-in was crated with a progress as well as the case where it
	wasn't.

	* app/app_procs.c
	* app/batch.c
	* app/xcf/xcf.c
	* app/file/file-open.[ch]
	* app/file/file-save.[ch]
	* app/widgets/gimphelp.c
	* app/widgets/gimpbrushselect.c
	* app/widgets/gimpfontselect.c
	* app/widgets/gimpgradientselect.c
	* app/widgets/gimppaletteselect.c
	* app/widgets/gimppatternselect.c: changed accordingly.

	* app/core/gimpimagefile.[ch]
	* app/display/gimpdisplayshell-dnd.c
	* app/gui/file-open-dialog.c
	* app/gui/file-open-location-dialog.c
	* app/gui/file-save-dialog.c
	* app/widgets/gimplayertreeview.c
	* app/widgets/gimptoolbox-dnd.c: pass a GimpProgress to all file
	related functions. Embed the progress in the file dialog where
	possible.

	* app/core/gimpdrawable-blend.[ch]
	* app/core/gimpdrawable-transform.[ch]
	* app/core/gimpimage-convert.[ch]
	* app/core/gimpimage-flip.[ch]
	* app/core/gimpimage-resize.[ch]
	* app/core/gimpimage-rotate.[ch]
	* app/core/gimpimage-scale.[ch]
	* app/core/gimpitem-linked.[ch]
	* app/core/gimpitem.[ch]
	* app/core/gimpchannel.c
	* app/core/gimpdrawable.c
	* app/core/gimplayer.c
	* app/core/gimpselection.c
	* app/vectors/gimpvectors.c: replaced callback/data by GimpProgress.

	* app/tools/gimpblendtool.c
	* app/tools/gimptransformtool.c
	* app/gui/convert-dialog.c
	* app/actions/documents-commands.c
	* app/actions/file-commands.c
	* app/actions/image-commands.c
	* app/actions/layers-commands.c
	* app/actions/plug-in-commands.c
	* app/actions/vectors-commands.c
	* tools/pdbgen/pdb/convert.pdb
	* tools/pdbgen/pdb/edit.pdb
	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/layer.pdb: changed callers accordingly.

	* app/pdb/*_cmds.c: regenerated.
2004-08-10 18:47:21 +00:00
Michael Natterer 059f92634c updated.
2004-08-10  Michael Natterer  <mitch@gimp.org>

	* POTFILES.in: updated.
2004-08-10 18:46:56 +00:00
David Odin 0a4a09a1d4 GimpPreviewArea-ified.
* plug-ins/common/blinds.c: GimpPreviewArea-ified.
2004-08-10 18:00:03 +00:00
David Odin d0de558f68 Ported to GimpPreviewArea, use an enum for the color model instead of some
* plug-ins/common/AlienMap2.c: Ported to GimpPreviewArea, use an enum
  for the color model instead of some defines and use gboolean instead
  of gint where appropriate.
2004-08-10 15:07:50 +00:00
Sven Neumann b6efff7e77 plugged more file descriptor leaks.
2004-08-10  Sven Neumann  <sven@gimp.org>

	* app/core/gimpbrushgenerated.c (gimp_brush_generated_load):
	plugged more file descriptor leaks.
2004-08-10 11:33:13 +00:00
Marco Ciampa 09ad565eed Updated italian translation 2004-08-10 08:28:36 +00:00
David Odin c1566ea848 don't leak a file descriptor when reading a bad .vbr file.
* app/core/gimpbrushgenerated.c: don't leak a file descriptor when
  reading a bad .vbr file.
2004-08-10 02:37:44 +00:00
Sven Neumann 652cd385a4 don't show progress on the image window while updating the preview.
2004-08-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/unsharp.c: don't show progress on the image
	window while updating the preview.
2004-08-09 23:35:40 +00:00
Sven Neumann 1ad58630c8 reset the progress when done; some code cleanup.
2004-08-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/unsharp.c (unsharp_region): reset the progress
	when done; some code cleanup.
2004-08-09 21:07:57 +00:00
David Odin a3d5f6408d continuously show the (original) image during a scrollbar movement. This
* plug-ins/common/unsharp.c: continuously show the (original) image
  during a scrollbar movement.  This makes it easier to navigate.
2004-08-09 19:10:31 +00:00
Michael Natterer 88768c66f8 Applied (slightly modified) patch from Shlomi Fish which adds a progress
2004-08-09  Michael Natterer  <mitch@gimp.org>

	Applied (slightly modified) patch from Shlomi Fish which adds a
	progress bar to the RGB -> INDEXED conversion. Fixes bug #145274

	(and shows that we really really need a GimpProgressInterface in
	the core to give progress users full access to the progress API)

	* app/core/gimpimage-convert.[ch]: added special
	GimpImageConvertProgress function typedef to cope with the
	different stages of converting.  Support passing such a callback &
	data to gimp_image_convert() and update the progress accordingly.

	* app/gui/convert-dialog.[ch]: added a convert progress callback
	and pass it to gimp_image_convert().

	* app/actions/image-commands.c
	* tools/pdbgen/pdb/convert.pdb: changed accordingly.

	* app/pdb/convert_cmds.c: regenerated.
2004-08-09 16:08:36 +00:00
Sven Neumann 1a3bbe0e7c added GenericName and Version, updated Categories.
2004-08-09  Sven Neumann  <sven@gimp.org>

	* data/misc/gimp.desktop.in.in: added GenericName and Version,
	updated Categories.
2004-08-09 11:04:42 +00:00
Michael Natterer 8f366beff9 don't dereference gimp->current_plug_in->plug_in_def if it's NULL. Fixes
2004-08-09  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-ins.c
	(plug_ins_file_register_magic)
	(plug_ins_file_register_mime): don't dereference
	gimp->current_plug_in->plug_in_def if it's NULL.
	Fixes bug #149678.

	(plug_ins_file_register_mime): moved returning the proc_def inside
	the right if() statement.
2004-08-09 10:25:50 +00:00
Danilo Šegan 00e8541ec4 Merged translations from gimp-2-0 branch. 2004-08-09 01:20:11 +00:00
Hans Breuer eafd79de87 gimp_create_display() with the right parameters order
2004-08-09  Hans Breuer  <hans@breuer.org>

	* app/core/gimp-edit.c(gimp_edit_paste_as_new) :
	gimp_create_display() with the right parameters order

	* app/widgets/gimpwidgets-utils.c (gimp_message_box_set_icons)
	handle gtk_style_lookup_icon_set() returnig NULL

	* app/gimpcore.def app/widgets/makefile.msc
	  themes/default/images/makefile.msc : updated
2004-08-08 22:47:23 +00:00
Sven Neumann 608e16e5d8 use the basename as Title, not the full filename. Fixes bug #149669.
2004-08-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/postscript.c (save_ps_header): use the basename
	as Title, not the full filename. Fixes bug #149669.
2004-08-08 22:26:17 +00:00
Sven Neumann 04942cbc60 fixed my last fix 2004-08-08 19:59:16 +00:00
Sven Neumann 4bae8fe66b when printing a character array, don't flush the buffer for each byte but
2004-08-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/siod/sliba.c (array_prin1): when printing a
	character array, don't flush the buffer for each byte but wait
	until it is filled.
2004-08-08 19:15:06 +00:00
Sven Neumann bf3347161d use g_strdup_vprintf() instead of guessing the string length. Also declare
2004-08-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/siod-wrapper.[ch] (siod_output_string): use
	g_strdup_vprintf() instead of guessing the string length. Also
	declare the function using G_GNUC_PRINTF().
2004-08-08 18:44:31 +00:00
William Skaggs 79d50e2adc Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/ifscompose/README.ifscompose: fix out of date info,
	pointed out by the author.
2004-08-08 18:17:53 +00:00
Pablo Saratxaga 8e9f3ec35b fixed file 2004-08-08 17:42:17 +00:00
Pablo Saratxaga 91ea3df45b fixed various translations 2004-08-08 15:37:26 +00:00
Sven Neumann dbd5eb769b do not build test-preview-area by default, put it into EXTRA_PROGRAMS.
2004-08-08  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/Makefile.am: do not build test-preview-area by
	default, put it into EXTRA_PROGRAMS. Fixes parallel builds.
2004-08-08 11:55:34 +00:00
Michael Natterer ea8198e401 new function which checks a GimpImageType against the
2004-08-08  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in-proc.[ch] (plug_in_proc_def_get_sensitive):
	new function which checks a GimpImageType against the
	proc_def->image_types_val mask.

	* app/actions/plug-in-actions.c: use the new function here. Also
	separated setting the "Repeat last" and "Reshow last" actions'
	labels from setting their sensitivity and made them use the same
	sensitivity logic as all other plug-in actions. Fixes bug #149567.
2004-08-08 10:53:19 +00:00
Sven Neumann 72537feafb use the empty string to test g_filename_to_utf8().
2004-08-07  Sven Neumann  <sven@gimp.org>

	* app/sanity.c: (sanity_check_filename_encoding): use the empty
	string to test g_filename_to_utf8().
2004-08-07 19:01:49 +00:00
Simon Budig 084f814e1b emit the COLOR_CHANGED signal when the hex entry is changed.
2004-08-07  Simon Budig  <simon@gimp.org>

	* libgimpwidgets/gimpcolorscales.c: emit the COLOR_CHANGED signal
	when the hex entry is changed.
2004-08-07 18:53:32 +00:00
Sven Neumann d1d7cb4c0d abort if the configured filename encoding can't be converted to UTF-8.
2004-08-07  Sven Neumann  <sven@gimp.org>

	* app/sanity.c: abort if the configured filename encoding can't be
	converted to UTF-8. Fixes bug #149464 for the HEAD branch.
2004-08-07 18:37:31 +00:00
Sven Neumann 5ebbc4d68f corrected dither offset.
2004-08-07  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpgradientmenu.c (gimp_gradient_select_preview_expose):
	corrected dither offset.
2004-08-07 15:56:13 +00:00
David Odin 4b7c4edbd4 use a GimpPreviewArea instead of GimpOldPreview.
* plug-ins/common/max_rgb.c: use a GimpPreviewArea instead of GimpOldPreview.
2004-08-07 15:36:12 +00:00
Sven Neumann ad3866b3de use a GtkDrawingArea instead of GtkPreview.
2004-08-07  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpgradientmenu.c: use a GtkDrawingArea instead of
	GtkPreview.

	* libgimp/gimpbrushmenu.c
	* libgimp/gimppatternmenu.c: minor cleanup.
2004-08-07 14:44:58 +00:00
David Odin 97247b336f ported to GimpPreviewArea, did some cleanup and removed tabs.
* plug-ins/common/jigsaw.c: ported to GimpPreviewArea, did some
  cleanup and removed tabs.
2004-08-07 13:29:02 +00:00
Sven Neumann b3867f6534 bumped version number to 2.1.4.
2004-08-07  Sven Neumann  <sven@gimp.org>

	* configure.in:  bumped version number to 2.1.4.
2004-08-07 09:07:02 +00:00
David Odin f5454dd1c1 ported to GimpPreviewArea.
* plug-ins/common/illusion.c: ported to GimpPreviewArea.
2004-08-07 00:49:05 +00:00
David Odin e08e1d746b fixed the rendering for INDEXED and INDEXEDA image types.
* libgimpwidgets/gimppreviewarea.c: fixed the rendering for INDEXED
  and INDEXEDA image types.

* plug-ins/common/grid.c: ported to GimpPreviewArea.
2004-08-07 00:04:16 +00:00
David Odin 989d6dc33c ported to GimpPreviewArea.
* plug-ins/common/glasstile.c: ported to GimpPreviewArea.
2004-08-06 20:52:44 +00:00
David Odin 4960753dc4 ported to GimpPreviewArea.
* plug-ins/common/nlfilt.c: ported to GimpPreviewArea.
2004-08-06 19:38:13 +00:00
Michael Natterer da9c039eb2 removed the recently added "gdouble aspect_ratio"...
2004-08-06  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptransformtool.h: removed the recently added
	"gdouble aspect_ratio"...

	* app/tools/gimpscaletool.[ch]: ...and added it where it belongs.
2004-08-06 16:39:11 +00:00
Michael Natterer db821565e2 Transform tool cleanup:
2004-08-06  Michael Natterer  <mitch@gimp.org>

	Transform tool cleanup:

	* app/tools/gimptransformtool.[ch]: added new virtual function
	GimpTransformTool::dialog_update().
	Made wrapper for ::recalc() public and function
	transform_bounding_box() private.
	Call ::dialog_update() and transform_bounding_box() from the
	::recalc() wrapper.

	* app/tools/gimpperspectivetool.[ch]
	* app/tools/gimprotatetool.[ch]
	* app/tools/gimpscaletool.[ch]
	* app/tools/gimpsheartool.[ch]: turned all info_dialog update
	functions into GimpTransformTool::dialog_update() implementations
	and don't call them from ::recalc(), also removed calls to
	transform_bounding_box(); both functions are called by the parent
	class now. Call gimp_transform_tool_recalc() when dialog values
	were changed, not the tool's internal function.
	Moved all static variables to the instance structs.
2004-08-06 16:27:13 +00:00
Michael Natterer 42bc755ca7 applied (modified) patch from Ari Pollak which enables controlling the
2004-08-06  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpsheartool.[ch]: applied (modified) patch from Ari
	Pollak which enables controlling the shear direction from the
	dialog and changing the shear direction without hitting "Reset".
	Fixes bug #149467.

	Also moved all static variables to the GimpShearTool struct and
	converted tabs to spaces.
2004-08-06 13:56:34 +00:00