Commit graph

11348 commits

Author SHA1 Message Date
Michael Natterer 195880cbdc Disallow editing of data objects which have no save functionality. Also
2004-02-05  Michael Natterer  <mitch@gimp.org>

	Disallow editing of data objects which have no save functionality.
	Also fixed the misassumption that "deletable" is always equal to
	"writable". Fixes bug #133456.

	* app/core/gimpdata.[ch]: added a "deletable" property which is
	always equal to "writable" except when the data class does not
	implement GimpData::save() (then deletable may be TRUE but
	writable is always FALSE).

	* app/gui/brushes-menu.c
	* app/gui/gradients-menu.c
	* app/gui/palettes-menu.c
	* app/gui/patterns-menu.c
	* app/widgets/gimpdatafactoryview.c: look at data->deletable when
	setting the sensitivity of the "Delete" buttons and menu items.

	* app/widgets/gimpdatafactoryview.c
	(gimp_data_factory_view_tree_name_edited): rename the data
	only if it's writable and restore the old name otherwise.

	* app/widgets/gimpdataeditor.c: no need to look at data->internal
	for figuring if the data is editable, data->editable is enough.

	All files above: s/writeable/writable/g

	* app/widgets/gimpbrusheditor.c (gimp_brush_editor_set_data):
	simplified.
2004-02-05 22:17:14 +00:00
Michael Natterer 4ff88df45f don't call gimp_edit_paste() with a NULL buffer. Instead, return an
2004-02-05  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/edit.pdb (edit_paste): don't call
	gimp_edit_paste() with a NULL buffer. Instead, return an execution
	error if there is no global buffer to paste. Fixes the warning
	triggered by bug #133244 (but not the bug itself of course).

	* app/pdb/edit_cmds.c: regenerated.
2004-02-05 19:34:18 +00:00
Sven Neumann 42a11f42f8 quit the main loop when the dialog is destroyed. Fixes bug #133532.
2004-02-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_main.c (dialog): quit the main loop when
	the dialog is destroyed. Fixes bug #133532.
2004-02-05 18:26:29 +00:00
David Odin da6b161eff Fixes the layout of the rendered text. Fixes bug #131634
* plug-ins/script-fu/scripts/text-circle.scm: Fixes the layout of the
	rendered text.
	Fixes bug #131634
2004-02-05 16:13:40 +00:00
Jordi Mallach 6646c71b45 Updated Catalan translation by Xavier Conde Rueda <xaviconde@eresmas.com>.
2003-02-05  Jordi Mallach  <jordi@sindominio.net>

	* ca.po: Updated Catalan translation by
	Xavier Conde Rueda <xaviconde@eresmas.com>.
2004-02-05 13:31:36 +00:00
Jordi Mallach 5840ff4b3f Updated Catalan translation by Xavier Conde Rueda <xaviconde@eresmas.com>.
2004-02-05  Jordi Mallach  <jordi@sindominio.net>

	* ca.po: Updated Catalan translation by
	Xavier Conde Rueda <xaviconde@eresmas.com>.
2004-02-05 13:28:36 +00:00
Michael Natterer be6b23d68a removed trailing whitespace.
2004-02-05  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-crop.c: removed trailing whitespace.

	* app/gui/debug-commands.[ch]
	* app/gui/toolbox-menu.c: renamed ENABLE_DEBUG_ENTRIES to
	ENABLE_DEBUG_MENU and #define it to be equal to GIMP_UNSTABLE.
2004-02-05 12:52:35 +00:00
Michael Natterer b48b110e3e don't try to CLAMP() the passed in rectangle to valid image/drawable
2004-02-05  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimprectselecttool.c
	(gimp_rect_select_tool_rect_select): don't try to CLAMP() the
	passed in rectangle to valid image/drawable coordinates manually
	when auto-shrinking the selection. Instead, use
	gimp_rectangle_intersect(). Also honor the active drawable's
	offsets. Fixes bug #133467.
2004-02-05 11:11:22 +00:00
Manish Singh 11410ff7f0 Translate None to NULL when passing strings.
2004-02-05  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-pdb.c (pygimp_param_from_tuple): Translate
        None to NULL when passing strings.
2004-02-05 09:17:19 +00:00
Jan Morén 59dae136f1 Updated Swedish translation.
2004-02-05  Jan Morén  <jan.moren@lucs.lu.se>

         * sv.po: Updated Swedish translation.
2004-02-05 02:47:00 +00:00
Manish Singh 56bfd10edf Resurrected several autoconf substitutions relating to versions, so the
2004-02-04  Manish Singh  <yosh@gimp.org>

        * configure.in: Resurrected several autoconf substitutions relating
        to versions, so the .spec file can use them.
2004-02-05 01:45:39 +00:00
Raphaël Quinet 9e4cc676df Added a conditional definition of the preprocessor symbol GIMP_UNSTABLE if
2004-02-05  Raphaël Quinet  <quinet@gamers.org>

	* configure.in: Added a conditional definition of the preprocessor
	symbol GIMP_UNSTABLE if the autoconf symbol GIMP_UNSTABLE is
	defined.

	* app/errors.c (gimp_errors_init): Replaced the #if test on
	GIMP_MINOR_VERSION modulo 2 by #ifdef GIMP_UNSTABLE.

	* app/composite/gimp-composite.c (gimp_composite_init): Print the
	init messages only in unstable versions.  Split the messages in
	two lines and mention "supported by gimp_composite" in order to
	give a hint that the availability of some features depends also on
	what code has been written.  Fixes bug #128825.
2004-02-05 00:34:50 +00:00
Miloslav Trmac d9d0d785cf Update Czech translation 2004-02-04 17:56:58 +00:00
Sven Neumann b49e39e8ed app/core/gimpchannel.c app/tools/gimptexttool.c app/vectors/gimpvectors.c
2004-02-04  Sven Neumann  <sven@gimp.org>

	* app/core/gimpchannel.c
	* app/tools/gimptexttool.c
	* app/vectors/gimpvectors.c
	* app/widgets/gimpbufferview.c: removed double semicolons.
2004-02-04 16:52:35 +00:00
Pablo G. del Campo 9262bf9620 Updated Spanish translation.
2004-02-04  Pablo G. del Campo  <pablodc@bigfoot.com>

	* es.po: Updated Spanish translation.
2004-02-04 15:51:43 +00:00
Sven Neumann f2e8ca2fdb create an unversioned gimprc manpage.
2004-02-04  Sven Neumann  <sven@gimp.org>

	* app/Makefile.am (dist-hook): create an unversioned gimprc manpage.
2004-02-04 03:00:31 +00:00
Sven Neumann 88ecc1eb00 Made 2.0pre3 release.
2004-02-04  Sven Neumann  <sven@gimp.org>

        * Made 2.0pre3 release.
2004-02-04 02:56:36 +00:00
Sven Neumann d282069c38 missed a bug-fix 2004-02-04 02:11:14 +00:00
Sven Neumann c9838a4b21 removed redundant entries that became invalid when the change to
2004-02-04  Sven Neumann  <sven@gimp.org>

	* docs/Makefile.am (EXTRA_DIST): removed redundant entries that
	became invalid when the change to unversioned files was made.
2004-02-04 02:07:22 +00:00
Michael Natterer d88c150c4b use gdouble instead of gfloat for x and y scale factors so gfloat's
2004-02-04  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-render.c (struct RenderInfo)
	(render_image_accelerate_scaling): use gdouble instead of gfloat
	for x and y scale factors so gfloat's limited precision can't add
	up to off-by-one pixel errors. Fixes display artefacts (missing
	updates) at the bottom and right sides of updated areas at certain
	irrational zoom factors like 1:3.
2004-02-04 02:00:04 +00:00
Sven Neumann b8c41b9eaa updated NEWS 2004-02-04 01:45:42 +00:00
Sven Neumann 99c9381011 added percentages to the View->Zoom menu entries as suggested in bug
2004-02-04  Sven Neumann  <sven@gimp.org>

	* app/gui/image-menu.c (image_menu_entries): added percentages to
	the View->Zoom menu entries as suggested in bug #131563.
2004-02-04 01:21:00 +00:00
Sven Neumann a430463819 added the new function gimp_rc_set_unknown_token() to get autosave working
2004-02-04  Sven Neumann  <sven@gimp.org>

	* app/config/gimprc.[ch]: added the new function
	gimp_rc_set_unknown_token() to get autosave working for unknown
	gimprc tokens.

	* app/config/gimpconfig.c: indentation.

	* tools/pdbgen/pdb/gimprc.pdb: gimp->edit_config was used for a
	good reason, it's the one that's saved. Reverted a change I did
	about a month ago. Use gimp_rc_set_unknown_token() so unknown
	tokens get saved. This really fixes gimp_gimprc_set().

	* app/pdb/gimprc_cmds.c: regenerated.
2004-02-04 00:07:26 +00:00
Alastair McKinstry d885d717d5 Updated Irish translation 2004-02-03 20:52:00 +00:00
Manish Singh 5eee86af56 Allow generated files with versions.
2004-02-03  Manish Singh  <yosh@gimp.org>

        * configure.in: Allow generated files with versions.

        * gimp-2.0.pc.in
        * gimpthumb-2.0.pc.in
        * gimpui-2.0.pc.in
        * docs/gimp-1.3.1.in
        * docs/gimp-remote-1.3.1.in
        * docs/gimprc-1.3.5.in
        * docs/gimptool-2.0.1.in: renamed to unversioned files.

        I left gimptool-2.0.in alone since I didn't want to screw with
        other branches history. It'll be obsolete post-2.0 anyway.
2004-02-03 19:34:02 +00:00
Manish Singh b720fb2a9b remove unused variable randomize.
2004-02-03  Manish Singh  <yosh@gimp.org>

        * plug-ins/maze/maze_face.c (maze_dialog): remove unused variable
        randomize.
2004-02-03 19:23:43 +00:00
Manish Singh c783a2918b use GIMP_API_VERSION.
2004-02-03  Manish Singh  <yosh@gimp.org>

        * gimptool-2.0.in: use GIMP_API_VERSION.
2004-02-03 18:33:58 +00:00
Miloslav Trmac 067c1e29a4 Update Czech translation 2004-02-03 17:04:11 +00:00
Sven Neumann 0deb5ccf3f improved dialog layout.
2004-02-03  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_dialog): improved dialog layout.
2004-02-03 15:51:25 +00:00
Sven Neumann 7d4ed423c9 don't mark weird format strings as translatable.
2004-02-03  Sven Neumann  <sven@gimp.org>

	* app/gui/image-menu.c (image_menu_set_zoom): don't mark weird
	format strings as translatable.

	* data/misc/gimp.desktop.in.in (_Name): use "The GIMP" without an
	"(unstable)" suffix. Should give translators the chance to update
	their translations before the final 2.0 release.

	* configure.in: removed now unused GIMP_VISIBLE_NAME variable.
2004-02-03 15:32:20 +00:00
Michael Natterer 9af8d8c55e use g_clear_error() instead of g_error_free() and re-use the same GError
2004-02-03  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-ins.c (plug_ins_init): use g_clear_error()
	instead of g_error_free() and re-use the same GError location for
	pluginrc parsing and writing.

	(plug_ins_proc_def_insert): when overriding a PlugInProcDef, don't
	take over the menu_path and menu_accel of the overridden proc
	because (a) it's just plain wrong and (b) we don't need to
	preserve the proc_defs' order any more (see below).
2004-02-03 15:12:11 +00:00
Michael Natterer b147234460 added new function plug_in_proc_def_compare_menu_path() which is a
2004-02-03  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in-proc.[ch]: added new function
	plug_in_proc_def_compare_menu_path() which is a GCompareDataFunc.
	(uses g_utf8_collate() on the translated menu paths).

	* app/plug-in/plug-ins.c (plug_ins_init): sort gimp->load_procs
	and gimp->save_procs using the new compare function above.
	Fixes bug #133180.

	(plug_ins_locale_domain)
	(plug_ins_help_domain): don't g_return_if_fail() on a NULL
	prog_name but return the default locale and help domains
	of the GIMP itself.

	(plug_ins_proc_def_insert): removed obsolete and broken (not
	locale and UTF-8 aware) code which tried to insert new plug-in
	menu entries in alphabetical order (was unused except for load
	and save procs).

	Unrelated:

	* app/plug-in/plug-in-proc.[ch]: added const qualifiers.

	* app/file/file-open.c
	* app/file/file-save.c
	* tools/pdbgen/pdb/fileops.pdb: changed accordingly (constify
	local variables).

	* app/pdb/fileops_cmds.c: regenerated.
2004-02-03 13:02:18 +00:00
Michael Natterer 0e993d1702 applied patch from Kevin Cozens <kcozens@interlog.com> which removes the
2004-02-03  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/*.scm: applied patch from Kevin
	Cozens <kcozens@interlog.com> which removes the use of deprecated
	constants in all scripts. Fixes bug #133270.
2004-02-03 11:46:27 +00:00
Michael Natterer f77ff9d400 call gimp_uninstall_temp_proc() with script->pdb_name, not
2004-02-03  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_free_script):
	call gimp_uninstall_temp_proc() with script->pdb_name, not
	script->script_name. Fixes bug #133280.
2004-02-03 11:37:03 +00:00
Miloslav Trmac f70a30818d Update Czech translation 2004-02-02 19:03:23 +00:00
David Odin 99f0b5a4d4 gimp_canvas_draw_segments(): Do not call gdk_draw_segments() with more
* app/display/gimpcanvas.c: gimp_canvas_draw_segments():
	  Do not call gdk_draw_segments() with more than 32000 segments at a
	  time, because XDrawSegments should never be called with more
	  segments than that. This should really be fixed at the gdk level,
	  though.

	This fixes bug #122026.
2004-02-02 18:38:24 +00:00
Sven Neumann 04f09639b2 use the UTF-encoded URI in error messages, not the filename.
2004-02-02  Sven Neumann  <sven@gimp.org>

	* libgimpthumb/gimpthumbnail.c (gimp_thumbnail_save_thumb): use
	the UTF-encoded URI in error messages, not the filename.

	* app/Makefile.am: use $(EXEEXT) for dist-hook binary dependency.

	* tools/gimp-remote.c: include <unistd.h> conditionally.
2004-02-02 12:40:18 +00:00
Michael Natterer 528bb75cf0 also destroy the <Image> factory's "Tools" submenu because menu shortcuts
2004-02-02  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpimagedock.c (gimp_image_dock_constructor):
	also destroy the <Image> factory's "Tools" submenu because menu
	shortcuts with no or <shift> modifier prevent this key to be
	entered in text entries. This really badly baldy cries for
	GTK+ 2.4's GtkActions...
2004-02-02 12:27:18 +00:00
David Neary 437324eebf Yet another quick NEWS update.
Yet another quick NEWS update.
2004-02-02 11:00:27 +00:00
Alastair McKinstry d6e087ddf0 Updated Irish translation 2004-02-02 09:38:44 +00:00
Jan Morén 2eb6005420 Updated Swedish translation.
2004-02-02  Jan Morén  <jan.moren@lucs.lu.se>

         * sv.po: Updated Swedish translation.
2004-02-02 04:44:47 +00:00
Michael Natterer 28f95f9caa when calculating the length of the expanded path, add the length of the
2004-02-01  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig-path.c (gimp_config_path_expand_only):
	when calculating the length of the expanded path, add the length
	of the UTF-8 converted substitution, not its length in filesystem
	encoding. Finally enables GIMP2_DIRECTORY containing non-ascii
	chars (at least on linux). Should fix bug #130118.
2004-02-01 22:55:30 +00:00
Michael Natterer 82276adaa4 Disallow to rename the layer mask. Instead, always name the mask "<layer
2004-02-01  Michael Natterer  <mitch@gimp.org>

	Disallow to rename the layer mask. Instead, always name the mask
	"<layer name> mask". Fixes bug #133112 along with some other
	unreported ones.

	* app/core/gimpitem.[ch]: added a boolean return value indicating
	success to GimpItem::rename().

	(gimp_item_real_rename): push an undo step only if the item is
	attached.

	* app/core/gimplayer.c (gimp_layer_rename): refuse renaming if
	the layer is a floating selection floated from a channel
	(renaming a layer's floating selection makes a new layer out
	of the floating selection).

	(gimp_layer_duplicate): use gimp_layer_add_mask() to attach the
	mask's duplicate. Fixes mask refcount brokenness for duplicated
	layer masks.

	(gimp_layer_name_changed): new function. Automatically renames the
	layer mask when the layer's name changes.

	* app/core/gimplayermask.c (gimp_layer_mask_rename): new function
	which refuses renaming.

	(gimp_layer_mask_name_changed): skip the unique name voodoo
	GimpItem does by not chaining up.

	(gimp_layer_mask_set_layer): change the mask's name whenever it is
	attached to a layer.

	* app/text/gimptextlayer.c (gimp_text_layer_rename): fiddle with
	text_layer->auto_rename only if renaming was successful.

	* app/widgets/gimpitemtreeview.c (gimp_item_tree_view_name_edited):
	restore the old name if renaming failed.

	* tools/pdbgen/pdb/drawable.pdb (set_name): return an execution
	error if renaming failed.

	* app/pdb/drawable_cmds.c: regenerated.
2004-02-01 20:38:26 +00:00
Michael Natterer dc2e81ca52 no need to set the layer mask's offsets, gimp_layer_add_mask() does this
2004-02-01  Michael Natterer  <mitch@gimp.org>

	* app/xcf/xcf-load.c (xcf_load_layer): no need to set the layer
	mask's offsets, gimp_layer_add_mask() does this for us. Simplified
	mask property assignments.
2004-02-01 19:01:28 +00:00
Michael Natterer 61ac7167d6 Reworked random seed handling once more:
2004-02-01  Michael Natterer  <mitch@gimp.org>

	Reworked random seed handling once more:

	* libgimpwidgets/gimpwidgets.c (gimp_random_seed_new): make sure
	the displayed random seed value is always the one which will be
	used, whether "Randomize" is checked or not.

	* plug-ins/common/blur.c
	* plug-ins/common/plasma.c
	* plug-ins/common/randomize.c
	* plug-ins/common/sinus.c
	* plug-ins/common/snoise.c
	* plug-ins/maze/algorithms.c
	* plug-ins/maze/maze.c: if running interactively, always take
	the seed value produced by the gimp_random_seed widget and don't
	touch it because the widgets honors the "randomize" toggle
	correctly now.

	For noninteractive and last_vals runs, look at the "randomize"
	boolean and generate a seed if it is TRUE.

	Initialize the random number generators from the seed determined
	by either of the above ways and don't fiddle with it in the inner
	algorithms itself.

	* plug-ins/gflare/gflare.c (plugin_run): initialize the GRand
	from the seed unconditionally.

	(ed_make_page_sflare): no need to get the entry from the random
	seed widget to get its adjustment. Instead get the adjustment
	directly.

	(The random handling code of gflare looks somewhat broken, but
	that applies to the whole plug-in).
2004-02-01 13:22:09 +00:00
David Neary d7d5a4513a Updated NEWS.
Updated NEWS.
2004-02-01 11:40:36 +00:00
Michael Natterer 7ca4682cca when removing a duplicate PDB procedure, also remove it from
2004-02-01  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-ins.c (plug_ins_init): when removing a
	duplicate PDB procedure, also remove it from gimp->load_procs and
	gimp->save_procs.  Fixes bug #133099.

	Some general cleanup like moving variables to local scopes.
2004-02-01 10:52:23 +00:00
Manish Singh 5f87334f0c use G_VA_COPY for copying va_lists.
2004-01-31  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/tiff.c (tiff_warning): use G_VA_COPY for copying
        va_lists.
2004-02-01 00:45:49 +00:00
Simon Budig 1ab2c64a12 initialize variable to avoid stupid compiler warning.
2004-02-01  Simon Budig  <simon@gimp.org>

	* app/display/gimpdisplayshell-scale.c: initialize variable
	to avoid stupid compiler warning.
2004-02-01 00:36:53 +00:00
Dave Neary 95ed7031f4 libgimpwidgets/gimpwidgets.c Modify random seed widget to allow the user
2004-02-01  Dave Neary  <bolsh@gimp.org>

        * libgimpwidgets/gimpwidgets.c
        * libgimpwidgets/gimpwidgets.h: Modify random seed widget to
        allow the user to specify that a seed should be chosen
        randomly for them (useful to allow re-running random plug-ins
        several times to get several different results).

        * plug-ins/common/blur.c
        * plug-ins/common/plasma.c
        * plug-ins/common/randomize.c
        * plug-ins/common/sinus.c
        * plug-ins/common/snoise.c
        * plug-ins/gflare/gflare.c
        * plug-ins/maze/algorithms.c
        * plug-ins/maze/maze.c
        * plug-ins/maze/maze.h
        * plug-ins/maze/maze_face.c: Changed appropriately.

        This fixes bug #129529.
2004-01-31 23:34:56 +00:00