Commit Graph

13033 Commits

Author SHA1 Message Date
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
David Odin 91cf50aefb ported to GimpPreviewArea.
* plug-ins/common/nova.c: ported to GimpPreviewArea.
2004-08-06 13:30:49 +00:00
Sven Neumann 3efeb7982a Made 2.1.3 release.
2004-08-06  Sven Neumann  <sven@gimp.org>

        * Made 2.1.3 release.
2004-08-06 01:45:32 +00:00
David Odin e6d4d26c75 ported to GimpPreviewArea (from GimpOldPreview).
* plug-ins/common/polar.c: ported to GimpPreviewArea (from GimpOldPreview).
2004-08-06 01:28:01 +00:00
Sven Neumann e890f8ff83 include <glib-object.h>.
2004-08-06  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/test-color-parser.c: include <glib-object.h>.
2004-08-06 01:04:13 +00:00
Sven Neumann 8651be295e removed unused variables.
2004-08-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/depthmerge.c:
	* plug-ins/common/despeckle.c: removed unused variables.
2004-08-06 00:59:58 +00:00
David Odin a560d35e23 ported to GimpPreviewArea (from GimpPreviewArea)
* plug-ins/common/flarefx.c: ported to GimpPreviewArea (from GimpPreviewArea)
2004-08-06 00:36:47 +00:00
Sven Neumann 46960e26d7 forgot to remove tw_sess.c here.
2004-08-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/twain/Makefile.am (EXTRA_DIST): forgot to remove
	tw_sess.c here.
2004-08-06 00:12:40 +00:00
Sven Neumann de3249da54 libgimpwidgets/libgimpwidgets-sections.txt added new stock icons.
2004-08-06  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/libgimpwidgets-sections.txt
	* libgimpwidgets/tmpl/gimpstock.sgml: added new stock icons.
2004-08-05 23:54:13 +00:00
Sven Neumann 2ed9e3428b app/app-docs.sgml app/app-sections.txt updated.
2004-08-06  Sven Neumann  <sven@gimp.org>

	* app/app-docs.sgml
	* app/app-sections.txt
	* app/app.types: updated.
2004-08-05 23:40:01 +00:00
Sven Neumann 67fa71bc1e updated 2004-08-05 22:47:56 +00:00
David Odin c3acd71590 ported to GimpPreviewArea (from GimpOldPreview)
* plug-ins/common/wind.c: ported to GimpPreviewArea (from GimpOldPreview)
2004-08-05 16:43:20 +00:00