Commit Graph

13074 Commits

Author SHA1 Message Date
Sven Neumann ed2116ac89 app/plug-in/plug-in-progress.c app/plug-in/plug-in-run.c don't keep a
2004-08-17  Sven Neumann  <sven@gimp.org>

	* app/plug-in/plug-in-progress.c
	* app/plug-in/plug-in-run.c
	* app/plug-in/plug-in.c: don't keep a strong reference to the
	GimpProgress object, instead use a weak reference and deal with
	the progress being destroyed while the plug-in is running.
	Fixes bug #150194.
2004-08-17 08:21:30 +00:00
Sven Neumann 6543cfde20 fixed labels in CMYK mode. Fixes bug #150213.
2004-08-16  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcolorframe.c (gimp_color_frame_update): fixed
	labels in CMYK mode. Fixes bug #150213.
2004-08-16 07:24:42 +00:00
David Odin 1c39d63714 fixed a typo preventing the preview to be redrawn correctly in some case.
* plug-ins/common/iwarp.c: fixed a typo preventing the preview to be
  redrawn correctly in some case. Reported by AndyFitz.
2004-08-16 01:30:33 +00:00
Sven Neumann 1be91fc24b minor cleanups.
2004-08-15  Sven Neumann  <sven@gimp.org>

	* modules/colorsel_triangle.c: minor cleanups.

	* modules/colorsel_water.c: GimpPreviewArea seems like overkill
	here, use a GtkDrawingArea instead.
2004-08-15 18:01:11 +00:00
David Odin 7ef3447a69 modules/colorsel_triangle.c Replaced the GtkPreviews by GimpPreviewAreas.
* modules/colorsel_triangle.c
* modules/colorsel_water.c: Replaced the GtkPreviews by
  GimpPreviewAreas.
2004-08-15 15:31:20 +00:00
Manish Singh c1d5c94b03 make sure array length values are not negative, to prevent bad calls to
2004-08-14  Manish Singh  <yosh@gimp.org>

        * libgimpbase/gimpprotocol.c (_gp_params_read): make sure array
        length values are not negative, to prevent bad calls to g_new.
        Addresses bug #150154.
2004-08-15 06:52:45 +00:00
Sven Neumann 63355f333b no need to link gimp-help-lookup with any GIMP libraries.
2004-08-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/Makefile.am: no need to link gimp-help-lookup with
	any GIMP libraries.
2004-08-14 18:13:41 +00:00
Sven Neumann d2303c1f52 let --base overide the base URI only 2004-08-14 17:59:37 +00:00
Sven Neumann 1d669a5b4e allow to specify the location of the index files independently from the
2004-08-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/domain.[ch]: allow to specify the location of the
	index files independently from the base URL.

	* plug-ins/help/help.c: changed accordingly.

	* plug-ins/help/gimp-help-lookup.c: added command-line options to
	specify base URI and root directory for index files.
2004-08-14 17:53:40 +00:00
Sven Neumann dba01430e9 don't mess up the order of languages.
2004-08-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/locales.c (locales_parse): don't mess up the order
	of languages.

	* plug-ins/help/gimp-help-lookup.c: parse command-line options,
	added --help output.
2004-08-14 16:59:16 +00:00
Sven Neumann df6dc99d05 moved some defines to the header file.
2004-08-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/help.[ch]: moved some defines to the header file.

	* plug-ins/help/domain.c: trivial change to remove the libgimpbase
	dependency.

	* plug-ins/help/Makefile.am
	* plug-ins/help/gimp-help-lookup.c: added a very simple
	command-line tool that allows to lookup a help-id.
2004-08-14 15:47:22 +00:00
Tommi Vainikainen 8044f8caaa Unified po headers for Finnish Team 2004-08-13 19:46:23 +00:00
David Odin 21de121062 update the preview when the user choose a different algorithm from the
* plug-ins/common/edge.c: update the preview when the user choose a
  different algorithm from the combo box. This was one of the main
  reasons to have a preview here, after all.
2004-08-12 23:31:15 +00:00
Sven Neumann b8d208a92f forgot to commit ChangeLog changes 2004-08-12 22:30:25 +00:00
Sven Neumann ab4b346f60 use a combo box instead of too many radio buttons.
2004-08-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/edge.c (edge_dialog): use a combo box instead of
	too many radio buttons.
2004-08-12 22:28:15 +00:00
Michael Natterer 1437f52d63 make sure that all actions, even if they have no menu proxy, can be
2004-08-12  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpmenufactory.c (gimp_menu_factory_manager_new):
	make sure that all actions, even if they have no menu proxy, can
	be invoked by their accelerators. Fixes bug #149938.

	* app/widgets/gimpimagedock.c (gimp_image_dock_constructor):
	removed the same code here.

	* app/widgets/gimpactionview.[ch] (gimp_action_view_dispose): new
	function which disconnects from "accel_changed" of the accel_group
	before upchaining (== before emitting "destroy").

	The above changes make this one redundant, but since the crash in
	bug #149938 was triggered by "accel_changed" emitted in the middle
	of g_object_unref(tree_model), it feels better to be paranoic here
	(fiddling with objects in destruction is no fun).

	(gimp_action_view_accel_edited): don't warn if assigning the same
	accel to the same action again.

	(gimp_action_view_new): don't leak all accel_closures.
2004-08-12 20:04:19 +00:00
David Odin 6b4d16e03b added a preview.
* plug-ins/common/edge.c: added a preview.
2004-08-12 17:14:25 +00:00
Sven Neumann 45d77a3aaa plug-ins/common/sel_gauss.c place the preview widget into the upper left
2004-08-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/sel_gauss.c
	* plug-ins/common/unsharp.c: place the preview widget into the
	upper left corner like all other plug-ins do.

	* plug-ins/help/domain.c: added some (disabled) debug output.
2004-08-12 00:01:05 +00:00
David Odin 8f394a5f66 added a preview.
* plug-ins/common/sel_gauss.c: added a preview.

* plug-ins/common/unsharp.c: removed unused variables.
2004-08-11 23:18:31 +00:00
Sven Neumann 9cabd2942f changed the icons to indicate what part of the context is affected by the
2004-08-12  Sven Neumann  <sven@gimp.org>

	* app/actions/context-actions.c: changed the icons to indicate
	what part of the context is affected by the action. Looks better
	in the shortcut editor.
2004-08-11 23:14:02 +00:00
Sven Neumann 34841a6ddd tpyo 2004-08-11 21:46:12 +00:00
Sven Neumann ce45d96897 updated.
2004-08-11  Sven Neumann  <sven@gimp.org>

	* POTFILES.in: updated.
2004-08-11 15:30:36 +00:00
Michael Natterer ee3f7c9181 plug-ins/common/cartoon.c plug-ins/common/neon.c
2004-08-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/cartoon.c
	* plug-ins/common/neon.c
	* plug-ins/common/photocopy.c
	* plug-ins/common/softglow.c: added four new plug-ins contributed
	by Spencer Kimball. Ported them from 1.2 to 2.1 APIs.

	* plug-ins/common/plugin-defs.pl: added them here.

	* plug-ins/common/mkgen.pl: removed tab insanity now that
	libgimpoldpreview is gimp.

	* plug-ins/common/.cvsignore
	* plug-ins/common/Makefile.am: regenerated.
2004-08-11 15:25:14 +00:00
David Odin cda017512e Bad DindinX! Don't break the build!
* configure.in
* plug-ins/common/mkgen.pl
* plug-ins/common/plugin-defs.pl: removed libgimpoldpreview from here too.

* plug-ins/common/Makefile.am: regenerated.
2004-08-11 14:53:43 +00:00
David Odin 0efc08e208 Removed the GimpOldPreview stuff. Die, crap, die!
* plug-ins/libgimpoldpreview/*: removed.

* plug-ins/Makefile.am
* plug-ins/common/Makefile.am: changed accordingly.

* plug-ins/common/max_rgb.c
* plug-ins/common/noisify.c
* plug-ins/common/tileit.c: removed last forgotten
  #include "libgimpoldpreview.h".
2004-08-11 14:39:13 +00:00
Michael Natterer a8e599ebbf app/widgets/gimpcontainercombobox.[ch] when removing the last item from
2004-08-11  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainercombobox.[ch]
	* app/widgets/gimpcontainertreeview.c: when removing the last item
	from the view, manually clear all GimpCellRendererViewables'
	"renderer" properties; otherwise we have stale GimpPreviewRenderers
	with still-refed viewables hanging around in the cells.
	Works around GTK+ bug #149906.
2004-08-11 14:07:35 +00:00
Michael Natterer db1d6b0d6e app/core/gimp.c converted tabs to spaces, cosmetic changes.
2004-08-11  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp.c
	* app/core/gimpimagefile.c: converted tabs to spaces, cosmetic
	changes.
2004-08-11 14:00:08 +00:00
David Odin a59c673d03 GimpPreviewArea-ified.
* plug-ins/common/waves.c: GimpPreviewArea-ified.
2004-08-11 13:37:40 +00:00
Michael Natterer d03577fab2 Restored sane sorting order for menus which are created entirely by
2004-08-11  Michael Natterer  <mitch@gimp.org>

	Restored sane sorting order for menus which are created
	entirely by plug-ins (like Xtns/Script-Fu/...).

	* app/menus/plug-in-menus.c (plug_in_menus_build_path): made it
	return the built path. For each sub-menu created, add a "Menus"
	placeholder and a separator. Make sure all sub-menus end up in the
	"Menus" placeholder. More readable because we can use the path
	returned by the recursive invocation now.

	(plug_in_menus_add_proc): simplified by using the path
	plug_in_menus_build_path() returns.
2004-08-11 10:45:47 +00:00
Michael Natterer 57a3396d40 added virtual function gboolean GimpProgressInterface::is_active().
2004-08-11  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpprogress.[ch]: added virtual function
	gboolean GimpProgressInterface::is_active().

	* app/display/gimpdisplay.c
	* app/display/gimpstatusbar.c
	* app/widgets/gimpfiledialog.c
	* app/widgets/gimpprogressbox.c
	* app/widgets/gimpprogressdialog.c
	* app/widgets/gimpthumbbox.c: implement it.

	* app/plug-in/plug-in.h: removed "gboolean progress_active" and
	added "gulong progress_cancel_id" instead.

	* app/plug-in/plug-in-progress.c: changed accordingly. Make sure
	we correctly handle the "cancel" connections of progress instances
	passed from other plug-ins.
2004-08-11 10:29:56 +00:00
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