Commit graph

9363 commits

Author SHA1 Message Date
Simon Budig f4b390a4f4 app/core/gimpimage-mask-select.c Fixed two crashes when a path with a
2003-08-28  Simon Budig  <simon@gimp.org>

	* app/core/gimpimage-mask-select.c
	* app/vectors/gimpbezierstroke.c: Fixed two crashes when a path
	with a single node in a stroke got converted to a selection or got
	stroked.
2003-08-28 16:53:09 +00:00
Sven Neumann 6bcd478dd4 keep the context colors always opaque. Fixes bug #120912.
2003-08-28  Sven Neumann  <sven@gimp.org>

	* app/core/gimpcontext.c (gimp_context_real_set_foreground)
	(gimp_context_real_set_background): keep the context colors always
	opaque. Fixes bug #120912.
2003-08-28 16:39:43 +00:00
Sven Neumann 08e8072f22 removed a historical enum constraint that caused bug #120915.
2003-08-28  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/image.pdb: removed a historical enum constraint
	that caused bug #120915.

	* app/pdb/image_cmds.c: regenerated.
2003-08-28 16:14:07 +00:00
Changwoo Ryu 299104c3df Updated Korean translation by Dongsu Jang <iolo@hellocity.net>.
* ko.po: Updated Korean translation by
	Dongsu Jang <iolo@hellocity.net>.
2003-08-28 14:18:01 +00:00
Simon Budig d3879afcb9 libappte2003-08-28 Simon Budig <simon@gimp.org>
* app/tools/gimptransformtool.c: Modified the test when to paint
	the grid or not. It now checks for convexity of the bounding
	polygon.
2003-08-28 13:02:50 +00:00
Ville Pätsi 0a68b78274 Fixed last changelog entry syntax 2003-08-28 12:29:21 +00:00
Ville Pätsi 21441b24bd Added gimp.spec to Makefile.am 2003-08-28 10:20:47 +00:00
Michael Natterer d3476d38f0 update the button states if the layer which changed alpha was the active
2003-08-27  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimplayertreeview.c
	(gimp_layer_tree_view_alpha_changed): update the button states if
	the layer which changed alpha was the active one.
	Fixes bug #120864.
2003-08-27 19:50:08 +00:00
Michael Natterer c4dfccd8db Enabled type-preserving DND of all kinds of items between different
2003-08-27  Michael Natterer  <mitch@gimp.org>

	Enabled type-preserving DND of all kinds of items between
	different images. Fixes bug #119983.

	* app/core/gimpitem.[ch]: added new virtual function
	GimpItem::convert() which duplicates an item for another image.

	* app/core/gimplayer.[ch]: removed gimp_layer_new_from_drawable()
	and made it a GimpItem::convert() implementation.

	* app/vectors/gimpvectors.[ch]: removed gimp_vectors_convert() and
	made it a GimpItem::convert() implementation.

	* app/widgets/gimpitemtreeview.[ch]: removed GimpConvertItemFunc
	typedef and function pointer in GimpItemTreeViewClass since
	we can simply call gimp_item_convert() now.

	* app/widgets/gimplayertreeview.c
	* app/widgets/gimpvectorstreeview.c
	* app/display/gimpdisplayshell-dnd.c
	* tools/pdbgen/pdb/layer.pdb: changed accordingly.

	* app/pdb/layer_cmds.c: regenerated.
2003-08-27 17:21:49 +00:00
Ole Laursen 1f9b302665 Updated Danish translation.
2003-08-27  Ole Laursen  <olau@hardworking.dk>

	* da.po: Updated Danish translation.
2003-08-27 15:24:13 +00:00
Sven Neumann b1bccea6c0 removed debugging output.
2003-08-27  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpitemfactory.c (gimp_item_factory_translate_func):
	removed debugging output.
2003-08-27 14:55:42 +00:00
Sven Neumann 8377aa0fd5 Made 1.3.19 release. 2003-08-27 11:05:24 +00:00
Sven Neumann 76d5d377b8 made the PDB interface backwards compatible by allowing the last parameter
2003-08-27  Sven Neumann  <sven@gimp.org>

        * plug-ins/common/edge.c (run): made the PDB interface backwards
        compatible by allowing the last parameter to be omitted.
2003-08-27 09:37:19 +00:00
Dave Neary 012b75efc0 Update NEWS file, split path tool improvements into user-visible chunks.
2003-08-27  Dave Neary  <bolsh@gimp.org>

        * NEWS: Update NEWS file, split path tool improvements into
        user-visible chunks.
2003-08-27 08:13:11 +00:00
Maurits Rijk 89fd6901eb Fix for #119937 and #119938 plus lots of code cleanup. 2003-08-27 05:44:57 +00:00
Dmitry Mastrukov 22c5a50b3d ru.po: Update Russian translation from Russian team <gnome-cyr@gnome.org>. 2003-08-27 04:33:08 +00:00
Michael Natterer a7b2c160b4 Cleaned up my "To Selection" cleanup:
2003-08-27  Michael Natterer  <mitch@gimp.org>

	Cleaned up my "To Selection" cleanup:

	* app/gui/channels-commands.[ch]
	* app/gui/layers-commands.[ch]
	* app/gui/vectors-commands.[ch]: removed the separate
	cmd_callbacks for REPLACE,ADD,SUBTRACT,INTERSECT and pass the
	operation as "guint action" to the callback.

	* app/gui/channels-menu.c
	* app/gui/image-menu.c
	* app/gui/layers-menu.c
	* app/gui/vectors-menu.c: changed accordingly.
2003-08-27 00:52:00 +00:00
Simon Budig 08bd7a19b9 app/vectors/gimpstroke.[ch] Implemented function to connect two strokes.
2003-08-27  Simon Budig  <simon@gimp.org>

	* app/vectors/gimpstroke.[ch]
	* app/vectors/gimpbezierstroke.c: Implemented function to
	connect two strokes.

	* app/tools/gimpvectortool.[ch]: Use it. Right now you have
	to click on one endpoint, and then SHIFT+CTRL+ALT-Click on
	the other endpoint.

	Suggestions on how to solve that more sanely are welcome...
2003-08-27 00:31:20 +00:00
Michael Natterer 1ce3055058 added missing g_rand_free().
2003-08-27  Michael Natterer  <mitch@gimp.org>

	* app/composite/gimp-composite-generic.c
	(gimp_composite_generic_init): added missing g_rand_free().

	* app/widgets/gimpitemfactory.[ch]: fixed all leaks in
	gimp_item_factory_translate_func(). Added
	item_factory->translation_trash for the pathological cases. Free
	the trash after each call to gtk_item_factory_create_item().
2003-08-27 00:02:04 +00:00
Sven Neumann 0eff267590 applied patch from Guillermo S. Romero that moves the newly added PDB
2003-08-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/edge.c: applied patch from Guillermo S. Romero
	that moves the newly added PDB parameter to the end and documents
	the former default value.

	* plug-ins/script-fu/scripts/3d-outline.scm
	* plug-ins/script-fu/scripts/circuit.scm
	* plug-ins/script-fu/scripts/lava.scm
	* plug-ins/script-fu/scripts/predator.scm: changed accordingly by
	Guillermo S. Romero.
2003-08-26 23:43:48 +00:00
Sven Neumann 50e63f0caa libgimpbase/Makefile.am (EXTRA_DIST) removed gimpversion.h.in.
2003-08-27  Sven Neumann  <sven@gimp.org>

	* libgimpbase/Makefile.am (EXTRA_DIST)
	* libgimpbase/makefile.msc (EXTRA_DIST): removed gimpversion.h.in.

	* app/composite/Makefile.am (libappcomposite_a_built_sources):
	removed gimp-composite-*-installer.h.
2003-08-26 22:56:30 +00:00
Michael Natterer 576057b1a7 added some toolbox and dock related help IDs.
2003-08-26  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimphelp-ids.h: added some toolbox and dock related
	help IDs.

	* app/gui/dialogs-menu.c
	* app/widgets/gimpimagedock.c
	* app/widgets/gimptoolbox.c: use them.
2003-08-26 22:00:42 +00:00
Pablo Gonzalo del Campo 2586318553 Updated Spanish translation by Francisco Javier F. Serrador
2003-08-26  Pablo Gonzalo del Campo  <pablodc@bigfoot.com>

        * es.po: Updated Spanish translation by
                 Francisco Javier F. Serrador <serrador@arrakis.es>.
2003-08-26 21:57:24 +00:00
Michael Natterer e97cf2b675 some cleanup and fixes before porting to the new help ID based system.
2003-08-26  Michael Natterer  <mitch@gimp.org>

	* app/helpbrowser/helpbrowser.c: some cleanup and fixes before
	porting to the new help ID based system. Definitely broken at the
	moment.
2003-08-26 21:24:25 +00:00
Sven Neumann 6fa1bc22c4 ooops, should have gone with the last commit 2003-08-26 19:46:34 +00:00
Sven Neumann ee6dad2eb5 use GIMP_GRADIENT as prefix for the GimpGradientType enum.
2003-08-26  Sven Neumann  <sven@gimp.org>

	* app/core/core-enums.h: use GIMP_GRADIENT as prefix for the
	GimpGradientType enum.

	* app/core/core-enums.c
	* app/pdb/misc_tools_cmds.c
	* libgimp/gimpenums.h
	* plug-ins/pygimp/gimpenums.py
	* plug-ins/script-fu/script-fu-constants.c
	* tools/pdbgen/enums.pl: regenerated.

	* app/core/gimpdrawable-blend.c
	* app/tools/gimpblendoptions.c
	* plug-ins/pygimp/plug-ins/sphere.py
	* plug-ins/script-fu/scripts: changed accordingly.

	* libgimp/gimpcompat.h
	* plug-ins/script-fu/siod-wrapper.c: added compatibility defines
	for the old enum values.
2003-08-26 18:12:42 +00:00
Michael Natterer 17d1fb17f2 it's GIMP_INTERPOLATION_LINEAR, not just GIMP_LINEAR, argh. Fixes part 1
2003-08-26  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptransformoptions.c
	(gimp_transform_options_class_init): it's GIMP_INTERPOLATION_LINEAR,
	not just GIMP_LINEAR, argh. Fixes part 1 of bug #120424.
2003-08-26 17:33:25 +00:00
Michael Natterer 190710aef8 we can't rely on "eek.png" from the help system being installed. Use
2003-08-26  Michael Natterer  <mitch@gimp.org>

	* plug-ins/helpbrowser/helpbrowser.c (open_browser_dialog): we
	can't rely on "eek.png" from the help system being installed.
	Use "stock-wilber-eek-64.png" from the default theme instead
	because it is always available.
2003-08-26 16:28:21 +00:00
Michael Natterer 86662cd66b Bye bye, "crappy/foo.html":
2003-08-26  Michael Natterer  <mitch@gimp.org>

	Bye bye, "crappy/foo.html":

	* app/widgets/gimphelp-ids.h: replaced "crappy/foo.html" by
	"gimp-proper-identifier".

	* app/plug-in/plug-in-proc.[ch] (plug_in_proc_def_get_help_id):
	added "const gchar *help_path" parameter and return a help ID
	ready for attaching to a menu item.

	The help ID is no longer constructed from the plug-in's executable
	name but from the *procedure* name with '_' replaced by '-'. This
	means we can now have help for each script-fu script and for each
	of a plug-in's individual procedures.

	* app/gui/plug-in-menus.c: removed even more duplicated wrong code
	since plug_in_proc_def_get_help_id() is implemented correctly now.

	* app/gui/file-open-menu.c
	* app/gui/file-save-menu.c: ditto. Reorder the "XCF" menu item
	before the separator and added GIMP_STOCK_WILBER.

	* app/gui/file-dialog-utils.c: added a mnemonic to the
	"Determine File Type:" label.
2003-08-26 15:12:47 +00:00
Simon Budig 47571782a7 Intruduce casting macro GIMP_ANCHOR.
2003-08-26  Simon Budig  <simon@gimp.org>

	* app/vectors/gimpanchor.h: Intruduce casting macro GIMP_ANCHOR.

	* app/tools/gimpvectortool.c
	* app/vectors/gimpstroke.c
	* app/vectors/gimpbezierstroke.c
	* app/vectors/gimpvectors-compat.c: Use it for code readibility.
2003-08-26 14:29:10 +00:00
Michael Natterer 3b30a0b80a added gimp_dockbook_help_func() which shows the help for the active page.
2003-08-26  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdockbook.c: added gimp_dockbook_help_func()
	which shows the help for the active page.

	(gimp_dockbook_tab_button_press): grab the focus when a notebook
	tab is clicked. Still not perfect since GtkNotebook does it
	slightly different, but feels much better than before.
2003-08-26 10:07:01 +00:00
Michael Natterer d90ee12388 app/gui/info-window.c app/widgets/gimpfontselection.c replaced the last
2003-08-26  Michael Natterer  <mitch@gimp.org>

	* app/gui/info-window.c
	* app/widgets/gimpfontselection.c
	* app/widgets/gimpfontselection-dialog.c: replaced the last
	hardcoded html links by help IDs. Removed trailing whitespace.
2003-08-26 09:57:28 +00:00
Simon Budig 4571b6b5bd Minor code cleanup that automagically makes SHIFT while curve-dragging
2003-08-26  Simon Budig  <simon@gimp.org>

	* app/vectors/gimpbezierstroke.c: Minor code cleanup that
	automagically makes SHIFT while curve-dragging work...
2003-08-26 08:59:30 +00:00
Michael Natterer f5f67efae5 use GIMP_HELP_IMAGE_GRID.
2003-08-26  Michael Natterer  <mitch@gimp.org>

	* app/gui/grid-dialog.c: use GIMP_HELP_IMAGE_GRID.

	* app/gui/image-menu.c: fixed some help ID copy & paste bugs.

	* app/widgets/gimpdockable.c: forgot to actually set the help ID
	with gimp_help_set_help_data().
2003-08-26 01:30:05 +00:00
Simon Budig 009766a881 app/vectors/gimpstroke.[ch] Implemented direct moving of the curve. Whee!
2003-08-26  Simon Budig  <simon@gimp.org>

	* app/vectors/gimpstroke.[ch]
	* app/vectors/gimpbezierstroke.c: Implemented direct moving of the
	curve. Whee!  :-)

	* app/tools/gimpvectortool.[ch]: Use it.
2003-08-26 00:27:03 +00:00
Michael Natterer dc95e16b79 added enum GimpContainerPolicy.
2003-08-25  Michael Natterer  <mitch@gimp.org>

	* app/core/core-enums.[ch]: added enum GimpContainerPolicy.

	* app/core/gimpcontainer.[ch]: removed it here.  Added new virtual
	function GimpContainer::clear() which removes all items. Cleanup.

	* app/core/gimplist.c: implement GimpContainer::clear(). Cleanup.
2003-08-25 21:25:13 +00:00
Ole Laursen 9209b3f728 Updated Danish translation.
2003-08-25  Ole Laursen  <olau@hardworking.dk>

	* da.po: Updated Danish translation.
2003-08-25 19:38:45 +00:00
Michael Natterer 829449a86e app/widgets/gimpitemfactory.[ch] added a help_id to GimpItemFactory. It's
2003-08-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpitemfactory.[ch]
	* app/widgets/gimpmenufactory.[ch]: added a help_id to
	GimpItemFactory.  It's basically the code I removed some days ago,
	but this time it's used as default help_id for the factory (e.g.
	if F1 is pressed over a separator), and not to construct html
	links.

	* app/widgets/gimphelp-ids.h: added some missing help IDs.

	* app/gui/menus.c: register a help IDs with each item factory.

	* app/display/gimpdisplayshell.c
	* app/gui/dialogs-menu.c: some more forgotten help IDs.
2003-08-25 17:57:21 +00:00
Michael Natterer 2d5fe07a4e app/widgets/gimphelp-ids.h app/widgets/gimppaletteeditor.c help IDs for
2003-08-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimphelp-ids.h
	* app/widgets/gimppaletteeditor.c
	* app/gui/palette-editor-menu.c: help IDs for the palette editor.

	* app/gui/toolbox-menu.c: forgot some dialog help IDs.
2003-08-25 17:11:03 +00:00
Michael Natterer dec69db166 removed the "locale_domain" and "help_path" parameters since the function
2003-08-25  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-ins.[ch] (plug_ins_temp_proc_def_add): removed
	the "locale_domain" and "help_path" parameters since the function
	can figure them by itself.

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

	* app/plug-in/plug-in-proc.[ch] (plug_in_proc_def_get_help_id):
	new function which will soon be implemented correctly :-)

	* app/gui/file-open-menu.c (file_open_menu_setup)
	* app/gui/file-save-menu.c (file_save_menu_setup)
	* app/gui/plug-in-menus.c (plug_in_menus_create_entry): use it
	here instead of duplicating broken code.
2003-08-25 16:28:46 +00:00
Michael Natterer bfb8068af9 added GIMP_HELP_TEXT_EDITOR_DIALOG.
2003-08-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimphelp-ids.h: added GIMP_HELP_TEXT_EDITOR_DIALOG.

	* app/widgets/gimptexteditor.c: use it.
2003-08-25 14:24:28 +00:00
Michael Natterer 8c8274e27d added "gchar *help_id" member to the GimpDockable struct and "const gchar
2003-08-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdockable.[ch]: added "gchar *help_id" member to
	the GimpDockable struct and "const gchar *help_id" parameter to
	gimp_dockable_new().

	* app/widgets/gimphelp-ids.h: added help IDs for the tool list/grid
	and the palette editor.

	* app/widgets/gimpdockbook.c
	* app/gui/dialogs-constructors.c
	* app/gui/dialogs-menu.c: changed accordingly.
2003-08-25 14:18:33 +00:00
Michael Natterer 3d124a9da0 added "Select->To Path" menu entry, using the right stock_id and help_id.
2003-08-25  Michael Natterer  <mitch@gimp.org>

	* app/gui/image-menu.c: added "Select->To Path" menu entry, using
	the right stock_id and help_id.

	* plug-ins/sel2path/sel2path.c: don't install a menu_path.
2003-08-25 14:02:30 +00:00
Michael Natterer 160b91e1b9 derive it from GimpObject and added GimpObject::get_memsize()
2003-08-25  Michael Natterer  <mitch@gimp.org>

	* app/text/gimptext.[ch]: derive it from GimpObject and added
	GimpObject::get_memsize() implementation.
2003-08-25 12:24:51 +00:00
Sven Neumann 071f933cd7 Fixed some issues with the PDB thumbnail functions spotted by Wolfgang
2003-08-25  Sven Neumann  <sven@gimp.org>

	Fixed some issues with the PDB thumbnail functions spotted by
	Wolfgang Hofer and loosely based on patches he provided:

	* tools/pdbgen/pdb/fileops.pdb (file_load_thumbnail): keep a
	reference on the GimpImagefile as long as we need the associated
	preview temp_buf. Call gimp_imagefile_update() before requesting
	the preview.

	* app/pdb/fileops_cmds.c: regenerated.

	* app/base/temp-buf.c (temp_buf_new_check): use a checkerboard
	algorithm similar to the one the displayshell-render code uses.
2003-08-25 11:35:16 +00:00
Michael Natterer 24f3da165b changed GimpObject::get_memsize() to return a second value named
2003-08-25  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpobject.[ch]: changed GimpObject::get_memsize() to
	return a second value named "gui_size", where the primary return
	value is the "constant" actual size (as long as no operation is
	performed on the object), and the second "gui_size" return value
	is the size of temporary stuff like preview caches or boundary
	segments (which may change asynchronously, even if the object is
	on the undo stack).

	* app/core/gimp.c
	* app/core/gimpbrush.c
	* app/core/gimpbrushpipe.c
	* app/core/gimpbuffer.c
	* app/core/gimpchannel.c
	* app/core/gimpcontainer.c
	* app/core/gimpcontext.c
	* app/core/gimpdata.c
	* app/core/gimpdatafactory.c
	* app/core/gimpdrawable.c
	* app/core/gimpgradient.c
	* app/core/gimpimage-undo.c
	* app/core/gimpimage.c
	* app/core/gimpitem.c
	* app/core/gimplayer.c
	* app/core/gimplist.c
	* app/core/gimppalette.c
	* app/core/gimpparasitelist.c
	* app/core/gimppattern.c
	* app/core/gimpundo.c
	* app/core/gimpundostack.c
	* app/core/gimpviewable.c
	* app/text/gimptextlayer.c
	* app/vectors/gimpstroke.c
	* app/vectors/gimpvectors.c: changed get_memsize() implementations
	accordingly.

	* app/display/gimpdisplayshell-title.c
	* app/gui/debug-commands.c
	* app/widgets/gimppreview.c: changed callers accordingly.

	* app/core/gimpimage-undo-push.c: changed layer, channel, vectors
	and layer_mask undo steps to add/subtract the size of the
	resp. objects whenever they take/drop ownership of them. Ignore
	the objects' "gui_size" to get identical sizes on
	adding/subtracting. Fixes bug #120429.
2003-08-25 10:49:33 +00:00
Michael Natterer 72369061b6 Oops, sorry... 2003-08-25 10:45:16 +00:00
Kjartan Maraas 79c5784cd2 Update Norwegian translation.
2003-08-25  Kjartan Maraas  <kmaraas@gnome.org>

	* no.po: Update Norwegian translation.
2003-08-25 09:00:48 +00:00
Michael Natterer bd21fec5e8 forgot this one.
2003-08-25  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpnavigationview.c: forgot this one.
2003-08-25 00:54:15 +00:00
Seth Burgess cf8e0558ab Fix rcm a bit better, using gdk_window_process_updates() to do xor drawing. 2003-08-24 20:21:47 +00:00