Commit Graph

17807 Commits

Author SHA1 Message Date
Simon Budig 7b3cd7d9f7 Insert a missing break that was responsible for a weird output of integer
2006-05-08  Simon Budig  <simon@gimp.org>

	* plug-ins/script-fu/siod/sliba.c: Insert a missing break that
	was responsible for a weird output of integer arrays.
	Untabbified.
2006-05-08 20:01:14 +00:00
Thomas James Alexander Thurman b1d0ee779d #340891: ACW = anticlockwise 2006-05-08 17:44:10 +00:00
Michael Natterer 95cc2ecb1e set the alternative button order here...
2006-05-08  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_new): set the
	alternative button order here...

	* app/dialogs/file-open-dialog.c (file_open_dialog_new)
	* app/dialogs/file-save-dialog.c (file_save_dialog_new): ...instead
	of here.
2006-05-08 15:43:21 +00:00
Simon Budig 3a7341d6e6 fix typo...
2006-05-08  Simon Budig  <simon@gimp.org>

	* plug-ins/common/postscript.c: fix typo...
2006-05-08 14:08:31 +00:00
Michael Natterer cfe5e9b137 changed enum PlugInImageType to GimpPlugInImageType.
2006-05-08  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in-enums.[ch]: changed enum PlugInImageType
	to GimpPlugInImageType.

	* app/pdb/gimppluginprocedure.[ch]: changed accordingly.
2006-05-08 13:18:02 +00:00
Simon Budig a108ac9967 improve the error message when spawning ghostscript does not work. See bug
2006-05-08  Simon Budig  <simon@gimp.org>

	* plug-ins/common/postscript.c: improve the error message when
	spawning ghostscript does not work. See bug #340996. Untabbified.
2006-05-08 12:23:32 +00:00
Michael Natterer 9d36204976 don't #include "gimp.h".
2006-05-08  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable.c: don't #include "gimp.h".
2006-05-08 11:15:51 +00:00
Michael Natterer 7c6cb67c31 Mention fixed bug. 2006-05-08 09:26:37 +00:00
Simon Budig e6c52afb6e Make the hue angle behave mathematically correct. Fixes bug #141922
2006-05-07  Simon Budig  <simon@gimp.org>

	* modules/colorsel_triangle.c: Make the hue angle behave
	mathematically correct. Fixes bug #141922

	* plug-ins/script-fu/scripts/circuit.scm: Fix multi line description.

	* docs/Wilber.svg: Add xmlns attribute to the svg element, so
	firefox renders it when reading it from disk.
2006-05-07 20:47:10 +00:00
Michael Natterer ab1153cb71 return early if the shell is already at the requested zoom level.
2006-05-07  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-scale.c (gimp_display_shell_scale):
	return early if the shell is already at the requested zoom level.
	(paranoia addition for bug #165032, which was already fixed by the
	fix for bug #164281):
2006-05-06 22:56:28 +00:00
Michael Natterer bc06f94e47 hide the button bar, which is useless for the brush editor. Fixes user
2006-05-07  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpbrusheditor.c: hide the button bar, which is
	useless for the brush editor. Fixes user confusion (bug #306704).
2006-05-06 22:04:56 +00:00
Michael Natterer c2061e2922 connect to the context's "brush-changed" signal and update the brush
2006-05-06  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimppainttool.c: connect to the context's
	"brush-changed" signal and update the brush core's brush
	accordingly. Fixes inconsistent brush preview when not moving
	the mouse while the brush changes (bug #323404).
2006-05-06 21:10:32 +00:00
Michael Natterer 549df3a0df added "gboolean none_ok" members to GimpParamSpecImageID,
2006-05-06  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpparamspecs.[ch]: added "gboolean none_ok" members
	to GimpParamSpecImageID, GimpParamSpecItemID and
	GimpParamSpecDisplayID.  If none_ok is set, allow '0' and '-1' as
	valid IDs. Added "none_ok" parameter to all ID param spec
	constructors.

	* app/xcf/xcf.c: require real image IDs, but allow images without
	active drawable.

	* app/pdb/gimp-pdb-compat.c: set none_ok to TRUE in all compat
	param specs, so only IDs that are really random garbage don't pass
	validation. Fixes validation errors with 0 and -1 IDs.

	* tools/pdbgen/app.pl: set none_ok to FALSE by default. Added
	support for $arg->{none_ok} to control it.

	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/progress.pdb
	* tools/pdbgen/pdb/text_tool.pdb: use none_ok instead of
	no_success (which disables validation entirely).

	* app/pdb/[many]_cmds.c: regenerated.
2006-05-06 19:03:03 +00:00
Michael Natterer 66a66b3218 added "gboolean none_ok" members to GimpParamSpecImageID,
2006-05-06  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpparamspecs.[ch]: added "gboolean none_ok" members
	to GimpParamSpecImageID, GimpParamSpecItemID and
	GimpParamSpecDisplayID.  If none_ok is set, allow '0' and '-1' as
	valid IDs. Added "none_ok" parameter to all ID param spec
	constructors.

	* app/pdb/gimp-pdb-compat.c: set none_ok to TRUE in all compat
	param specs, so only IDs that are really random garbage don't pass
	validation. Fixes validation errors with 0 and -1 IDs.

	* tools/pdbgen/app.pl: set none_ok to FALSE by default. Added
	support for $arg->{none_ok} to control it.

	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/progress.pdb
	* tools/pdbgen/pdb/text_tool.pdb: use none_ok instead of
	no_success (which disables validation entirely).

	* app/pdb/[many]_cmds.c: regenerated.
2006-05-06 18:57:51 +00:00
Manish Singh 70eeb8ce7c Revert back to unsigned chars for the buffer, and only cast to gchar if we
2006-05-05  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/gifload.c (DoExtension): Revert back to unsigned
        chars for the buffer, and only cast to gchar if we know we're dealing
        with a comment. Fixes bug #339865.
2006-05-06 05:32:39 +00:00
Žygimantas Beručka 2499c09161 Updated Lithuanian translation.
2006-05-05  Žygimantas Beručka  <zygis@gnome.org>

        * lt.po: Updated Lithuanian translation.
2006-05-05 18:25:19 +00:00
Michael Natterer 5a586ba672 changed parameter "gint display_ID" to "GimpObject *display".
2006-05-05  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/gimppluginmanager-call.[ch]
	(gimp_plug_in_manager_call_run): changed parameter "gint display_ID"
	to "GimpObject *display".

	* app/pdb/gimpprocedure.[ch]
	* app/pdb/gimppluginprocedure.c
	* app/pdb/gimptemporaryprocedure.c: changed
	GimpProcedure::execute_async() the same way.

	* app/plug-in/gimppluginmanager.c
	* app/actions/plug-in-commands.c
	* app/actions/vectors-commands.c
	* app/widgets/gimphelp.c: changed accordingly.
2006-05-05 08:29:33 +00:00
Michael Natterer 808b65cd31 added signals "plug-in-opened" and "plug-in-closed". Added functions
2006-05-05  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/gimppluginmanager.[ch]: added signals
	"plug-in-opened" and "plug-in-closed". Added functions
	gimp_plug_in_manager_add_open_plug_in() and _remove_open_plugin()
	which maintain the list of open plug-ins and emit the signals.

	* app/plug-in/gimpplugin.c (gimp_plug_in_open)
	(gimp_plug_in_close): don't touch manager->open_plug_ins and don't
	ref/unref the plug-in. Call above new functions instead. Don't
	call gimp_pdb_dialogs_check().

	* app/core/gimp-gui.[ch]
	* app/gui/gui-vtable.c: removed gimp_pdb_dialogs_check().

	* app/widgets/gimppdbdialog.[ch]: removed
	gimp_pdb_dialogs_check_callback() and connect to the
	plug-in-manager's "plug-in-closed" signal instead.
2006-05-04 22:51:21 +00:00
Michael Natterer d033ddda1b cleaned up a bit.
2006-05-04  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/gimppluginshm.c: cleaned up a bit.

	(gimp_plug_in_shm_new): return NULL if anything goes wrong,
	instead of a GimpPlugInShm structure that contains no shm (we
	don't need multiple cases of "there is no shm"),

	* app/plug-in/gimppluginmanager.[ch]
	(gimp_plug_in_manager_get_shm_ID)
	(gimp_plug_in_manager_get_shm_addr): removed these functions.

	* app/plug-in/gimppluginmanager-call.c (gimp_plug_in_manager_call_run)
	* app/plug-in/gimpplugin-message.c (gimp_plug_in_handle_tile_req):
	get the shm ID and addr directly from manager->shm if it exists,
	use -1 and NULL otherwise.

	Unrelated:

	* app/plug-in/gimppluginmanager.c: move most stuff from
	gimp_plug_in_manager_exit() to gimp_plug_in_manager_finalize().
	Simplify plug-in killing in _exit().
2006-05-04 21:49:04 +00:00
Sven Neumann c1576daf2f added a "verbose" parameter.
2006-05-04  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-user-install.[ch]: added a "verbose" parameter.
2006-05-04 13:38:40 +00:00
Sven Neumann 25aaf8d94e added a "verbose" parameter.
2006-05-04  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-user-install.[ch]: added a "verbose" parameter.

	* app/app_procs.c (app_run): abort if the user installation fails.
2006-05-04 13:37:41 +00:00
Michael Natterer 2329ed9615 remove member "name" and unused cruft "ref_count". Reordered other members
2006-05-04  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/gimpplugin.[ch] (struct GimpPlugIn): remove member
	"name" and unused cruft "ref_count". Reordered other members a bit.

	(gimp_plug_in_new): set GimpObject's name to
	g_filename_display_basename(path) instead.

	Use GimpObject's name instead of plug_in->name for error messages
	and pass the full path to gimp_plug_in_debug_argv()

	* app/plug-in/gimpplugindebug.c (gimp_plug_in_debug_argv): extract
	the path's basename ourselves.

	* app/plug-in/gimpplugin-message.c: GimpObject's name for
	error messages.
2006-05-04 11:58:10 +00:00
Michael Natterer 40012d8853 restore the strict checks on string arrays.
2006-05-04  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpparamspecs.c (gimp_string_array_new)
	(gimp_param_string_array_validate): restore the strict checks
	on string arrays.

	* app/plug-in/gimppluginmanager-help-domain.c
	(gimp_plug_in_manager_get_help_domains): return NULL string arrays
	when there are 0 help domains to fix the inconsistency at its root.
2006-05-04 10:03:53 +00:00
Michael Natterer 1fcd4c36a9 app/plug-in/gimpplugin.c use the right procedure types in calls to
2006-05-04  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/gimpplugin.c
	* app/plug-in/gimppluginmanager-call.c: use the right procedure
	types in calls to gimp_plug_in_proc_frame_foo().
2006-05-04 08:23:20 +00:00
Marco Ciampa 13d9f517ce Updated italian translation 2006-05-04 08:05:25 +00:00
Sven Neumann 25be59309a news update 2006-05-04 06:30:38 +00:00
Michael Natterer b739fd5a32 port to using gimp_selection_data_get_object(), it was simply forgotten.
2006-05-03  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpselectiondata.c
	(gimp_selection_data_get_tool_info): port to using
	gimp_selection_data_get_object(), it was simply forgotten.
	Fixes tool dropping (bug #336402).
2006-05-03 19:03:44 +00:00
Michael Natterer 5b4443cd03 updated.
2006-05-03  Michael Natterer  <mitch@gimp.org>

	* POTFILES.in: updated.
2006-05-03 18:09:30 +00:00
Michael Natterer 4b917ea28b Made an object out of the plug-in struct. Also change refcounting
2006-05-03  Michael Natterer  <mitch@gimp.org>

	Made an object out of the plug-in struct. Also change refcounting
	considerably:

	- gimp_plug_in_open() adds a reference that is only dropped by
	  gimp_plug_in_close().
	- temporarily ref the plug-in while handling messages.
	- remporarily ref the plug-in while a recursive main loop is
	  running.
	- each caller of gimp_plug_in_new() also unrefs the plug-in before
	  returning, the only reference that persists across functions
	  (that keeps the plug-in alive) is the one added by open().

	* app/plug-in/plug-in.[ch]
	* app/plug-in/plug-in-context.[ch]
	* app/plug-in/plug-in-message.[ch]
	* app/plug-in/plug-in-progress.[ch]: removed these files...

	* app/plug-in/gimpplugin.[ch]
	* app/plug-in/gimpplugin-context.[ch]
	* app/plug-in/gimpplugin-message.[ch]
	* app/plug-in/gimpplugin-progress.[ch]: ...and added here as GObject.

	* app/plug-in/plug-in-proc-frame.[ch]: removed...

	* app/plug-in/gimppluginprocframe.[ch]: ...and added with a namespace.

	* app/plug-in/Makefile.am
	* app/plug-in/plug-in-types.h
	* app/plug-in/gimppluginmanager-call.c
	* app/plug-in/gimppluginmanager-file.c
	* app/plug-in/gimppluginmanager.[ch]
	* app/pdb/gimppluginprocedure.c
	* app/pdb/gimptemporaryprocedure.c
	* app/pdb/gimptemporaryprocedure.h
	* tools/pdbgen/pdb/context.pdb
	* tools/pdbgen/pdb/drawable.pdb
	* tools/pdbgen/pdb/help.pdb
	* tools/pdbgen/pdb/message.pdb
	* tools/pdbgen/pdb/plug_in.pdb
	* tools/pdbgen/pdb/progress.pdb
	* tools/pdbgen/pdb/undo.pdb: changed accordingly.

	* app/pdb/context_cmds.c
	* app/pdb/drawable_cmds.c
	* app/pdb/help_cmds.c
	* app/pdb/message_cmds.c
	* app/pdb/plug_in_cmds.c
	* app/pdb/progress_cmds.c
	* app/pdb/undo_cmds.c: regenerated.
2006-05-03 18:05:06 +00:00
Sven Neumann ce320fdf6b removed some unused code, untabified.
2006-05-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gifload.c: removed some unused code, untabified.
2006-05-03 15:26:48 +00:00
Marco Ciampa 55beca3e3a Updated italian translation 2006-05-03 14:18:15 +00:00
Sven Neumann adf39aec4c relaxed the checks so that GimpStringArray deals correctly with (length ==
2006-05-03  Sven Neumann  <sven@gimp.org>

	* app/core/gimpparamspecs.c (gimp_string_array_new,
	gimp_param_string_array_validate): relaxed the checks so that
	GimpStringArray deals correctly with (length == 0 && data != NULL).
	Fixes bug #340365.
2006-05-03 14:15:01 +00:00
Funda Wang 868acf7abe Updated gimp translations. 2006-05-03 08:00:21 +00:00
Sven Neumann d091dbb072 allow Merge operations on single layers as suggested in bug #340491.
2006-05-03  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-merge.c: allow Merge operations on single
	layers as suggested in bug #340491.
2006-05-03 07:43:04 +00:00
Michael Natterer 927cde4121 added enum GimpPlugInCallMode which can be one of { NONE, QUERY, INIT, RUN
2006-05-02  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in-enums.[ch]: added enum GimpPlugInCallMode
	which can be one of { NONE, QUERY, INIT, RUN }.

	* app/plug-in/Makefile.am
	* app/plug-in/gimppluginmanager-run.[ch]: removed again...

	* app/plug-in/gimppluginmanager-call.[ch]: ...and added
	here. Added gimp_plug_in_manager_call_init() and
	gimp_plug_in_manager_call_query().

	* app/plug-in/plug-in.[ch]: removed plug_in_call_query() and
	plug_in_call_init().

	(struct PlugIn): removed members "init", "query" and "synchronous".

	(plug_in_open): added parameters "call_mode" and "synchronous".

	* app/plug-in/gimppluginmanager.c
	* app/plug-in/plug-in-message.c
	* app/pdb/gimppluginprocedure.c
	* app/pdb/gimptemporaryprocedure.c
	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly.

	* app/pdb/plug_in_cmds.c: regenerated.
2006-05-02 18:27:31 +00:00
Marco Ciampa 4978ea8b2d Some small it fixes 2006-05-02 14:59:01 +00:00
Sven Neumann 3e10b98d55 code cleanup, rephrased radio button labels.
2006-05-02  Sven Neumann  <sven@gimp.org>

	* app/dialogs/user-install-dialog.c: code cleanup, rephrased radio
	button labels.
2006-05-02 14:12:30 +00:00
Sven Neumann 6ffba9a45b better mnemonics 2006-05-02 11:42:56 +00:00
Sven Neumann 62fe9887b7 code cleanup.
2006-05-02  Sven Neumann  <sven@gimp.org>

	* app/dialogs/user-install-dialog.c: code cleanup.
2006-05-02 10:33:22 +00:00
Sven Neumann dfe7e8bb17 turned a #warning into an explanation because the bug it referred to is
2006-05-02  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainercombobox.c
	(gimp_container_combo_box_remove_item): turned a #warning into an
	explanation because the bug it referred to is marked as WONTFIX.
2006-05-02 09:02:18 +00:00
Sven Neumann f5848c6c42 added const qualifier.
2006-05-02  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpproceduraldb.[ch] (gimp_procedural_db_set_data):
	added const qualifier.
2006-05-02 08:50:24 +00:00
Sven Neumann 123b9283d7 fileicon.ico new icons for the Windows build created by Jernej
2006-05-02  Sven Neumann  <sven@gimp.org>

	* fileicon.ico
	* wilber.ico: new icons for the Windows build created by Jernej
	Simon%Gč%@i%Gč%@ based on the icons drawn by Jimmac (bug #340223).
2006-05-02 06:37:08 +00:00
Marco Ciampa e279c50ecf Updated italian traslation 2006-04-30 22:46:57 +00:00
Michael Natterer 38406b7202 removed plug_in_push() and plug_in_pop()...
2006-04-29  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in.[ch]: removed plug_in_push() and
	plug_in_pop()...

	* app/plug-in/gimppluginmanager.[ch]: ...and added them here as
	gimp_plug_in_manager_plug_in_push() and _pop()

	* app/plug-in/plug-in-message.c (plug_in_handle_proc_run): changed
	accordingly.

	* app/plug-in/plug-in.c (plug_in_close): removed an unused
	variable, moved another one to a local scope.

	* app/plug-in/plug-in.h: indentation.
2006-04-29 19:03:44 +00:00
Michael Natterer 74a27a001a NULL-terminate string arrays here too, so they can be freed with
2006-04-29  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/gimppluginmanager-locale-domain.c
	(gimp_plug_in_manager_get_locale_domains): NULL-terminate string
	arrays here too, so they can be freed with g_strfreev() (even
	though they currently aren't).

	* app/widgets/gimphelp.c: set the plug-in arguments
	correctly. Fixes warnings and makes help work again.
2006-04-29 17:55:42 +00:00
Sven Neumann a75fc42af0 fixed signal connection.
2006-04-29  Sven Neumann  <sven@gimp.org>

	* app/dialogs/user-install-dialog.c: fixed signal connection.

	* app/core/gimp-user-install.c: indentation.
2006-04-29 01:05:32 +00:00
Sven Neumann 7debd74dc6 define GIMP_APP_VERSION.
2006-04-29  Sven Neumann  <sven@gimp.org>

	* app/core/Makefile.am (AM_CPP_FLAGS): define GIMP_APP_VERSION.

	* app/core/gimp-user-install.c: use GIMP_APP_VERSION instead of
	hardcoding it.
2006-04-29 00:47:53 +00:00
Sven Neumann 0d50b523bc updated.
2006-04-29  Sven Neumann  <sven@gimp.org>

	* POTFILES.in: updated.
2006-04-29 00:28:34 +00:00
Sven Neumann 01251c6d88 app/core/Makefile.am new files based on code that used to live in
2006-04-29  Sven Neumann  <sven@gimp.org>

	* app/core/Makefile.am
	* app/core/gimp-user-install.[ch]: new files based on code that
	used to live in user-install-dialog.c.

	* app/dialogs/user-install-dialog.[ch]: only the dialog code
	remained here.

	* app/app_procs.c: use the new user-install API.  Perform a
	non-interactive user installation when running without a display.
2006-04-29 00:24:48 +00:00
Tor Lillqvist 229ef6e48a typo. 2006-04-28 23:48:54 +00:00