Commit Graph

11374 Commits

Author SHA1 Message Date
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
Jan Morén 501a3f99e9 Updated Swedish translation.
2004-02-10  Jan Morén  <jan.moren@lucs.lu.se>

          * sv.po: Updated Swedish translation.
2004-02-10 03:58:35 +00:00
Jan Morén 90f4875223 Updated Swedish translation.
2004-02-10  Jan Morén  <jan.moren@lucs.lu.se>

         * sv.po: Updated Swedish translation.
2004-02-10 03:53:50 +00:00
Sven Neumann 4005559c72 set GIMP_CONTEXT_FONT_MASK. Fixes bug #133067.
2004-02-10  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.c (gimp_text_tool_register): set
	GIMP_CONTEXT_FONT_MASK. Fixes bug #133067.
2004-02-10 02:15:41 +00:00
Sven Neumann 727aaf8c1f added hr.po (Croatian).
2004-02-09  Sven Neumann  <sven@gimp.org>

	* Makefile.am (tips_POFILES): added hr.po (Croatian).

	* hr.po: removed fuzzy declaration from header.
2004-02-09 19:25:22 +00:00
Simon Budig 771e44dca1 Fixed Undo handling, make sure that the bumpmap is big enough to avoid
2004-02-09  Simon Budig  <simon@gimp.org>

	* plug-ins/script-fu/scripts/add-bevel.scm: Fixed Undo
	handling, make sure that the bumpmap is big enough to
	avoid artefacts.

	Fixes bug #130636.
2004-02-09 16:41:54 +00:00
Michael Natterer 8b6812805d added runtime check for fontconfig > 2.2.0 and abort with a dialog box
2004-02-09  Michael Natterer  <mitch@gimp.org>

	* app/gui/gui.c (gui_libs_init): added runtime check for
	fontconfig > 2.2.0 and abort with a dialog box telling the
	user to upgrade fontconfig if the requirement is not met.
	Fixes all bugs like #133818.
2004-02-09 15:29:03 +00:00
Sven Neumann 01ea8d5587 applied patch from Wolfgang Hofer that fixes bug #133244.
2004-02-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/curve_bend.c: applied patch from Wolfgang Hofer
	that fixes bug #133244.
2004-02-09 14:47:41 +00:00
Sven Neumann cefbda88e0 applied patch from Wolfgang Hofer that fixes bug #133244.
2004-02-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/curve_bend.c: applied patch from Wolfgang Hofer
	that fixes bug #133244.
2004-02-09 14:43:46 +00:00
Robert Sedak 4b5ee830bc *** empty log message *** 2004-02-09 14:20:57 +00:00
Sven Neumann 65e67a0301 some updates to the gimp-console rules so that it fails less badly.
2004-02-09  Sven Neumann  <sven@gimp.org>

	* app/Makefile.am: some updates to the gimp-console rules so that
	it fails less badly.
2004-02-09 14:14:08 +00:00
Francisco Javier F. Serrador 3c8677d0a3 Updated Spanish translation.
2004-02-09  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>

	* es.po: Updated Spanish translation.
2004-02-09 12:32:03 +00:00
Manish Singh d14a5075ed app/file/Makefile.am app/paint/Makefile.am app/text/Makefile.am changed
2004-02-09  Manish Singh  <yosh@gimp.org>

        * app/file/Makefile.am
        * app/paint/Makefile.am
        * app/text/Makefile.am
        * app/xcf/Makefile.am: changed GTK_CFLAGS to GDK_PIXBUF_CFLAGS, since
        we don't use any gtk/gdk functions here. This especially helps in the
        text directory, since it avoids problems on broken setups with old
        fontconfig stuff in the X11 directory lying around.
2004-02-09 09:11:10 +00:00
Sven Neumann 917f8fdb35 removed some workarounds for bugs in the GIMP 1.2 text functions that
2004-02-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/text-circle.scm: removed some workarounds
	for bugs in the GIMP 1.2 text functions that don't exist any longer.
2004-02-09 01:28:14 +00:00