Commit Graph

11287 Commits

Author SHA1 Message Date
Michael Natterer d928919200 Make sure each GimpItem emits "removed" when it is removed from the image
2004-02-17  Michael Natterer  <mitch@gimp.org>

	Make sure each GimpItem emits "removed" when it is removed from
	the image so dialogs have a chance to close themselves:

	* app/core/gimplayer.c (gimp_layer_apply_mask): emit "removed"
	from the mask.

	(gimp_layer_removed): new function which emits "removed" from
	the layer's mask when the layer gets removed from the image.

	* app/core/gimpimage.c (gimp_image_dispose): emit "removed"
	from all layers, channels and vectors.

	* app/gui/layers-commands.c (layers_scale_layer_query)
	(layers_resize_layer_query): removed recently added connections to
	"removed" because GimpViewableDialog does this automatically.
2004-02-17 11:45:46 +00:00
Michael Natterer 1434675850 new inernal function which removes all tiles from a given drawable from
2004-02-16  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimptile.[ch] (_gimp_tile_cache_flush_drawable): new
	inernal function which removes all tiles from a given drawable
	from the cache.

	* libgimp/gimpdrawable.c (gimp_drawable_detach): call the new
	function before freeing the tiles. Fixes bug #134562.
2004-02-16 21:57:01 +00:00
Michael Natterer de483e6b67 cleaned up a bit: added missing g_return_if_fail()s, iterate lists using
2004-02-16  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimppixelrgn.c: cleaned up a bit: added missing
	g_return_if_fail()s, iterate lists using for() loops, indentation.
2004-02-16 21:32:51 +00:00
Sven Neumann 5c6a6662bb partly rewritten. Instead of removing the list element from the hash
2004-02-16  Sven Neumann  <sven@gimp.org>

	* libgimp/gimptile.c (gimp_tile_cache_insert): partly rewritten.
	Instead of removing the list element from the hash table, freeing
	it, allocating a new one and inserting it again, simply move it to
	the end of the list without touching the hash table at all.
2004-02-16 18:00:25 +00:00
Sven Neumann 049d7f8b0e set the GIOChannel encoding to NULL here instead of doing it in
2004-02-16  Sven Neumann  <sven@gimp.org>

	* app/config/gimpxmlparser.c (gimp_xml_parser_parse_io_channel):
	set the GIOChannel encoding to NULL here instead of doing it in
	gimp_xml_parser_parse_file().
2004-02-16 14:56:10 +00:00
Sven Neumann 948558c4ac added ms.po (Malay).
2004-02-16  Sven Neumann  <sven@gimp.org>

	* Makefile.am (tips_POFILES): added ms.po (Malay).
2004-02-16 12:50:42 +00:00
Sven Neumann 09af96c12d set the Undo button insensitive, not the whole dialog (bug #134419). Also
2004-02-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig.c (gfig_response): set the Undo button
	insensitive, not the whole dialog (bug #134419). Also start the
	dialog with the Undo button set insensitive.
2004-02-16 12:44:21 +00:00
Sven Neumann 9f654edabf use limits from libgimpbase instead of arbitrary numbers. Don't allow a
2004-02-16  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpcroptool.c (crop_info_create): use limits from
	libgimpbase instead of arbitrary numbers. Don't allow a crop width
	or height smaller than 1 (or GIMP_MIN_IMAGE_SIZE actually).
2004-02-16 12:21:27 +00:00
Sven Neumann 1c8b260864 fixed my last change here; of course only the guide GCs need a stipple
2004-02-16  Sven Neumann  <sven@gimp.org>

	* app/display/gimpcanvas.c (gimp_canvas_gc_new): fixed my last
	change here; of course only the guide GCs need a stipple pattern.
2004-02-16 12:03:52 +00:00
Sven Neumann bf9fe2e8d3 unset the GIOChannel's encoding before trying to find and parse the XML
2004-02-16  Sven Neumann  <sven@gimp.org>

	* app/config/gimpxmlparser.c (gimp_xml_parser_parse_io_channel):
	unset the GIOChannel's encoding before trying to find and parse
	the XML header.
2004-02-16 11:47:17 +00:00
Artur Flinta 2bb464ad48 Updated Polish translation by GNOME PL Team.
2004-02-16  Artur Flinta  <aflinta@cvs.gnome.org>

	* pl.po: Updated Polish translation by GNOME PL Team.
2004-02-16 08:53:33 +00:00
Marc Lehmann d9aa5e9971 *** empty log message *** 2004-02-16 07:16:41 +00:00
Christophe Merlet c6ab6270b8 Updated French translation. 2004-02-15 23:42:14 +00:00
Michael Natterer acbc6ead6a warn and return NULL instead of a meaningless struct for invalid
2004-02-15  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpdrawable.c (gimp_drawable_get): warn and return NULL
	instead of a meaningless struct for invalid drawable_IDs. Will
	make buggy plug-ins crash earlier and more reliably.

	Replaced all if(drawable) by g_return_if_fail(drawable != NULL)

	* libgimp/gimptile.c (gimp_tile_ref): replaced if(tile)
	by g_return_if_fail(tile != NULL)

	(gimp_tile_unref): g_return_if_fail(tile->ref_count > 0)
2004-02-15 22:18:17 +00:00
Sven Neumann 8ebce54f6b only call gimp_ui_init() when being run in interactively. Should fix bug
2004-02-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gif.c: only call gimp_ui_init() when being run
	in interactively. Should fix bug #134423.
2004-02-15 11:33:52 +00:00
Michael Natterer 0fa17c880c using FOO_GET_CLASS(instance) in a GInstanceInitFunc doesn't work because
2004-02-15  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdata.c (gimp_data_init): using
	FOO_GET_CLASS(instance) in a GInstanceInitFunc doesn't work
	because during instance init, the object's class is always set to
	be the class of the currently called init function. Use the second
	parameter of GInstanceInitFunc instead, which is the instance's
	real class. Fixes bug #134274.
2004-02-15 11:23:32 +00:00
Michael Natterer 9fb67ad788 updated.
2004-02-14  Michael Natterer  <mitch@gimp.org>

	* app/app-sections.txt: updated.
2004-02-14 16:35:59 +00:00
Michael Natterer 25b81b1570 Fixed lots of QuickMask brokenness by letting the image adjust its
2004-02-14  Michael Natterer  <mitch@gimp.org>

	Fixed lots of QuickMask brokenness by letting the image adjust
	its qmask_state automatically:

	* app/core/gimpimage-qmask.h: #define GIMP_IMAGE_QMASK_NAME "Qmask".
	Use the define in all files below.

	* app/core/gimpimage.[ch]: split gimp_image_drawable_add,_remove()
	into separate handlers for layers and channels. Added a
	"name_changed" handler for all channels. In the channel "add",
	"remove" and "name_changed" handlers, check if it was a channel
	named "Qmask" that was added, removed or renamed and call
	gimp_image_set_qmask_state() accordingly.

	* app/core/core-enums.[ch]
	* app/core/gimpimage-undo-push.[ch]
	* app/core/gimpundo.c: removed all Qmask undo code because the image
	does the right thing without undo interaction now.

	* app/core/gimpimage-qmask.c (gimp_image_set_qmask_state): set
	gimage->qmask_state early so we can return early when called
	recursively. Removed calls to gimp_image_undo_push_image_qmask().
	Returned "removed" callback (it was utterly broken the way it was
	implemented).

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_qmask_toggled): check if the image's
	qmask state needs to be changed before changing it.

	* app/xcf/xcf-load.c (xcf_load_channel): removed code which
	recognized the qmask. GimpImage does this automatically now.

	* app/gui/qmask-commands.c: cleanup.

	* app/widgets/gimpimagedock.c (gimp_image_dock_constructor):
	destroy the "/Select/By Color" and "/Select/Toggle QuickMask" menu
	items.

	* app/widgets/image-menu.c (image_menu_update): changed accordingly.
2004-02-14 15:37:23 +00:00
Manish Singh 8672dbf34c Initialize dest to NULL, make it so the temp variable use for
2004-02-13  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/psd.c (load_image): Initialize dest to NULL,
        make it so the temp variable use for PANOTOOLS_FIX is only declared
        when it is enabled.
2004-02-14 03:54:41 +00:00
Manish Singh 46aa40e25b app/base/temp-buf.c (temp_buf_get_memsize) Add some casts to gsize for
2004-02-13  Manish Singh  <yosh@gimp.org>

        * app/base/temp-buf.c (temp_buf_get_memsize)
        * core/gimpviewable.c (gimp_viewable_get_memsize): Add some casts
        to gsize for ints to prevent overflows.

        * app/base/tile-manager.c (tile_manager_get_memsize): Same as above,
        except cast to gint64.
2004-02-14 01:12:19 +00:00
Simon Budig ce5e592e23 make a similar fix as in my last commit for snapping the guides.
2004-02-13  Simon Budig  <simon@gimp.org>

	* app/core/gimpimage-guides.[ch]: make a similar fix as in my
	last commit for snapping the guides.

	* app/tools/gimpmovetool.c: use the fixed version.
2004-02-13 14:04:41 +00:00
Simon Budig ae81af14f4 make the snapping width a parameter of the snapping functions.
2004-02-13  Simon Budig  <simon@gimp.org>

	* app/core/gimpimage-snap.[ch]: make the snapping width a
	parameter of the snapping functions.

	* app/display/gimpdisplayshell.c: make sure that the snapping
	width always is 5 pixels in the view coordinates.

	Fixes bug #134285
2004-02-13 13:31:16 +00:00
Michael Natterer 04811da586 removed redundant g_return_if_fail()s.
2004-02-13  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-units.c (gimp_units_init, _exit): removed
	redundant g_return_if_fail()s.
2004-02-13 11:58:36 +00:00
Michael Natterer d991e64b38 Fixed GimpData's default "writable" and "deletable" behaviour:
2004-02-13  Michael Natterer  <mitch@gimp.org>

	Fixed GimpData's default "writable" and "deletable" behaviour:

	* app/core/gimpdata.c (gimp_data_init): default to writable and
	deletable == TRUE (something that has no filename was never loaded
	from disk and can't be undeletable or read-only).
	Fixes bug #134274.

	* app/core/gimpdata.[ch]: added new function
	gimp_data_make_internal() which frees the filename and sets the
	data's flags accordingly.

	* app/core/gimp-gradients.c (gimp_gradients_add_gradient)
	* app/core/gimpbrush.c (gimp_brush_get_standard)
	* app/core/gimpgradient.c (gimp_gradient_get_standard)
	* app/core/gimppalette.c (gimp_palette_get_standard)
	* app/core/gimppattern.c (gimp_pattern_get_standard): use the
	new function for internal data objects.

	* app/core/gimpdata.c (gimp_data_save, gimp_data_delete_from_disk)
	* app/core/gimpdatafactory.c (gimp_data_factory_save_single):
	bail out with g_return_if_fail() is the data is not writable
	or deletable.

	* app/widgets/gimpdataeditor.c
	* app/widgets/gimpdatafactoryview.c: changed accordingly.
2004-02-13 11:53:22 +00:00
Marco Ciampa 1797d6c7fd Updated italian translation 2004-02-13 07:14:54 +00:00
Sven Neumann 5f91135389 use GDK_CAP_NOT_LAST as the cap_style for all canvas drawing.
2004-02-12  Sven Neumann  <sven@gimp.org>

	* app/display/gimpcanvas.c (gimp_canvas_gc_new): use
	GDK_CAP_NOT_LAST as the cap_style for all canvas drawing.
2004-02-12 16:01:18 +00:00
Adam D. Moss c8fa27daa6 2004-02-12 / v3.0.14 / Adam D. Moss Fix a twisted utf8-obsessive bug
*  2004-02-12 / v3.0.14 / Adam D. Moss
 *       Fix a twisted utf8-obsessive bug diagnosed by
 *       Piotr Krysiuk <KrysiukP@prokom.pl>
 *
 *  2004-01-06 / v3.0.13 / Adam D. Moss
 *       Disable one of the PanoTools fixes by default, since it causes
 *       regressions in some ordinary PSD file loading.
 *
 *  2004-01-06 / v3.0.12 / Adam D. Moss
 *       Try to avoid 0-sized drawables (including channels) in all
 *       circumstances under GIMP 2.
 *
 *  2004-01-01 / v3.0.11 / Daniel Rogers <dsrogers@phaseveloctiy.org>
 *       GIMP crashes on 0x0 layers, so we skip them.
2004-02-12 15:24:11 +00:00
Michael Natterer 8091f46f71 call gimp_image_colormap_changed() after installing the colormap.
2004-02-12  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-convert.c (gimp_image_convert): call
	gimp_image_colormap_changed() after installing the colormap.

	* app/tools/gimphistogramoptions.h: fixed typedef of
	GimpHistogramOptionsClass.
2004-02-12 14:09:35 +00:00
Michael Natterer cfd6fb0a8e ignore double clicks so we don't grab the pointer away from the curves
2004-02-12  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimphistogramview.c (gimp_histogram_view_button_press):
	ignore double clicks so we don't grab the pointer away from the
	curves dialog. Fixes bug #132356.

	* app/tools/gimpcurvestool.c (curves_graph_events): ignore button
	press and release events from all buttons except the first one.
2004-02-12 13:12:56 +00:00
Michael Natterer 8312e82ad8 Make sure that non-indexed images never have a colormap. Fixes bug
2004-02-12  Michael Natterer  <mitch@gimp.org>

	Make sure that non-indexed images never have a colormap.
	Fixes bug #121033.

	* app/core/gimpimage-colormap.c (gimp_image_set_colormap): set
	image->cmap to NULL when called with a NULL colormap.

	* app/core/gimpimage-undo-push.c: made colormap undo/redo aware
	of NULL colormaps.

	* app/core/gimpimage-convert.c (gimp_image_convert): remove the
	colormap using gimp_image_set_colormap() instead of freeing it
	manually.

	* app/widgets/gimpcolormapeditor.c: always check if the image
	is INDEXED *and* has a colormap before accessing the colormap.

	(need this new check because the fixed behaviour of colormap undo
	produces undo groups which, when being popped, make the image have
	no colormap while still being INDEXED in the small time frame
	between the emission of "colormap_changed" and "mode_changed").
2004-02-12 12:13:21 +00:00
Sven Neumann ecdf62b5ce derive the text tool from GimpTool directly. Doesn't look like we are
2004-02-12  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.[ch]: derive the text tool from GimpTool
	directly. Doesn't look like we are going to use draw_tool
	functionality for 2.0.
2004-02-12 00:03:42 +00:00
Sven Neumann b9f19e30a9 when dropping a color on a text layer, change the text color. This is a
2004-02-11  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-dnd.c
	(gimp_display_shell_bucket_fill): when dropping a color on a text
	layer, change the text color. This is a quick hack; we should make
	filling a drawable a virtual method that can be overridden by the
	text layer.
2004-02-11 21:42:22 +00:00
Sven Neumann b17955d2a1 fixed icon names.
2004-02-11  Sven Neumann  <sven@gimp.org>

	* configure.in (GIMP_DESKTOP_ICON): fixed icon names.
2004-02-11 20:12:10 +00:00
Sven Neumann d893018056 repaired broken text tool logic (bug #124969).
2004-02-11  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.c: repaired broken text tool logic
	(bug #124969).
2004-02-11 14:44:01 +00:00
Sven Neumann e135de65a5 app/plug-in/plug-ins.c (plug_ins_init) changed g_warning() to g_printerr()
2004-02-11  Sven Neumann  <sven@gimp.org>

	* app/plug-in/plug-ins.c (plug_ins_init)
	* app/plug-in/plug-in.c (plug_in_close): changed g_warning() to
	g_printerr() in a few places where the problem is not an error in
	GIMP but a misbehaving plug-in. Suppress some of this output in
	the stable branch.
2004-02-11 13:18:51 +00:00
Jordi Mallach 664a8d89e9 Updated Catalan translation by Xavier Conde Rueda <xaviconde@eresmas.com>.
2004-02-11  Jordi Mallach  <jordi@sindominio.net>

	* ca.po: Updated Catalan translation by
	Xavier Conde Rueda <xaviconde@eresmas.com>.
2004-02-11 11:34:54 +00:00
Jan Morén c839ce2790 Updated Swedish translation.
2004-02-11  Jan Morén  <jan.moren@lucs.lu.se>

         * sv.po: Updated Swedish translation.
2004-02-11 08:19:49 +00:00
Miloslav Trmac bc206ac788 Update Czech translation 2004-02-11 06:37:12 +00:00
Sven Neumann fd58450810 removed "Default" prefix from "Navigation Preview Size" label again.
2004-02-10  Sven Neumann  <sven@gimp.org>

	* app/gui/preferences-dialog.c (prefs_dialog_new): removed "Default"
	prefix from "Navigation Preview Size" label again.
2004-02-10 20:59:34 +00:00
Ole Laursen 87ab151c81 Updated Danish translation.
2004-02-10  Ole Laursen  <olau@hardworking.dk>

	* da.po: Updated Danish translation.
2004-02-10 20:46:30 +00:00
Henrik Brix Andersen afd1a451fb prefix preview size labels with "Default" to avoid misunderstandings.
2004-02-10 Henrik Brix Andersen <brix@gimp.org>

* app/gui/preferences-dialog.c (prefs_dialog_new): prefix preview
size labels with "Default" to avoid misunderstandings.
2004-02-10 20:28:41 +00:00
Sven Neumann f5b5559394 use the question stock icon instead of the warning one.
2004-02-10  Sven Neumann  <sven@gimp.org>

	* themes/Default/images/Makefile.am (CORE_IMAGES): use the
	question stock icon instead of the warning one.

	* app/core/gimpviewable.c (gimp_viewable_get_dummy_preview):
	return a question icon as dummy preview.
2004-02-10 18:07:47 +00:00
Sven Neumann 9954d6b532 added a rule to create a header containing a warning pixbuf that we can
2004-02-10  Sven Neumann  <sven@gimp.org>

	* themes/Default/images/Makefile.am: added a rule to create a
	header containing a warning pixbuf that we can use from the core.

	* app/base/temp-buf.c (temp_buf_new): rewritten an optimisation so
	that it works for any number of bytes per pixel.
2004-02-10 15:45:10 +00:00
Michael Natterer c92bedb438 added new function gimp_viewable_get_dummy_preview() which currently
2004-02-10  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpviewable.[ch]: added new function
	gimp_viewable_get_dummy_preview() which currently returns a
	completely white and opaque TempBuf of the requested size.  Added
	this useless function because this is the place where to implement
	a nicer preview if someone volunteers.

	* tools/pdbgen/pdb/drawable.pdb
	* tools/pdbgen/pdb/image.pdb: use the new function if
	gimp->config->layer_previews is FALSE instead of returning no
	preview at all. Fixes bug #112012.

	Cleaned up the preview functions a bit and raised
	the limit for drawable previews from 128x128 to 256x256.

	* app/pdb/drawable_cmds.c
	* app/pdb/image_cmds.c
	* libgimp/gimpdrawable_pdb.c: regenerated.
2004-02-10 15:33:37 +00:00
Michael Natterer d46dca668d EXEEXT was fixed by yosh, not by me. Indented multiline bug fixes. 2004-02-10 14:58:29 +00:00
Sven Neumann 777a76a816 updated NEWS 2004-02-10 13:04:59 +00:00
Sven Neumann c25fea26a1 warn when gimpprint is older than version 4.2.6. It's probably too late to
2004-02-10  Sven Neumann  <sven@gimp.org>

	* configure.in: warn when gimpprint is older than version 4.2.6.
	It's probably too late to introduce a dependency on that version
	but we would like people to update in order to avoid bug #125283.
2004-02-10 12:22:36 +00:00
Sven Neumann 6f156fd319 make the value labels selectable as suggested by Mariano Suárez-Alvarez
2004-02-10  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcolorframe.c (gimp_color_frame_init): make the
	value labels selectable as suggested by Mariano Suárez-Alvarez in
	bug #133958.
2004-02-10 10:22:46 +00:00
Sven Neumann a4dbc770ba bumped version to 1.3.27 (interface_age 1, binary_age 1). Added
2004-02-10  Sven Neumann  <sven@gimp.org>

	* configure.in: bumped version to 1.3.27 (interface_age 1,
	binary_age 1). Added GIMP_DESKTOP_ICON variable and set it
	depending on GIMP_UNSTABLE.

	* data/images/Makefile.am
	* data/images/wilber-devel-icon.png
	* data/images/wilber-icon.png: renamed the development icon and
	added one for the stable version.

	* data/misc/gimp.desktop.in.in: use @GIMP_DESKTOP_ICON@.
2004-02-10 09:49:45 +00:00
Dmitry Mastrukov 5d3b2d2859 ru.po: Updated Russian translation from Russian team <gnome-cyr@gnome.org>. 2004-02-10 04:21:25 +00:00