Commit Graph

4405 Commits

Author SHA1 Message Date
Michael Natterer f4ce6a9ee3 pack the preview's alignment into the inner frame, not around it, so it
2002-05-10  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpnavigationview.c: pack the preview's alignment
	into the inner frame, not around it, so it looks like the other
	dockables. Fixed popup window positioning. Tried to get rid of
	insane scale_label allocation computation but failed. Left the
	EEKy code there for further investigation.
2002-05-10 13:05:09 +00:00
Michael Natterer b12391e972 create the "Undo" and "Redo" buttons from stock items.
2002-05-10  Michael Natterer  <mitch@gimp.org>

	* app/undo_history.c: create the "Undo" and "Redo" buttons from
	stock items.

	* pixmaps/Makefile.am
	* pixmaps/lower.xpm
	* pixmaps/paste.xpm
	* pixmaps/raise.xpm: removed them because they are not used any more.
2002-05-10 12:53:38 +00:00
Michael Natterer 800bbb7e7e don't try to set the preview_size of plain GtkMenuItems.
2002-05-10  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainermenuimpl.c: don't try to set the
	preview_size of plain GtkMenuItems.

	* app/widgets/gimpdocumentview.c: fixed the "update" and
	"delete dangling" functionals. They got passed wrong user_data.

	* app/widgets/gimpitemfactory.c (gtk_item_factory_set_visible): if
	the widget found is a menu, get it's parent item and show/hide
	that.

	* app/widgets/gimppreview.c (gimp_preview_set_viewable): always
	clear preview->buffer so we don't display previews of vanished
	viewables.
2002-05-10 12:47:42 +00:00
Michael Natterer 54d9b7ca29 disabled debuggind output.
2002-05-10  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpcontainer.c: disabled debuggind output.

	* app/core/gimpdrawable.c (gimp_drawable_init): no need to
	initialize variables twice :)

	* app/widgets/gimpnavigationpreview.c: removed debugging output.
2002-05-10 12:38:41 +00:00
Nate Summers db98290bef stupid backhoe 2002-05-10 00:28:00 +00:00
Manish Singh 3e3fab4eed the correct switch is --disable-print, not --without-gimpprint. Fix not
2002-05-08  Manish Singh  <yosh@gimp.org>

        * configure.in: the correct switch is --disable-print, not
        --without-gimpprint. Fix not found error message, and add a pointer
        to the gimp-print homepage.
2002-05-08 21:27:15 +00:00
Sven Neumann 12c529f4ed call bind_textdomain_codeset() so that we get UTF-8 encoded translations
2002-05-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (run): call bind_textdomain_codeset() so
	that we get UTF-8 encoded translations from libgimpprint.
2002-05-08 17:52:45 +00:00
Michael Natterer a3bb0b0dad Started to get rid of the gdisplays_foo() functions in
2002-05-08  Michael Natterer  <mitch@gimp.org>

	Started to get rid of the gdisplays_foo() functions in
	app/display/gimpdisplay-foreach.[ch]. Work in progress...

	* app/core/gimp.[ch]: added the display list to the Gimp object
	(as a GimpList of GimpObjects). This way we get more independent
	from whether there is GUI or not, as gimp->displays will simply
	be an empty list for the --no-interface case.

	* app/display/gimpdisplay.[ch]: Removed the global "display_list"
	and "display_num" variables. Use gimp->displays instead.

	* app/display/gimpdisplay-foreach.[ch]: renamed most functions
	from gdisplays_foo() to gimp_displays_foo() and pass them a Gimp
	pointer.

	* app/core/gimpimage.[ch]: added a "flush" signal.

	* app/display/gimpdisplay-handlers.c: connect to "flush" and call
	gimp_display_flush() in the callback.

	* tools/pdbgen/pdb/display.pdb: use gimp_displays_flush(gimp)
	here and only here.

	* app/pdb/display_cmds.c: regenerated.

	* app/app_procs.c
	* app/gui/gui.c
	* app/gui/preferences-dialog.c:
	s/gdislays_foo()/gimp_displays_foo(gimp)/

	* app/image_map.c
	* app/undo_history.c
	* app/display/gimpdisplayshell-callbacks.c
	* app/display/gimpdisplayshell-dnd.c
	* app/display/gimpdisplayshell-layer-select.c
	* app/display/gimpdisplayshell-scale.c
	* app/gui/channels-commands.c
	* app/gui/colormap-editor-commands.c
	* app/gui/convert-dialog.c
	* app/gui/drawable-commands.c
	* app/gui/edit-commands.c
	* app/gui/file-commands.c
	* app/gui/image-commands.c
	* app/gui/layers-commands.c
	* app/gui/offset-dialog.c
	* app/gui/qmask-commands.c
	* app/gui/select-commands.c
	* app/gui/vectors-commands.c
	* app/paint/gimpairbrush.c
	* app/tools/gimpbezierselecttool.c
	* app/tools/gimpblendtool.c
	* app/tools/gimpbrightnesscontrasttool.c
	* app/tools/gimpbucketfilltool.c
	* app/tools/gimpbycolorselecttool.c
	* app/tools/gimpcolorbalancetool.c
	* app/tools/gimpcurvestool.c
	* app/tools/gimpeditselectiontool.c
	* app/tools/gimpfreeselecttool.c
	* app/tools/gimpfuzzyselecttool.c
	* app/tools/gimphuesaturationtool.c
	* app/tools/gimpinktool.c
	* app/tools/gimpiscissorstool.c
	* app/tools/gimplevelstool.c
	* app/tools/gimpmeasuretool.c
	* app/tools/gimpmovetool.c
	* app/tools/gimppainttool.c
	* app/tools/gimpposterizetool.c
	* app/tools/gimprectselecttool.c
	* app/tools/gimptexttool.c
	* app/tools/gimpthresholdtool.c
	* app/tools/gimptransformtool.c
	* app/tools/gimpvectortool.c
	* app/widgets/gimpbufferview.c
	* app/widgets/gimpchannellistview.c
	* app/widgets/gimpcomponentlistitem.c
	* app/widgets/gimpdocumentview.c
	* app/widgets/gimpdrawablelistitem.c
	* app/widgets/gimpdrawablelistview.c
	* app/widgets/gimpimageview.c
	* app/widgets/gimpitemlistitem.c
	* app/widgets/gimpitemlistview.c
	* app/widgets/gimplayerlistitem.c
	* app/widgets/gimplayerlistview.c
	* app/widgets/gimpvectorslistview.c: replaced gdisplays_flush()
	with calls to gimp_image_flush(gimage). Removed inclusion of
	"display/gimpdisplay-foreach.h" from most files.
2002-05-08 17:48:24 +00:00
Sven Neumann afdb263b4b plug-ins/print/gimp_color_window.c a couple of cleanups and fixes. This
2002-05-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/gimp_color_window.c
	* plug-ins/print/gimp_main_window.c: a couple of cleanups and fixes.
	This code relies heavily on GTK+ implementation details and thus
	tends to work differently or even crash on GTK+-2.0 :-(
2002-05-08 12:57:58 +00:00
Michael Natterer ff722d0cff removed unused commented out prototype.
2002-05-08  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp.h: removed unused commented out prototype.

	* app/core/gimpimage.c (gimp_image_set_tattoo_state): fixed it
	again after I have b0rked it when using vectors instead of paths.

	* app/display/gimpdisplay.c: some comments and one more
	g_return_val_if_fail().

	* app/widgets/gimpimagedock.c: more fixes for the subtle
	active_image <-> active_display difference.

	* tools/pdbgen/pdb/display.pdb (gimp_display_delete): call
	gimp_display_delete() instead of just destroying it's shell (eek).

	* app/pdb/display_cmds.c: regenerated.

	Added a special view type for the image list so we can implement
	stuff like deleting images which are left over from crashed
	plug-ins:

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpimageview.[ch]: new widget: a view on the image
	container.

	* app/gui/Makefile.am
	* app/gui/images-commands.[ch]: new callbacks for it's context menu.

	* app/gui/dialogs-constructors.c: use the new widget instead of
	plain GimpContainerViews.

	* app/gui/menus.c: added an item_factory for it.
2002-05-08 12:39:01 +00:00
Sven Neumann e1b20e1c14 applied a patch from Maurits Rijk that enables mnemonics (bug #80804).
2002-05-08  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpwidgets.c (gimp_scale_entry_new)
	(gimp_table_attach_aligned): applied a patch from Maurits Rijk that
	enables mnemonics (bug #80804).

	* plug-ins/common/apply_lens.c
	* plug-ins/common/glasstile.c: applied a patch from Maurits Rijk that
	adds mnemonics (bug #80804).

	* plug-ins/common/animationplay.c
	* plug-ins/common/decompose.c
	* plug-ins/common/film.c
	* plug-ins/common/gee.c
	* plug-ins/common/gee_zoom.c
	* plug-ins/common/guillotine.c
	* plug-ins/common/winprint.c
	* plug-ins/gap/gap_lib.c
	* plug-ins/imagemap/imap_main.c
	* plug-ins/imagemap/imap_settings.c
	* plug-ins/print/gimp_main_window.c
	* plug-ins/print/print.c
	* plug-ins/print/print_gimp.h: use new function gimp_image_get_name()
	where applicable.
2002-05-08 00:30:26 +00:00
Manish Singh 182eb5170c added image_get_name. Also, no longer duplicate the string in
2002-05-07  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/pdb/image.pdb: added image_get_name. Also, no longer
        duplicate the string in image_get_filename, since
        gimp_image_get_filename() returns a caller freed string now.

        * app/pdb/image_cmds.c
        * app/pdb/internal_procs.c
        * libgimp/gimpimage_pdb.[ch]: regenerated
2002-05-07 22:35:29 +00:00
Michael Natterer b6c56ff9ac app/Makefile.am removed.
2002-05-07  Michael Natterer  <mitch@gimp.org>

	* app/Makefile.am
	* app/nav_window.[ch]: removed.

	* app/display/Makefile.am
	* app/display/display-types.h
	* app/display/gimpnavigationview.[ch]: new widget partially based
	on the removed nav_window.

	* libgimpproxy/gimpproxytypes.h: regnenerated.

	* app/display/gimpdisplay-foreach.[ch]: removed
	gdisplays_nav_preview_resized(). The new config system will allow
	us to get notified of changes.

	* app/display/gimpdisplayshell.[ch]: added "scaled" and "scrolled"
	signals.

	* app/display/gimpdisplayshell-scale.c
	* app/display/gimpdisplayshell-scroll.c: emit "scaled" and
	"scrolled" appropriately. Removed nav_window stuff.

	* app/display/gimpdisplay.c
	* app/display/gimpdisplayshell-callbacks.c: changed accordingly.

	* app/gui/dialogs-constructors.[ch]
	* app/gui/dialogs.c
	* app/gui/menus.c: made the navigation dialog dockable.

	* app/gui/view-commands.c: changed the nav_dialog callback accordingly.

	* app/gui/preferences-dialog.c
	* app/gimprc.[ch]
	* app/config/gimpguiconfig.[ch]: removed "nav_window_per_display"
	as it's now a dockable and it's state is saved in sessionrc.

	* app/widgets/gimpnavigationpreview.[ch]: added context sensitive
	mouse cursors.

	* app/widgets/gimpimagedock.c: made it capable of holding
	display-related dialogs (like GimpNavigationView) by connecting
	to the context's "display_changed" signal.

	* app/widgets/widgets-types.h: removed inclusion of
	"display/display-types.h".

	* app/widgets/gimpbufferview.c
	* app/widgets/gimpchannellistview.c
	* app/widgets/gimpcolormapeditor.c
	* app/widgets/gimpcomponentlistitem.c
	* app/widgets/gimpdocumentview.c
	* app/widgets/gimpdrawablelistitem.c
	* app/widgets/gimpdrawablelistview.c
	* app/widgets/gimpitemlistitem.c
	* app/widgets/gimpitemlistview.c
	* app/widgets/gimplayerlistitem.c
	* app/widgets/gimplayerlistview.c
	* app/widgets/gimppreview.c
	* app/widgets/gimpvectorslistview.c: warn about inclusion of
	"display/display-types.h".
2002-05-07 16:23:14 +00:00
Sven Neumann 8b53758d0b Moved slovenian translation to the stable branch where they should have
2002-05-07  Sven Neumann  <sven@gimp.org>

	Moved slovenian translation to the stable branch where they should
	have been added in the first place.

	* configure.in: removed sl from LINGUAS.

	* gimp.spec.in: updated a bit, still broken.
2002-05-07 14:51:31 +00:00
Michael Natterer 3ef8358e32 reverted my last change. I changed the function when porting everything to
2002-05-07  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage.c: reverted my last change. I changed the
	function when porting everything to URIs because it was documented
	to return NULL but didn't behave so.

	We need to add a new PDB function which returns the image's
	*display* name ("Untitled" for a NULL filename).
2002-05-07 12:23:40 +00:00
Michael Natterer ff76a6774b get the image's uri with gimp_image_get_uri(), not gimp_object_get_name(),
2002-05-07  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage.c (gimp_image_get_filename): get the image's
	uri with gimp_image_get_uri(), not gimp_object_get_name(), so it
	automatically becomes "Unnamed" if it's not set.
2002-05-07 11:45:07 +00:00
Sven Neumann f8de6fe33f removed (wrong) definition of LOCALEDIR.
2002-05-07  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpintl.h: removed (wrong) definition of LOCALEDIR.

	* libgimp/stdplugins-intl.h: fixed typo in domainname that broke i18n
	of plug-ins.

	* app/gui/Makefile.am: define LOCALEDIR.

	* app/gui/plug-in-menus.c
	* app/plug-in/plug-in.h
	* app/plug-in/plug-ins.[ch]: declared translation domain and help path
	as const strings.

	* plug-ins/print/print.c
	* plug-ins/print/print_gimp.h: minor cleanups.
2002-05-07 11:33:58 +00:00
David Monniaux 7ac0926d18 app/arch/i386/mmx/paint_funcs_mmx.S.m4: removed to reduce confusion
app/arch/i386/mmx/paint_funcs_mmx.S: fixed compilation bugs
2002-05-07 10:18:28 +00:00
Sven Neumann dc88ca5a4c use more stock labels.
2002-05-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/gimp_main_window.c: use more stock labels.

	* de.po: updated german translation.
2002-05-07 08:28:53 +00:00
Sven Neumann 9663a97b52 INSTALL depend on libgimpprint >= 4.2.0 for the print plug-in. You need to
2002-05-07  Sven Neumann  <sven@gimp.org>

	* INSTALL
	* configure.in: depend on libgimpprint >= 4.2.0 for the print plug-in.
	You need to --disable-print to build w/o print support.

	* plug-ins/Makefile.am: build print plug-in conditionally.

	* plug-ins/print/Makefile.am
	* plug-ins/print/gimp_color_window.c
	* plug-ins/print/gimp_main_window.c
	* plug-ins/print/print.c
	* plug-ins/print/print_gimp.h
	* plug-ins/print/print-image-gimp.c: the print plug-in from the
	gimpprint 4.2.1 release adapted to build inside the gimp tree and
	ported to gtk+-2.0. Not yet free of deprecated code.

	* plug-ins/print/README
	* plug-ins/print/RELNOTES
	* plug-ins/print/escputil-1.3.1.in
	* plug-ins/print/escputil.c
	* plug-ins/print/print-canon.c
	* plug-ins/print/print-dither.c
	* plug-ins/print/print-escp2.c
	* plug-ins/print/print-intl.h
	* plug-ins/print/print-pcl.c
	* plug-ins/print/print-printers.c
	* plug-ins/print/print-ps.c
	* plug-ins/print/print-util.c
	* plug-ins/print/print-weave.c
	* plug-ins/print/print.h
	* plug-ins/print/quickmatrix257.h
	* plug-ins/print/ran.367.179.h: removed.
2002-05-06 23:27:49 +00:00
Nate Summers a2f3a64035 correct a cut'n'paste mistake. The build actual works correctly now! I
* libgimpproxy/Makefile.am: correct a cut'n'paste mistake. The build
        actual works correctly now! I should have committed this fix a long
        time ago.
2002-05-06 17:29:19 +00:00
Sven Neumann 6747ea3f1f fixed typo.
2002-05-06  Sven Neumann  <sven@gimp.org>

	* autogen.sh: fixed typo.

	* app/config/gimpconfig-serialize.[ch] (gimp_config_serialize_value):
	allow to specify whether strings should be escaped.

	* app/config/gimprc.c (gimp_rc_query): don't escape string values.

	* app/config/test-config.c: changed accordingly.
2002-05-06 11:04:39 +00:00
Michael Natterer 8eef831956 fixed my last ChangeLog entry. 2002-05-06 10:04:13 +00:00
Nate Summers 9fe013a30e proxy-subst 2002-05-06 01:33:23 +00:00
Sven Neumann 384b9c4717 free the list of properties.
2002-05-06  Sven Neumann  <sven@gimp.org>

	* app/config/gimprc.c (gimp_rc_query): free the list of properties.
2002-05-05 23:02:15 +00:00
Sven Neumann 7f6b1d5593 app/config/gimpconfig-serialize.c app/config/gimpconfig-utils.[ch]
2002-05-06  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfig-serialize.c
	* app/config/gimpconfig-utils.[ch]
	* app/config/gimpconfig.[ch]
	* app/config/gimprc.[ch]: added a GimpRc implementation of
	gimp_config_duplicate() that also copies unknown tokens. Added new
	function gimp_rc_query().

	* app/config/test-config.c: added tests for gimp_rc_query().

	* app/config/Makefile.am: need to link test app against libappwidgets.
2002-05-05 22:11:34 +00:00
Michael Natterer c86ca2da6a app/Makefile.am removed...
2002-05-05  Michael Natterer  <mitch@gimp.org>

	* app/Makefile.am
	* app/gimphelp.[ch]: removed...

	* app/widgets/Makefile.am
	* app/widgets/gimphelp.[ch]: ...and added here.

	* app/widgets/widgets-enums.[ch]: added GimpHelpBrowserType here
	as registered enum. Added an evil hack with GimpCursorType so
	app/config/gimpguiconfig.h can include this file.

	* app/widgets/gimpcursor.c: added an assertion because of the
	changed GimpCursorType.

	* app/config/gimpguiconfig.[ch]: added a property for the help
	browser type.

	* app/gimprc.c
	* app/libgimp_glue.c
	* app/gui/preferences-dialog.c
	* tools/pdbgen/pdb/help.pdb

	* app/pdb/help_cmds.c: regenerated.

	Some nav_window cleanup before chopping:

	* app/nav_window.[ch]: removed the old preview code and use
	GimpNavigationPreviews only. Namespaceified all functions. Speak
	in terms of GimpDisplayShell, not GimpDisplay. Lots of internal
	cleanup.

	* app/gui/gui-types.h: removed NadiagtionDialog here...

	* app/display/display-types.h: ...and added it here.

	* app/display/gimpdisplayshell-callbacks.[ch]: added a callback
	for the navigation button and call nav_window_show_popup() from there.

	* app/display/gimpdisplayshell.c: free shell->nav_dialog
	unconditionally, connect to the new callback.

	* app/display/gimpdisplayshell-scale.c
	* app/display/gimpdisplayshell-scroll.c
	* app/gui/view-commands.c: changed accordingly.

	* app/widgets/gimppreview.c (gimp_preview_set_viewable): the
	assertion introduced recently was too tight, breaking
	GimpNavigationPreview. Changed it to do an "is a" check, not exact
	preview type matching.

	* app/widgets/gimpimagepreview.c: added quick-hack support for
	xres != yres.

	* app/widgets/gimpnavigationpreview.[ch]: made
	gimp_navigation_preview_grab_pointer() public so the nav_window
	can call it.

	Unrelated:

	* app/display/gimpdisplay.c: removed the gui/ dependency from this
	file by removing info_window stuff.

	* app/display/gimpdisplayshell.c (gimp_display_shell_flush): update
	the info_window here.

	* app/gui/dialogs-constructors.c (dialogs_indexed_palette_new): call
	gimp_dockable_set_context() like all other constructors.

	* app/undo.c
	* app/paint/gimppaintcore.h: some more include cleanup.
2002-05-05 19:17:41 +00:00
Sven Neumann 3c11b8e85d updated. fixed check for libgtkhtml-2.0.
2002-05-05  Sven Neumann  <sven@gimp.org>

	* NEWS: updated.
	* configure.in: fixed check for libgtkhtml-2.0.
2002-05-05 17:47:37 +00:00
Sven Neumann 5c6cf5491e bumped our version number to 1.3.6. Added check for libgtkhtml-2.0.
2002-05-05  Sven Neumann  <sven@gimp.org>

	* configure.in: bumped our version number to 1.3.6. Added check
	for libgtkhtml-2.0.

	* plug-ins/helpbrowser/Makefile.am
	* plug-ins/helpbrowser/helpbrowser.c: started to port the help browser
	to GtkHtml2. Not all features are working yet.

	* plug-ins/helpbrowser/back.xpm
	* plug-ins/helpbrowser/forward.xpm: removed.
2002-05-05 17:01:44 +00:00
Sven Neumann 257aaddc18 updated Bugs section. Mention gdkxft to avoid more reports about crashes
2002-05-04  Sven Neumann  <sven@gimp.org>

	* README: updated Bugs section. Mention gdkxft to avoid more
	reports about crashes caused by such lousy LD_PRELOAD hacks.
2002-05-04 00:20:31 +00:00
Sven Neumann 43c602dc95 app/arch/i386/mmx/detect_mmx.S applied a patch from iccii@hotmail.com that
2002-05-04  Sven Neumann  <sven@gimp.org>

	* app/arch/i386/mmx/detect_mmx.S
	* app/arch/i386/mmx/paint_funcs_mmx.S: applied a patch from
	iccii@hotmail.com that promises to fix build on mingw (bug #80681).

	* app/config/gimpconfig-serialize.c
	* app/config/gimpconfig-utils.[ch]: moved value compare function to
	gimpconfig-utils.

	* app/config/gimpconfig.[ch]: added duplicate and compare functions
	to GimpConfigInterface so derived interfaces can override them.

	* app/tools/gimptexttool.c: fixed tool cursor.
2002-05-03 23:48:03 +00:00
Nick Lamb /GIMP a2abbe0d78 Overbright alpha bug #77283 fixed 2002-05-03 22:32:12 +00:00
Sven Neumann 3258c5f189 plug-ins/common/borderaverage.c plug-ins/common/convmatrix.c
2002-05-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/borderaverage.c
	* plug-ins/common/convmatrix.c
	* plug-ins/common/nlfilt.c
	* plug-ins/common/papertile.c
	* plug-ins/common/vpropagate.c: applied a patch from iccii@hotmail.com
        that adds missing calls to gimp_tile_cache_ntiles() to speed up the
        plug-ins considerably (bug #78358).

	* plug-ins/common/colorify.c: fix for drawables with alpha from
	iccii@hotmail.com.
2002-05-03 16:12:40 +00:00
Sven Neumann 53ff0fe38e removed another warning.
2002-05-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/tools/tool-safe-mode.c: removed another warning.
2002-05-03 14:02:23 +00:00
Michael Natterer a74a8997b4 devel-docs/Makefile.am new file documenting the core's include policy.
2002-05-03  Michael Natterer  <mitch@gimp.org>

	* devel-docs/Makefile.am
	* devel-docs/includes.txt: new file documenting the core's
	include policy.

	* HACKING: mention it here.

	* libgimptool/gimptooltypes.h: removed GimpToolOptions here.

	* app/core/core-types.h: and added it here. This is a temp hack
	needed because GimpToolInfo needs to know the GimpToolOptions
	type.

	* libgimpproxy/gimpproxytypes.h: regenerated.

	* libgimptool/gimptoolmodule.h: don't include gimptooltypes.h here...
	* libgimptool/gimptoolmodule.c: ...but here.

	* app/config/gimpconfig-params.c: include "libgimpbase/gimpbase.h"
	entirely, not single files from it.

	* app/core/gimp.c
	* app/core/gimpcontext.c
	* app/core/gimpcoreconfig.c
	* app/core/gimpdatafactory.c
	* app/core/gimpdocuments.c
	* app/core/gimpdrawable-blend.c
	* app/core/gimpdrawable-bucket-fill.c
	* app/core/gimpdrawable-offset.c
	* app/core/gimpdrawable-transform.c
	* app/core/gimpdrawable.c
	* app/core/gimpedit.c
	* app/core/gimpimage-convert.c
	* app/core/gimpimage-crop.c
	* app/core/gimpimage-duplicate.c
	* app/core/gimpimage-guides.c
	* app/core/gimpimage-mask.c
	* app/core/gimpimage-merge.c
	* app/core/gimpimage-new.c
	* app/core/gimpimage-projection.c
	* app/core/gimpimage-qmask.c
	* app/core/gimpimage-resize.c
	* app/core/gimpimage-scale.c
	* app/core/gimpimage.c
	* app/core/gimpitem.c
	* app/core/gimpmodules.c
	* app/core/gimppaintinfo.c
	* app/core/gimpparasite.c
	* app/core/gimppreviewcache.c
	* app/core/gimptoolinfo.c
	* app/core/gimpunit.c: include "core-types.h" and no other types file.

	* app/display/gimpdisplay.c
	* app/display/gimpdisplayshell-callbacks.c
	* app/display/gimpdisplayshell.c: include "tools/tools-types.h"
	instead of "libgimptool/gimptooltypes.h", warn about inclusion
	on "gui/gui-types.h"

	* app/file/file-open.c
	* app/file/file-save.c: don't include "libgimptool/gimptooltypes.h".

	* app/gui/about-dialog.c
	* app/gui/brush-select.c
	* app/gui/brushes-commands.c
	* app/gui/color-select.c
	* app/gui/data-commands.c
	* app/gui/device-status-dialog.c
	* app/gui/dialogs.c
	* app/gui/gradients-commands.c
	* app/gui/help-commands.c
	* app/gui/info-window.c
	* app/gui/palettes-commands.c
	* app/gui/patterns-commands.c
	* app/gui/resize-dialog.c
	* app/gui/tips-dialog.c
	* app/gui/tool-options-dialog.c: include "gui-types.h" and no
	other types file.

	* app/paint/gimpairbrush.c
	* app/paint/gimpclone.c
	* app/paint/gimpconvolve.c
	* app/paint/gimpdodgeburn.c
	* app/paint/gimperaser.c
	* app/paint/gimppaintbrush.c
	* app/paint/gimppaintcore-stroke.c
	* app/paint/gimppaintcore.c
	* app/paint/gimppaintoptions.c
	* app/paint/gimppencil.c
	* app/paint/gimpsmudge.c
	* app/paint/paint.c: include "paint-types.h" and no other types file.

	* app/pdb/pdb-types.h: don't include "libgimptool/gimptooltypes.h".

	* app/plug-in/plug-in-progress.c: warn about inclusion of
	"display/display-types.h"

	* app/tools/tools-types.h: include "libgimptool/gimptooltypes.h".

	* app/tools/gimpairbrushtool.c
	* app/tools/gimpbezierselecttool.c
	* app/tools/gimpblendtool.c
	* app/tools/gimpbrightnesscontrasttool.c
	* app/tools/gimpbucketfilltool.c
	* app/tools/gimpbycolorselecttool.c
	* app/tools/gimpclonetool.c
	* app/tools/gimpcolorbalancetool.c
	* app/tools/gimpcolorpickertool.c
	* app/tools/gimpconvolvetool.c
	* app/tools/gimpcroptool.c
	* app/tools/gimpcurvestool.c
	* app/tools/gimpdodgeburntool.c
	* app/tools/gimpdrawtool.c
	* app/tools/gimpeditselectiontool.c
	* app/tools/gimpellipseselecttool.c
	* app/tools/gimperasertool.c
	* app/tools/gimpfliptool.c
	* app/tools/gimpfreeselecttool.c
	* app/tools/gimpfuzzyselecttool.c
	* app/tools/gimphistogramtool.c
	* app/tools/gimphuesaturationtool.c
	* app/tools/gimpinktool.c
	* app/tools/gimplevelstool.c
	* app/tools/gimpmagnifytool.c
	* app/tools/gimpmeasuretool.c
	* app/tools/gimpmovetool.c
	* app/tools/gimppaintbrushtool.c
	* app/tools/gimppainttool.c
	* app/tools/gimppathtool.c
	* app/tools/gimppenciltool.c
	* app/tools/gimpperspectivetool.c
	* app/tools/gimpposterizetool.c
	* app/tools/gimprectselecttool.c
	* app/tools/gimprotatetool.c
	* app/tools/gimpscaletool.c
	* app/tools/gimpselectiontool.c
	* app/tools/gimpsheartool.c
	* app/tools/gimpsmudgetool.c
	* app/tools/gimptexttool.c
	* app/tools/gimpthresholdtool.c
	* app/tools/gimptoolcontrol.c
	* app/tools/gimptoolcontrol.h
	* app/tools/gimptransformtool.c
	* app/tools/gimpvectortool.c
	* app/tools/tools.c: include "tools-types.h" and no other types file,
	warn about inclusion of "gui/gui-types.h".

	* app/widgets/gimpcolorpanel.c
	* app/widgets/gimptoolbox-color-area.c: warn about inclusion of
	"gui/gui-types.h".

	* app/xcf/xcf-load.c
	* app/xcf/xcf.c: don't include "libgimptool/gimptooltypes.h".

	Split tool-safe-mode up in two files, one including libgimpproxy,
	one libgimp.

	* plug-ins/tools/Makefile.am
	* plug-ins/tools/tool-safe-mode-plug-in.[ch]: new files including
	libgimp/ stuff only.

	* plug-ins/tools/tool-safe-mode.[ch]: include libgimpproxy/ and
	libgimptool/ but don't include libgimp/ because of conflicting
	declarations.

	Unrelated:

	* app/tools/gimpclonetool.c: create the clone core so we don't crash.

	* app/gui/file-open-dialog.c: changed the way we create previews
	so that only out-of-date previews are created on a click in the
	preview area. Unconditional creation can still be forced by
	<Ctrl>+click. Changed the tooltip to document this.
2002-05-03 12:45:22 +00:00
Sven Neumann 84e1810adc app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch]
2002-05-03  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpairbrushtool.[ch]
	* app/tools/gimpbezierselecttool.[ch]
	* app/tools/gimpblendtool.[ch]
	* app/tools/gimpbrightnesscontrasttool.[ch]
	* app/tools/gimpbucketfilltool[.ch]
	* app/tools/gimpbycolorselecttool[.ch]
	* app/tools/gimpclonetool[.ch]
	* app/tools/gimpcolorbalancetool[.ch]
	* app/tools/gimpcolorpickertool[.ch]
	* app/tools/gimpconvolvetool[.ch]
	* app/tools/gimpcroptool[.ch]
	* app/tools/gimpcurvestool[.ch]
	* app/tools/gimpdodgeburntool[.ch]
	* app/tools/gimpeditselectiontool.c
	* app/tools/gimpellipseselecttool[.ch]
	* app/tools/gimperasertool[.ch]
	* app/tools/gimpfliptool[.ch]
	* app/tools/gimpfreeselecttool[.ch]
	* app/tools/gimpfuzzyselecttool[.ch]
	* app/tools/gimphistogramtool[.ch]
	* app/tools/gimphuesaturationtool[.ch]
	* app/tools/gimpinktool[.ch]
	* app/tools/gimpiscissorstool[.ch]
	* app/tools/gimplevelstool[.ch]
	* app/tools/gimpmagnifytool[.ch]
	* app/tools/gimpmeasuretool[.ch]
	* app/tools/gimpmovetool[.ch]
	* app/tools/gimppaintbrushtool[.ch]
	* app/tools/gimppainttool.c
	* app/tools/gimppathtool[.ch]
	* app/tools/gimppenciltool[.ch]
	* app/tools/gimpperspectivetool[.ch]
	* app/tools/gimpposterizetool[.ch]
	* app/tools/gimprectselecttool[.ch]
	* app/tools/gimprotatetool[.ch]
	* app/tools/gimpscaletool[.ch]
	* app/tools/gimpselectiontool.c
	* app/tools/gimpsheartool[.ch]
	* app/tools/gimpsmudgetool[.ch]
	* app/tools/gimptexttool[.ch]
	* app/tools/gimpthresholdtool[.ch]
	* app/tools/gimptool.c
	* app/tools/gimptoolcontrol.h
	* app/tools/gimptoolmodule[.ch]
	* app/tools/gimptransformtool.c
	* app/tools/gimpvectortool[.ch]
	* app/tools/path_tool.c
	* app/tools/tool_manager[.ch]
	* app/tools/tools.c
	* libgimptool/gimptool.c
	* libgimptool/gimptoolcontrol.h
	* libgimptool/gimptoolmodule.h: removed tons of warnings. Do we need
	to add -Werror to the CFLAGS to avoid such a mess in the future ?!
	Also had to enforce the GIMP coding style in lots of places :-(

	* libgimp/gimppixelrgn.c: got sick and tired of debugging plug-ins,
	so I've added checks for most parameters passed to the GimpPixelRgn
	functions. This will slow down plug-in execution a little bit but
	should help to find bugs early.
2002-05-03 11:31:08 +00:00
Nate Summers 79755fa6a8 app/core/core-types.h moved GimpToolInfo back into the core.
* app/core/core-types.h
        * libgimptool/gimptooltypes.h: moved GimpToolInfo back into the core.

        * libgimptool/gimptoolcontrol.h
        * app/tools/gimptoolcontrol.c: got rid of gimp_tool_control_new

        * libgimptool/gimptool.c (gimp_tool_init): create the GimpToolControl
        here instead of in the descendant classes

        * app/tools/gimpairbrushtool.c
        * app/tools/gimpbezierselecttool.c
        * app/tools/gimpblendtool.c
        * app/tools/gimpbucketfilltool.c
        * app/tools/gimpbycolorselecttool.c
        * app/tools/gimpclonetool.c
        * app/tools/gimpcolorbalancetool.c
        * app/tools/gimpcolorpickertool.c
        * app/tools/gimpconvolvetool.c
        * app/tools/gimpcroptool.c
        * app/tools/gimpcurvestool.c
        * app/tools/gimpdodgeburntool.c
        * app/tools/gimpeditselectiontool.c
        * app/tools/gimpellipseselecttool.c
        * app/tools/gimperasertool.c
        * app/tools/gimpfliptool.c
        * app/tools/gimpfreeselecttool.c
        * app/tools/gimpfuzzyselecttool.c
        * app/tools/gimphistogramtool.c
        * app/tools/gimphuesaturationtool.c
        * app/tools/gimpinktool.c
        * app/tools/gimpiscissorstool.c
        * app/tools/gimplevelstool.c
        * app/tools/gimpmagnifytool.c
        * app/tools/gimpmeasuretool.c
        * app/tools/gimpmovetool.c
        * app/tools/gimppaintbrushtool.c
        * app/tools/gimppathtool.c
        * app/tools/gimppenciltool.c
        * app/tools/gimpperspectivetool.c
        * app/tools/gimprectselecttool.c
        * app/tools/gimprotatetool.c
        * app/tools/gimpscaletool.c
        * app/tools/gimpsheartool.c
        * app/tools/gimpsmudgetool.c
        * app/tools/gimptexttool.c
        * app/tools/gimpvectortool.c
        * plug-ins/tools/tool-safe-mode.c: changed accordingly

        * libgimpproxy/gimpproxytypes.h: autogenerated
2002-05-02 21:05:23 +00:00
Sven Neumann bbbc034793 fixed typo.
2002-05-02  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.c (gimp_imagefile_save_thumbnail): fixed
	typo.

	* plug-ins/rcm/rcm_misc.c (rcm_reduce_image): merged fix for bug
	#80561 from stable branch.
2002-05-02 17:23:54 +00:00
Michael Natterer 22925df26f fixed communication with the SIOD interpreter:
2002-05-02  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-console.c: fixed communication
	with the SIOD interpreter:

	- set the GError variable to NULL before using it.
	- set the GIOChannel used to read SIOD's output to binary mode.
2002-05-02 16:29:42 +00:00
Sven Neumann d7e5b9d8d3 added some assertions, cleaned up internals.
2002-04-29  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.[ch]: added some assertions, cleaned up
	internals.

	* app/widgets/gimpdocumentview.c: use the preview size instead of a
	hardcoded thumbnail size. Should we use the prefs value instead?
2002-04-30 01:40:44 +00:00
Sven Neumann ef30d535ca adapt the thumbnail size to the image size so that thumbs of small images
2002-04-29  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.c: adapt the thumbnail size to the image size
	so that thumbs of small images don't end up in the "large" directory.
2002-04-29 20:27:54 +00:00
Sven Neumann 84e768d0a2 accept any size so we don't depend on the values of GimpThumbnailSize. We
2002-04-29  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.[ch]: accept any size so we don't depend on
	the values of GimpThumbnailSize. We might want to allow other thumbnail
	sizes than only 0, 128 or 256.
2002-04-29 19:59:02 +00:00
Sven Neumann 9b6cde9da0 added new enum GimpThumbnailSize.
2002-04-29  Sven Neumann  <sven@gimp.org>

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

	* app/gimprc.c
	* app/config/gimpcoreconfig.[ch]
	* app/core/gimpcoreconfig.[ch]: replaced old gimprc value
	write_thumbnails with thumbnail_size.

	* app/core/gimpimagefile.[ch]: allow to specify a thumbnail size.

	* app/core/gimpdocuments.c
	* app/file/file-open.c
	* app/file/file-save.c
	* app/gui/preferences-dialog.c
	* app/widgets/gimpdocumentview.c: changed accordingly.

	* app/gui/file-open-dialog.c: create the preview according to the
	users choice of thumbnail size. Doesn't update on changes yet.
2002-04-29 19:41:45 +00:00
Sven Neumann 927a100584 save empty thumbnails to ~/.thumbnails/fail/gimp-1.3 if we cannot create a
2002-04-29  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.[ch]: save empty thumbnails to
	~/.thumbnails/fail/gimp-1.3 if we cannot create a thumbnail. Added
	new state GIMP_IMAGEFILE_STATE_THUMBNAIL_EXISTS to indicate that a
	thumbnail was found but is not yet loaded. Removed unused thumb_mtime
	from GimpImagefile struct and simplified some parts of the code.

	* app/gui/file-open-dialog.c: cosmetic changes.
2002-04-29 17:20:26 +00:00
Michael Natterer 63ca433dce added "gchar *name_changed_signal" to GimpViewableClass which defaults to
2002-04-29  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpviewable.[ch]: added "gchar *name_changed_signal"
	to GimpViewableClass which defaults to "name_changed".

	* app/widgets/gimplistitem.c
	* app/widgets/gimpmenuitem.c: connect to
	viewable_class->name_changed_signal instead of just
	"name_changed". Fixed possible UI inconsistency where the previous
	viewable's tooltip would have been displayed.

	* app/core/gimpimagefile.[ch]: set name_changed_signal to
	"info_changed" so views can update their tooltips correctly.
	Merged the separate image_state and thumb_state states into one
	state variable and extended the state enum. Added description
	strings for all states. Show the file size for all files, not only
	for those with a thumbnail. Enabled display of outdated
	thumbnails.

	* app/gui/file-open-dialog.c: some changes because
	gimp_imagefile_get_description() returns 3 instead of 2 lines of
	text now.

	* app/widgets/gimpcontainerview-utils.c: show the imagefile's
	description in the tooltip.

	* app/gui/menus.c
	* app/gui/documents-commands.[ch]
	* app/widgets/gimpdocumentview.c: added functions to remove
	"dangling" document history entries. Updated the context menu so
	all functions can be accessed through it.
2002-04-28 23:10:42 +00:00
Sven Neumann 05581ddf78 app/tools/gimpairbrushtool.c app/tools/gimpblendtool.c
2002-04-28  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpairbrushtool.c
	* app/tools/gimpblendtool.c
	* app/tools/gimpbucketfilltool.c
	* app/tools/gimpcolorpickertool.c
	* app/tools/gimpconvolvetool.c
	* app/tools/gimpcroptool.c
	* app/tools/gimpdodgeburntool.c
	* app/tools/gimperasertool.c
	* app/tools/gimpinktool.c
	* app/tools/gimpmeasuretool.c
	* app/tools/gimpsmudgetool.c
	* app/tools/gimptexttool.c
	* app/tools/paint_options.c
	* app/tools/selection_options.c
	* app/tools/transform_options.c: in preparation of a more generic tool
	options framework: use the options value, not the default value when
	setting up the tool options UI. Doesn't make any difference since both
	are initialized to the same value, but reduces usage of the ugly foo_d
	variables.

	* app/tools/gimpmagnifytool.c: don't change the resize_windows_on_zoom
	gimprc value in response to changes in the tool options. Only use it
	as default value when resetting the tool options.
2002-04-28 14:35:01 +00:00
Sven Neumann b94fc9f717 invalidate layer previews so we don't crash when an image preview is
2002-04-28  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-convert.c (gimp_image_convert): invalidate layer
	previews so we don't crash when an image preview is generated after
	converting the image from RGB to GRAY.

	* app/core/gimpimage.c (gimp_image_get_new_preview): added some
	assertions to make it easier to find similar problems in the future.
2002-04-28 13:49:55 +00:00
Sven Neumann f46e1a787d typo 2002-04-24 11:17:48 +00:00
Sven Neumann bfd7861fba plug-ins/gfig/gfig.c don't use GDK_MOTION_NOTIFY in as an event mask.
2002-04-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig.c
	* plug-ins/imagemap/imap_preview.c: don't use GDK_MOTION_NOTIFY in
	as an event mask.
2002-04-24 11:17:12 +00:00
Nate Summers 9270a4b5ad chewing gum 2002-04-23 07:02:12 +00:00
Nate Summers 846d5efaf3 bugzbgone 2002-04-23 06:58:18 +00:00
Michael Natterer ad5e9dcdf6 display the tools' shortcuts in the tool buttons' tooltips (fixes #60273).
2002-04-22  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptoolbox.c: display the tools' shortcuts in the
	tool buttons' tooltips (fixes #60273).
2002-04-22 14:13:06 +00:00
Nate Summers bf4b03cca0 *'s 2002-04-21 22:33:55 +00:00
Nate Summers 477932646c I'm the changelog and I'm ok! 2002-04-21 07:48:22 +00:00
Michael Natterer 095314f01d made gimp_imagefile_save_thumbnail() return a gboolean indicating success.
2002-04-19  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimagefile.[ch]: made gimp_imagefile_save_thumbnail()
	return a gboolean indicating success.

	* app/file/file-save.c
	* tools/pdbgen/pdb/fileops.pdb: use gimp_imagefile_save_thumbnail()
	to save thumbnails.

	* app/file/file-utils.[ch]: removed the .xvpics thumbnail saving code.

	* app/pdb/fileops_cmds.c: regenerated.
2002-04-19 17:15:39 +00:00
Michael Natterer 84ee76d5ee all functions return the opened image and the pdb status plus a GError
2002-04-19  Michael Natterer  <mitch@gimp.org>

	* app/file/file-open.[ch]: all functions return the opened image
	and the pdb status plus a GError now. Removed all g_message()
	calls from file_open_image(). Instead, display all error messages
	in file_open_with_proc_and_display() if it got no error return
	location passed.

	* app/app_procs.c
	* app/core/gimpimagefile.c
	* app/gui/file-commands.c
	* app/gui/file-open-dialog.c
	* app/widgets/gimpdnd.c
	* app/widgets/gimpdocumentview.c: changed accordingly.

	* app/gui/file-open-dialog.c: only treat the "entered_filename" as
	URI if it contains "://".
2002-04-19 14:09:53 +00:00
Michael Natterer b96f184b0b speak in terms of "uri", not "filename". Return the created imagefile.
2002-04-19  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdocuments.[ch] (gimp_documents_add): speak in terms
	of "uri", not "filename". Return the created imagefile.

	* app/core/gimpimagefile.[ch]: factored out private function
	gimp_imagefile_save_png_thumb() and call it from
	gimp_imagefile_create_thumbnail().
	Added public function gimp_imagefile_save_thumbnail() which takes
	an imagefile and an image.

	* app/file/file-open.c: create thumbnails for all images opened
	interactively using gimp_imagefile_save_thumbnail().

	* app/xcf/xcf-load.c (xcf_load_image): set the filename with
	gimp_image_set_filename() so it gets converted to an URI as for
	external plug-ins.
2002-04-19 12:05:47 +00:00
Michael Natterer cb978d947c oops, thumbnails were created in the wrong directory since my last commit.
2002-04-18  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimagefile.c: oops, thumbnails were created in the
	wrong directory since my last commit.
2002-04-18 19:26:48 +00:00
Michael Natterer 7e53bff1d0 added a progress bar to the preview frame to show the progress when
2002-04-18  Michael Natterer  <mitch@gimp.org>

	* app/gui/file-open-dialog.c: added a progress bar to the preview
	frame to show the progress when creating many previews. Also added
	some more ugly static variables...
2002-04-18 18:55:31 +00:00
Michael Natterer 9c400c406e create the thumbnail subdir strings only once in class_init, minor stuff.
2002-04-18  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimagefile.[ch]: create the thumbnail subdir strings
	only once in class_init, minor stuff.

	* app/widgets/gimppreview.c: set widget_class->activate_signal to
	the preview's "clicked" id so we can create mnemonics for it.

	* app/gui/file-open-dialog.c: make the whole preview area clickable,
	block some signals of the "Preview" button so it behaves like
	the tree view headers.
2002-04-18 14:14:50 +00:00
Michael Natterer 31c19e8d1f save the number of layers in the thumbnail and show it in the description.
2002-04-18  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimagefile.[ch]: save the number of layers in the
	thumbnail and show it in the description.

	* app/gui/file-dialog-utils.[ch]: added file_dialog_new() which
	contains a lot of factored out code from file-open and file-save.

	* app/gui/file-open-dialog.c
	* app/gui/file-save-dialog.c: use file_dialog_new(), reduce use of
	global variables, added utility functions to reduce code
	duplication, cleanup.

	* app/gui/file-open-dialog.c: use a temporary imagefile to create
	previews so the dialog's preview can show the progress when
	creating many thumbnails.

2002-04-18  Michael Natterer  <mitch@gimp.org>

	* POTFILES.in: added app/gui/file-dialog-utils.c
2002-04-18 01:18:24 +00:00
Michael Natterer c811d2bb94 shouldn't free the filename before using it :)
2002-04-17  Michael Natterer  <mitch@gimp.org>

	* app/file/file-save.c: shouldn't free the filename before using it :)

	* app/core/gimpimagefile.c: emit the "info_changed" signal more
	often, assemble the description string differently.

	* app/gui/file-open-dialog.c: moved the preview into a frame right
	of the file selection box, lots of gui and other cleanup...
2002-04-17 13:48:22 +00:00
Sven Neumann 48fb6b37ed app/core/gimpimagefile.[ch] moved code to generate a literate description
2002-04-17  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.[ch]
	* app/gui/file-open-dialog.c: moved code to generate a literate
	description of the image to the GimpImagefile object.
2002-04-16 23:59:53 +00:00
Michael Natterer 4aa4803dd0 register GimpImageType.
2002-04-17  Michael Natterer  <mitch@gimp.org>

	* app/core/core-enums.[ch]: register GimpImageType.

	* app/core/gimpimagefile.[ch]: read and write more image properties
	in thumbnails.

	* app/gui/file-open-dialog.c: changed accordingly.

	* app/widgets/gimpdialogfactory.c: disabled debugging output.

	* app/widgets/gimpdocumentview.c: changed the "Refresh" button to
	regenerate the preview on click and reload all previews on
	shift+click.

	* tools/pdbgen/enums.pl: regenerated.
2002-04-16 23:03:23 +00:00
Sven Neumann 8dfccd03bb create the thumbnail directories if they don't exist.
2002-04-16  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.c (gimp_imagefile_png_thumb_path): create
	the thumbnail directories if they don't exist.
	(gimp_imagefile_png_thumb_name): reimplemented w/o snprintf().

	* app/pdb/color_cmds.c
	* tools/pdbgen/pdb/color.pdb: merged fix for bug #78877 from stable
	branch.
2002-04-16 21:36:04 +00:00
Michael Natterer 99e575d17d fixed temp_buf_copy() and temp_buf_to_[color|gray]() to (1) not crash and
2002-04-16  Michael Natterer  <mitch@gimp.org>

	* app/base/temp-buf.c: fixed temp_buf_copy() and
	temp_buf_to_[color|gray]() to (1) not crash and (2) to assume the
	correct pixelformat. Bugs were never noticed because the code was
	never used until today...

	* app/core/gimpviewable.c (gimp_viewable_get_new_preview_pixbuf):
	use temp_buf_copy() to convert GRAY* TempBufs to RGB* before
	creating the pixbuf.

	* app/app_procs.c: don't try to open command line images if the
	filename could not be converted to an URI.

	* app/file/file-open.c
	* app/file/file-save.c: use g_file_test() instead of stat().

	* app/file/file-utils.[ch]: cleanup, changed
	file_utils_filename_to_uri() to take a list of procs, not a Gimp
	pointer.

	* app/core/gimpimage.c: changed accordingly.

	* app/core/gimpimagefile.[ch]: implemented thumbnail saving
	following the thumbnail standard v0.5 (the implementation is not
	yet fully standard compliant).

	* app/gui/file-open-dialog.c: use the new thubmnail functions and
	removed all .xvpics code. Not finished yet...

	* app/core/gimpdocuments.c
	* app/widgets/gimpdocumentview.c: changed accordingly.

	* tools/pdbgen/pdb/fileops.pdb (file_save_thumbnail): set "success"
	correctly.

	* app/pdb/fileops_cmds.c: regenerated.
2002-04-16 20:25:27 +00:00
Sven Neumann 3da9502590 don't draw anything if an idle update is pending.
2002-04-16  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimppreview.c (gimp_preview_expose_event): don't draw
	anything if an idle update is pending.

	* libgimpwidgets/gimpcolorarea.c (gimp_color_area_expose): reordered
	conditions so that the one that is most expensive to check comes last.
2002-04-16 17:52:15 +00:00
Sven Neumann 21fb2943b5 serialize doubles and floats using the locale independent
2002-04-15  Sven Neumann  <sven@gimp.org>

        * app/config/gimpconfig-serialize.c: serialize doubles and floats
        using the locale independent g_ascii_formatd().
2002-04-15 09:40:08 +00:00
Michael Natterer 2a8bab17de serialize the unit factor with g_ascii_formatd() so it is locale
2002-04-14  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpunits.c: serialize the unit factor with
	g_ascii_formatd() so it is locale independent.
2002-04-14 21:26:42 +00:00
Michael Natterer 65cfa8db19 added utility functions file_utils_uri_to_utf8_basename() and
2002-04-14  Michael Natterer  <mitch@gimp.org>

	* app/file/file-utils.[ch]: added utility functions
	file_utils_uri_to_utf8_basename() and
	file_utils_uri_to_utf8_filename().

	* app/nav_window.c
	* app/undo_history.c
	* app/display/gimpdisplayshell.c
	* app/gui/info-window.c
	* app/gui/menus.c
	* app/gui/palette-import-dialog.c
	* app/tools/gimpbycolorselecttool.c
	* app/widgets/gimpcontainerview-utils.c: use the new functions.
2002-04-14 17:28:58 +00:00
Michael Natterer 5e51cebc15 Use UTF-8 encoded escaped URIs for GimpImage and GimpImageFile.
2002-04-14  Michael Natterer  <mitch@gimp.org>

	Use UTF-8 encoded escaped URIs for GimpImage and GimpImageFile.

	* app/file/file-open.[ch]
	* app/file/file-save.[ch]
	* app/file/file-utils.[ch]: port everything to using URIs, removed
	file_open_absolute_filename() and added file_utils_filename_to_uri()
	instead.

	* app/core/gimpimage.[ch]: added gimp_image_[get|set]_uri() which
	works like the old gimp_image_[get|set]_filename().
	Changed gimp_image_[get|set]_filename() to call uri conversion
	functions.

	* app/app_procs.c: removed lots of code and use the new uri
	functions to open images passed on the command line.

	* app/gui/file-open-dialog.c
	* app/gui/file-save-dialog.c: changed accordingly.

	* app/nav_window.c
	* app/undo_history.c
	* app/display/gimpdisplayshell.c
	* app/gui/info-window.c
	* app/gui/palette-import-dialog.c
	* app/tools/gimpbycolorselecttool.c
	* app/widgets/gimpcontainerview-utils.c:
	s/gimp_image_get_filename()/gimp_image_get_uri()/g. Need to add
	a utility function which returns the basename in unescaped UTF-8.

	* app/gui/file-commands.c
	* app/widgets/gimpdocumentview.c: use "uri", not "filename" as
	variable name where appropriate.

	* app/gui/menus.c: some broken code for the "Open Recent" items,
	will be fixed soon...

	* app/widgets/gimpdnd.c: evil (!!!) hackery to convert dropped
	filenames to uris.

	* tools/pdbgen/pdb/fileops.pdb: changed accordingly. Clarified
	the meaning of the "raw_filename" parameter.

	* tools/pdbgen/pdb/message.pdb: use g_message("%s", message),
	*not* g_message(message).

	* app/pdb/fileops_cmds.c
	* app/pdb/message_cmds.c
	* libgimp/gimpfileops_pdb.c: regenerated.
2002-04-14 14:38:55 +00:00
Michael Natterer 6d215cae8d removed some #if 0'ed stuff.
2002-04-14  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp.c: removed some #if 0'ed stuff.

	* app/gui/edit-commands.c (edit_copy_cmd_callback): call
	gdisplays_flush() so the menus are updated correctly.

	* app/widgets/gimpitemfactory.c (gimp_item_factory_set_color):
	pack the original menu item label with TRUE, TRUE into the created
	hbox so it's accel. label is visible.
2002-04-14 12:02:29 +00:00
Michael Natterer adad0f47e5 Well, sometimes the most obvious solution is not the first one...
2002-04-12  Michael Natterer  <mitch@gimp.org>

	Well, sometimes the most obvious solution is not the first one...

	* app/gimphelp.[ch]: removed _gimp_standard_help_func().

	* app/libgimp_glue.c (gimp_standard_help_func): call gimp_help()
	directly.
2002-04-12 18:26:43 +00:00
Michael Natterer b46ab216e6 removed usage of "the_gimp" by passing around more "Gimp" pointers.
2002-04-12  Michael Natterer  <mitch@gimp.org>

	* app/gimphelp.[ch]: removed usage of "the_gimp" by passing around
	more "Gimp" pointers. Renamed gimp_standard_help_func() to
	_gimp_standard_help_func() and declare it in the header.  Don't
	include "app_procs.h".

	* app/libgimp_glue.[ch]: added gimp_standard_help_func() here.
	Call _gimp_standard_help_func (the_gimp, ...) like all other
	wrappers in this file do. I know this is ugly but better let's
	have all uglyness in one place (here) :-)

	* app/widgets/gimpitemfactory.[ch]: added a "Gimp" member to the
	GimpItemFactory struct. Pass it to gimp_help(),

	* app/gui/menus.c: pass a Gimp to gimp_item_factory_new(), removed
	useless inclusion of "gimphelp.h".

	* tools/pdbgen/pdb/help.pdb: pass a Gimp to gimp_help()

	* app/pdb/help_cmds.c: regenerated.

	* app/gui/tips-dialog.c: removed gtk_quit_add_destroy() here too
	because the tips dialog is created by a dialog factory which takes
	care of dialog destruction.
2002-04-12 18:14:13 +00:00
Sven Neumann d0429f270a app/gui/file-open-dialog.c merged fix for bug #51781 from stable branch:
2002-04-12  Sven Neumann  <sven@gimp.org>

	* app/gui/file-open-dialog.c
	* app/gui/file-save-dialog.c: merged fix for bug #51781 from stable
	branch: don't gtk_quit_add_destroy() the fileload and filesave widgets.
2002-04-12 17:49:39 +00:00
Sven Neumann 0b2fa49e73 fixed uninstall target (bug #78536).
2002-04-12  Sven Neumann  <sven@gimp.org>

	* data/misc/Makefile.am: fixed uninstall target (bug #78536).
2002-04-12 15:44:13 +00:00
Sven Neumann ffb7a3d59d plug-ins/common/gtm.c plug-ins/common/illusion.c plug-ins/common/ps.c
2002-04-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gtm.c
	* plug-ins/common/illusion.c
	* plug-ins/common/ps.c
	* plug-ins/common/sparkle.c
	* plug-ins/common/wind.c
	* plug-ins/maze/maze_face.c
	* plug-ins/sel2path/sel2path.c
	* plug-ins/sel2path/sel2path_adv_dialog.c: applied a patch from
	<iccii@hotmail.com> that adds calls to gimp_help_free() even though I
	think that omitting gimp_help_free() is tolerable lazyness (#76984).
2002-04-12 14:49:00 +00:00
Michael Natterer 1a259d681a reordered some lines, no logic changed.
2002-04-12  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-crop.c: reordered some lines, no logic
	changed.

	* app/core/gimplayer.[ch]: made gimp_layer_pick_correlate()
	return a gboolean, not gint.

	* app/display/gimpdisplayshell.c
	* app/gui/layers-commands.[ch]
	* app/gui/menus.c: added "<Image>/Layers/Crop Layer" which resizes
	the active layer to the current selection's bounds, just as
	"<Image>/Image/Crop Image"
2002-04-12 12:29:51 +00:00
Zbigniew Chyla d108860d3a Marked some strings for translation.
2002-04-12  Zbigniew Chyla  <cyba@gnome.pl>

	* app/gui/dialogs-constructors.c: Marked some strings for translation.
2002-04-12 11:54:36 +00:00
Sven Neumann 8c3ea9955f merged fix for bug #75667 from stable branch.
2002-04-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/ps.c: merged fix for bug #75667 from stable branch.

	* plug-ins/rcm/rcm_dialog.c
	* plug-ins/rcm/rcm_misc.c: merged fix for bug #67018 from stable
	branch.

	* themes/Default/gtkrc: removed settings for tooltips color since
	GTK+-2.0 sets a reasonable default. Added a line to allow to change
	menu accelerators.
2002-04-11 10:58:19 +00:00
Manish Singh 57aaac8d9c merges from gimp-1-2 branch
2002-04-10  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/url.c: merges from gimp-1-2 branch
2002-04-10 23:10:37 +00:00
Sven Neumann 42c504b074 include libart.h instead of a selection of libart headers.
2002-04-06  Sven Neumann  <sven@gimp.org>

	* app/core/gimpscanconvert.c: include libart.h instead of a selection
	of libart headers.
2002-04-09 11:39:04 +00:00
Manish Singh 065431b04c use gobject marshaller names directly so libgimpproxy doesn't need
2002-04-03  Manish Singh  <yosh@gimp.org>

        * app/core/gimpobject.c: use gobject marshaller names directly so
        libgimpproxy doesn't need gimpmarshal.* around
2002-04-04 05:31:11 +00:00
Manish Singh 2bff7f1fa5 Make it work with automake 1.5 2002-04-04 02:24:34 +00:00
Nate Summers eb4e718daa Happy April 1. 2002-04-01 21:36:52 +00:00
Nate Summers 310fa16b35 plug-ins/tools/tool-safe-mode.c: fix a segfault 2002-03-30 02:42:30 +00:00
Tor Lillqvist 13191ea22f Additions for Win32: Use -no-undefined. Use the .def file. Produce MS
2002-03-30  Tor Lillqvist  <tml@iki.fi>

	* libgimpmath/Makefile.am: Additions for Win32: Use
	-no-undefined. Use the .def file. Produce MS style import
	library if possible. Install (and uninstall) import
	libraries.

	* libgimpmath/makefile.mingw.in: Add comment that it is seriously
	out-of-date.
2002-03-29 23:39:00 +00:00
Tor Lillqvist ae07ec5709 Additions for Win32: Use -no-undefined. Use the .def file. Produce MS
2002-03-30  Tor Lillqvist  <tml@iki.fi>

	* libgimpcolor/Makefile.am: Additions for Win32: Use
	-no-undefined. Use the .def file. Produce MS style import
	library if possible. Install (and uninstall) import
	libraries.

	* libgimpcolor/makefile.mingw.in: Add comment that it is seriously
	out-of-date.
2002-03-29 23:24:42 +00:00
Tor Lillqvist 6e2568839b Additions for Win32: Use -no-undefined. Use the gimpbase.def file. Produce
2002-03-30  Tor Lillqvist  <tml@iki.fi>

	* libgimpbase/Makefile.am: Additions for Win32: Use
	-no-undefined. Use the gimpbase.def file. Produce MS style import
	library if possible. Install (and uninstall) import
	libraries. Pass definition of PREFIX in CPPFLAGS.

	* libgimpbase/gimpbase.def: Do export gimp_signal_private.

	* libgimpbase/gimpenv.c: Similar Win32 working as in the gimp-1-2
	branch:
	(gimp_directory): Replace funny chars in user name (when used as
	part of last-resort personal gimp directory name) with
	underscores.
	(gimp_toplevel_directory): New (Win32-only) function. Deduces the
	installation prefix at run-time.
	(gimp_path_runtime_fix): New function. On Win32, replace the
	string with one where the compile-time prefix has been replaced
	with the run-time one.
	(gimp_path_parse, gimp_env_get_dir): Call it.

	* libgimpbase/gimpsignal.c: Trim (lots of) trailing spaces in
	copyright notice.
	(gimp_signal_private): Bypass on Win32, return NULL. Or should we
	call g_error(), thus requiring that calls of this are enclosed with
	#ifdef G_OS_UNIX?

	* libgimpbase/makefile.mingw.in: Add comment that it is seriously
	out-of-date.

	* libgimpbase/makefile.msc: Do compile gimpsignal.c.
2002-03-29 23:10:18 +00:00
Tor Lillqvist 5f3a5a66f3 Start of changes for autoconfiscated build on Win32. Mostly similar to how
2002-03-29  Tor Lillqvist  <tml@iki.fi>

	* configure.in: Start of changes for autoconfiscated build on
	Win32. Mostly similar to how it is done in the gimp-1-2 branch:

	Set LT_CURRENT_MINUS_AGE to $LT_CURRENT - $LT_AGE, this is used by
	libtool in DLL names, we need it for the *.rc.in files in case we
	want to have version resources in DLLs (these include the original
	filename). AC_SUBST it.

	Call AC_LIBTOOL_WIN32_DLL.

	Test for Win32 platform and native Win32, set automake
	conditionals PLATFORM_WIN32 and OS_WIN32. Set PATHSEP to ';' or
	':', AC_SUBST it.

	If on Win32, test for lib.exe availability (to build MS import
	libraries), set automake conditional MS_LIB_AVAILABLE.

	Include GLIB_LIBS when checking for bind_textdomain_codeset, in
	case using a separate -lintl.

	Don't try to link with -lX11 when looking for libXpm unless the
	GDK backend is x11. On Win32 we use the "no-X" version of libXpm.
2002-03-29 21:36:53 +00:00
Nate Summers 9e76b55173 displayshell 2002-03-29 05:03:11 +00:00
Nate Summers b2f4e8e4ea adfadfadf 2002-03-29 04:04:02 +00:00
Nate Summers 0855bfcefc I like tool plugins. 2002-03-29 03:41:23 +00:00
Sven Neumann 6eb180cd5a Made 1.3.5 release. 2002-03-28 22:41:13 +00:00
Sven Neumann 6b2fede409 removed po-script-fu/script-fu-xgettext.
2002-03-28  Sven Neumann  <sven@gimp.org>

	* Makefile.am (EXTRA_DIST): removed po-script-fu/script-fu-xgettext.
2002-03-28 15:45:27 +00:00
Sven Neumann 1183085e85 updated NEWS, fixed ChangeLog 2002-03-28 12:50:04 +00:00
Manish Singh 814fd469b0 Treeviewized
2001-03-28  Manish Singh  <yosh@gimp.org>

        * app/gui/user-install-dialog.c: Treeviewized
2002-03-28 02:05:10 +00:00
Hans Breuer de5f8b5f43 #define GETTEXT_PACKAGE
2001-03-28  Hans Breuer  <hans@breuer.org>

	* config.h.win32 : #define GETTEXT_PACKAGE

	* makefile.msc : add theme rule

	* app/makefile.msc : gimp.exe depends on all the libs
	and general update

	* app/base/makefile.msc : updated

	* app/config/gimpconfig-serialize.c : #include <io.h> for win32
	* app/config/gimpconfig-types.c : #include <string.h>

	* app/core/gimpcontext.c app/core/gimpcontainer.c
	  app/core/gimptoolinfo.c : #include <string.h>

	* app/core/gimpdocuments.c (gimp_documents_save_func) :
	need to g_strescape() the filename to not make
	backslashes vanish during de-serialization

	* app/core/gimpimagefile.c : #define S_ISREG for G_OS_WIN32

	* app/core/makefile.msc : add -DGIMP_COMPILATION
	required for cpercep.c build

	* app/display/gimpdisplayshell.c : #include <string.h>

	* app/display/makefile.msc : -FImsvc_recommended_pragmas.h,
	G_LOG_DOMAIN definition and object file update

	* app/file/makefile.msc : -FImsvc_recommended_pragmas.h,
	G_LOG_DOMAIN definition

	* app/file/file-open.c (file_open_with_proc_and_display) :
	use absolute filename for gimp_documents_add()

	* app/gui/channel-commands.c app/gui/colormap-editor-commands.c
	  app/gui/edit-commands.c app/gui/vectors-commands.c :
	#include <string.h>

	* app/gui/makefile.msc : updated

	* app/gui/menus.c : use g_file_test() instead of access()
	to avoid inclusion <unistd.h>

	* app/paint/makefile.msc : updated

	* app/plug-in/plug-in-params.c : #include <string.h>

	* app/plug-in/makefile.msc : updated

	* app/plug-in/plug-in-def.h : #include <time.h> for time_t

	* app/plug-in/plug-in.c : remove definition of S_IFREG

	* app/plug-in/gap/gap_arr_dialog.c : include <config.h>
	before including libgimp/libgimp-intl.h

	* app/tools/makefile.msc : updated

	* app/vectors/makefile.msc : new file

	* app/widgets/makefile.msc : updated

	* libgimp/gimp.def : updated externals

	* libgimpwidgets/gimpwidgets.def : updated externals

	* modules/makefile.msc : updated and disabled colorsel_gtk.

	* plug-in/makefile.msc : don't define GETTEXT_PACKAGE

	* themes/Default/images/makefile.msc : moved makefile.msc from ..
	and adapted pathes to images
2002-03-28 00:10:56 +00:00
Michael Natterer 75c63ee334 app/config/Makefile.am new files containing a convenience constructor for
2002-03-28  Michael Natterer  <mitch@gimp.org>

	* app/config/Makefile.am
	* app/config/gimpscanner.[ch]: new files containing a convenience
	constructor for GScanner and some parse utility functions, mostly
	cut out of app/plug-in/plug-in-rc.c

	* app/plug-in/plug-in-rc.c: removed the stuff here, added scopes
	to the scanner symbols.

	* app/core/Makefile.am
	* app/core/gimpunits.[ch]: moved the user_unit list handling and
	unitrc stuff to this file. Parse unitrc here, using the new
	utility functions instead of using gimprc.

	* app/core/gimpunit.[ch]: removed here.

	* app/core/gimpdocuments.c: same here: added a scanner for the
	document history instead of using gimprc.

	* app/gimprc.c: removed unitrc and document history parsing stuff
	along with some old unused cruft.

	* app/app_procs.c
	* app/core/gimp.c
	* app/gui/user-install-dialog.c: #include "core/gimpunits.h".

	* app/core/gimpdrawable-bucket-fill.c: don't include "gimprc.h".
2002-03-27 23:15:00 +00:00
Sven Neumann 3439f158ab bail out if one of the required tools is not found before proceeding to
2002-03-27  Sven Neumann  <sven@gimp.org>

	* autogen.sh: bail out if one of the required tools is not found
	before proceeding to the version checks.
2002-03-27 00:18:20 +00:00