Commit graph

4076 commits

Author SHA1 Message Date
Michael Natterer 9c6b0b0c33 These changes enable help support for 3rd party plug-ins which install
2000-05-21  Michael Natterer  <mitch@gimp.org>

	These changes enable help support for 3rd party plug-ins which
	install their help files outside GIMP's main help dir.

	Instead of calling gimp_help(), gimp_plugin_help_func() etc.,
	all help callbacks now have to call gimp_standard_help_func()
	which has different implementations in the app and in libgimp.

	There is a new function gimp_plugin_help_register() which can
	be called during plug-in query. plug_in.c keeps a list of
	executable_name/help_path pairs. Plug-ins have to pass their
	exec. name to gimp_help() which uses the list to find the plug-in's
	help directory.

	* app/gimphelp.[ch]: gimp_help() now takes a help_path parameter.
	help_path == NULL means the standard help directory. Various
	changes to pass the help_path to the help browser.

	* app/gimprc.c: save the plug-in's help_path in the pluginrc file.

	* app/menus.c: ugly hack to enable help_paths in the "F1" callback.

	* app/plug_in.[ch]: many help_path related changes. Use g_basename()
	instead of strrchr(str,G_DIR_SEPARATOR), cosmetic cleanups.

	* app/internal_procs.c
	* app/gimphelp_cmds.c
	* tools/pdbgen/pdb/gimphelp.pdb: new procedure
	gimp_plugin_help_register(). gimp_help() takes a second parameter
	which is the executable name (not the help_path).

	* app/color_notebook.c
	* app/commands.c
	* app/lc_dialog.c
	* app/preferences_dialog.c
	* app/tools.c: call gimp_standard_help_func() instead of gimp_help().

	* libgimp/gimp.c: new function gimp_get_progname() which returns
	the full path of the plug-in's executable.

	* libgimp/gimp.h: export the new function,
	removed gimp_plugin_help_func(), gimp_help() takes the executable
	name as second parameter.

	* libgimp/gimpcompat.h: added gimp_plugin_help_func().

	* libgimp/gimphelp.c: a wrapper for gimp_plugin_help_register(),
	changed the calls to gimp_help.

	* libgimp/gimphelpui.[ch]: call gimp_standard_help_func() instead
	of gimp_help().

	* plug-ins/helpbrowser/helpbrowser.c: now called with an additional
	help_path parameter. Various changes to enable
	help_path != gimp_standard_help_path.

	Unrelated stuff:

	* app/batch.h: added missing GPL header.

	* app/gimpunit.c: had a LGPL header, merged some fprintf's into
	one call.

	* app/procedural_db.[ch]: cosmetic: g* types, s/g_malloc/g_new/,
	prototypes, indentation.

	* app/resize.c: use less packing widgets. didn't find the "offset"
	redraw bug :(
2000-05-21 17:41:02 +00:00
Garry R. Osgood 89c8637d3b *app/docindex.c Used feof(fp) as a hardware independent indicator,
2000-05-20  Garry R. Osgood <gosgood@idt.net>
*app/docindex.c
Used feof(fp) as a hardware independent indicator, replacing
constructs comparing EOF (-1) to integers that once were unsigned
characters. Puts an end to infinite looping at line 239 giving rise to
#11578. See bug report; closes 11578.
2000-05-21 09:30:59 +00:00
Marc Lehmann a82a3cf5af see plug-ins/perl/Changes 2000-05-21 01:27:16 +00:00
Sven Neumann e882c30e44 added links to Carey Bunks's "Gimp-Savvy" and "Grokking the GIMP"
2000-05-20  Sven Neumann  <sven@gimp.org>

* plug-ins/webbrowser/web-browser.scm: added links to
Carey Bunks's "Gimp-Savvy" and "Grokking the GIMP" resources.

* libgimp/gimpwidgets.[ch]: use unsigned integers for the
memsize_entry. Added gimp_uint_adjustment_update().

* gimprc.[ch]
* preferences_dialog.c: use unsigned integers for memsizes
(tile_cache_size and max_new_image_size). Allows to set those
values up to 4GB. Fixes bug #11053.
2000-05-20 18:39:02 +00:00
Nick Lamb /GIMP bbe52c3d4c Gimp writes valid RGB BMP files again now 2000-05-20 16:11:29 +00:00
Sven Neumann 03b2e9d08a when transforming a selection in an indexed image, we used to create an
2000-05-20  Sven Neumann  <sven@gimp.org>

* app/transform_core.c (transform_core_cut): when transforming
a selection in an indexed image, we used to create an indexed
tile_buffer. This gives strange (black) results later when we
use layer_new_from_tiles() since that function assumes that a
TileManager is always RGB or GRAY. Eeek!!

Instead of fixing it correctly by changing the TileManager
struct, I've unset the keep_indexed flag when calling
gimage_mask_extract(), so whatever layer_new_from_tiles()
assumes becomes true. Fixes bug #10762.


--Sven
2000-05-20 10:49:03 +00:00
Sven Neumann 0b4a743a25 reset progress to 0.0 when finished
--Sven
2000-05-20 09:49:13 +00:00
Tor Lillqvist 9e7a8e79d7 Byteswap return value. Thanks to Raphael Quinet for finding this.
2000-05-18  Tor Lillqvist  <tml@iki.fi>

* plug-ins/common/psp.c (read_block_header): Byteswap return
value. Thanks to Raphael Quinet for finding this.
2000-05-18 20:42:02 +00:00
Kjartan Maraas d660c4b5bc Update 2000-05-18 18:28:59 +00:00
Kjartan Maraas 4f70cb3a2f Updated Norwegian translation.
2000-05-18  Kjartan Maraas  <kmaraas@online.no>

	* no.po: Updated Norwegian translation.
2000-05-18 18:27:56 +00:00
Kenneth Christiansen 4a8f3f02ba Translations from Keld
gimp/plug-ins/perl/po/da.po
2000-05-18 09:56:17 +00:00
Kenneth Christiansen 57d1be402a Translations from Keld
gdict/po/da.po gimp/po/da.po gimp/po-script-fu/da.po
gnome-core/po/da.po gnome-utils/po/da.po nautilus/po/da.po
2000-05-18 09:49:17 +00:00
Marc Lehmann ad8bb5efb6 see plug-ins/perl/Changes 2000-05-18 04:49:43 +00:00
Marc Lehmann 75267997be see plug-ins/perl/Changes 2000-05-18 00:04:57 +00:00
Sven Neumann b667bfda2c small cleanups in Script-Fu scripts
--Sven
2000-05-17 15:48:52 +00:00
Asbjørn Pettersen 3814d33855 add OS2 functions 2000-05-17 15:19:39 +00:00
Sven Neumann 6fea6b332a rewrote the "Help/Dump Items" function. Now it outputs the
accelerator keys too. Unfortunately this does only work
with LANG=C yet.


--Sven
2000-05-17 14:43:18 +00:00
Michael Natterer 0cca79f817 be a bit more verbose in the "Plug-In crashed" message: Warn the user that
2000-05-17  Michael Natterer  <mitch@gimp.org>

	* app/plug_in.c: be a bit more verbose in the "Plug-In crashed"
	message: Warn the user that Gimp's internal state may be messed
	up and that the safe way is to restart Gimp.
	Unified all plug-in error messages.

	* libgimp/gimp.c: also changed to messages that the Gimp is using
	a newer/older wire protocol than the plug-in.
2000-05-17 12:29:38 +00:00
Sven Neumann c93eab8370 corrected the usage of the "invalidate_preview" signal.
Now simpler and more robust. Should fix bug #11248.


--Sven
2000-05-17 10:59:50 +00:00
Kenneth Christiansen 2222a761f0 Translations from Keld
dia/po/da.po evolution/po/da.po gimp/po-plug-ins/da.po
gimp/po-script-fu/da.po gnome-media/po/da.po nautilus/po/da.po
2000-05-17 09:51:04 +00:00
Marc Lehmann 056bf58d7c see plug-ins/perl/Changes 2000-05-16 21:08:49 +00:00
Stanislav Brabec 1117bef8b7 czech translation update 2000-05-16 19:04:39 +00:00
Stanislav Brabec 97784260a8 Fix of last commit. 2000-05-16 19:02:44 +00:00
Stanislav Brabec a840c7808c Cosmetical fixes. 2000-05-16 19:00:55 +00:00
Stanislav Brabec 5777429f55 Typo and cosmetical fixes. 2000-05-16 18:56:50 +00:00
Michael Natterer 07b3a04f27 app/commands.c app/layers_dialog.c set the scale/resize dialog insensitive
2000-05-16  Michael Natterer  <mitch@gimp.org>

	* app/commands.c
	* app/layers_dialog.c
	* app/resize.c: set the scale/resize dialog insensitive before
	scaling/resizing to keep users from pressing "OK" again.
	Fixes #10656.
2000-05-16 17:25:14 +00:00
Kenneth Christiansen d817699f7d Translations from Keld
gimp/po-plug-ins/da.po
2000-05-16 14:26:29 +00:00
Kenneth Christiansen 20154eb3a6 Translations from Keld
achtung/po/da.po gdict/po/da.po gimp/po-script-fu/da.po
gnome-lokkit/po/da.po gnomeicu/po/da.po nautilus/po/da.po
2000-05-16 10:12:08 +00:00
Kenneth Christiansen 573bd36683 Translations from Keld
gimp/po-plug-ins/da.po
2000-05-16 08:20:52 +00:00
Manish Singh c296a0a378 1.1.22 stuff
-Yosh
2000-05-16 06:45:36 +00:00
Tor Lillqvist bc1db67d83 libgimp/gimpenv.c (gimp_path_parse) Don't try to handle tilde (~) at all
2000-05-16  Tor Lillqvist  <tml@iki.fi>

* libgimp/gimpenv.c (gimp_path_parse)
* app/gimprc.c (transform_path): Don't try to handle tilde (~) at
all on Windows. The tilde is used when mangling long file names
into 8.3 form, and some people have a HOME environment variable
that contains this kind of 8.3 path with a tilde. This causes
interesting effects if we expand a tilde in some gimprc variable
with $HOME, which contains a tilde, which we expand with $HOME,
etc.
2000-05-15 22:47:36 +00:00
Kenneth Christiansen 0015374e44 Translations from Keld
gimp/po-plug-ins/da.po
2000-05-15 16:10:59 +00:00
Kenneth Christiansen d6d6d1aad3 Translations from Keld
gimp/po-plug-ins/da.po
2000-05-15 08:26:33 +00:00
Tor Lillqvist 736929626d Fix typo introduced when gimp_spin_button_new() was taken into use. Now
2000-05-14  Tor Lillqvist  <tml@iki.fi>

* plug-ins/common/gpb.c (gih_save_dialog): Fix typo introduced
when gimp_spin_button_new() was taken into use. Now you can adjust
the cell height again.
2000-05-14 19:56:04 +00:00
Valek Frob 992b27ff44 updated russian translation. 2000-05-14 13:33:48 +00:00
Valek Frob 5d44fff4a1 Updated russian translation. 2000-05-14 13:31:26 +00:00
Michael Natterer 3fc6d56d1d After a weekend of extensive mail exchange with the signal crew, we
2000-05-14  Michael Natterer  <mitch@gimp.org>

	After a weekend of extensive mail exchange with the signal crew,
	we finally found that #2742 is not a Gimp bug but a real OSF/1
	bug. OSF/1 does _not_ reliably restart read() and write() calls
	on certain slow devices (pipes).

	* libgimp/gimpwire.[ch]: guard all read/write calls on the wire
	with loops checking for EINTR. This has to be done "manually"
	as glib's GIOChannels return G_IO_ERROR_UNKNOWN on the occurence
	of EINTR (which is a bug, too).
	s/int/gboolean and minor cleanups while I was on it (not changing
	any logic).

	This fix depends on the current (broken) state of the GIOChannel
	implementation and is scheduled for removal as soon as glib
	behaves nicely here.

	Left SA_RESTART there for the moment in app/main.c. See it as
	defensive programming or just my fear to change two #2742-related
	places at the same time. We might choose to remove SA_RESTART
	later. Many thanks again to Austin, Garry and Tim.
2000-05-14 12:09:43 +00:00
Kenneth Christiansen d28f0809bd Translations from Keld
gimp/po-plug-ins/da.po
2000-05-14 11:52:22 +00:00
Kenneth Christiansen 26aeb6c6ae Translations from Keld
gimp/po-plug-ins/da.po
2000-05-14 02:24:17 +00:00
SHIRASAKI Yasuhiro cb4f81fdc9 updated Japanese Translation.
-- yasuhiro
2000-05-14 02:06:20 +00:00
Kenneth Christiansen b20a4a8ecb Translations from Keld
gimp/plug-ins/perl/po/da.po
2000-05-14 01:18:03 +00:00
Kenneth Christiansen b4ae0325f5 Translatons from Keld
gimp/po/da.po gimp/po-plug-ins/da.po
2000-05-13 22:26:05 +00:00
Sven Neumann d31c37cc66 updated the update.sh scripts to the new version that was checked into
po a few days ago


--Sven
2000-05-13 21:37:03 +00:00
Kenneth Christiansen dc583d1bab Translations from keld
gimp/po-script-fu/da.po
2000-05-13 03:53:04 +00:00
Kjartan Maraas ca3c111c34 Updated Norwegian translation.
2000-05-13  Kjartan Maraas  <kmaraas@online.no>

	* no.po: Updated Norwegian translation.
2000-05-12 23:44:42 +00:00
Tomas Ogren febbe3127c Updated.
2000-05-13  Tomas Ogren  <stric@ing.umu.se>

* sv.po: Updated.
2000-05-12 23:16:29 +00:00
Andreas Hydén a597ef2c3f update.sh: Updated 2000-05-12 22:52:26 +00:00
Kjartan Maraas 61aa7eb007 Updated Norwegian translation.
2000-05-13  Kjartan Maraas  <kmaraas@online.no>

	* no.po: Updated Norwegian translation.
2000-05-12 22:43:34 +00:00
Kjartan Maraas 9b3a192999 Updated Norwegian translation.
2000-05-12  Kjartan Maraas  <kmaraas@online.no>

	* no.po: Updated Norwegian translation.
2000-05-12 22:40:46 +00:00
Sven Neumann b101e7bc85 enabled the (commented out) signal "invalidate_preview".
2000-05-12  Sven Neumann  <sven@gimp.org>

* gimpdrawable.c: enabled the (commented out) signal
  "invalidate_preview".

* app/layers_dialog.c: connect to the "invalidate_preview"
  signal to catch changes that need to be shown in the layer
  previews. Synthetize an expose event when a layer changes.

  Expose events are optimzed away by GTK+ if the widget is not
  visible. Therefore, previews not visible in the layers_dialog
  are not redrawn when they invalidate. Later the preview gets
  validated by the image_preview in lc_dialog but is never
  propagated to the layer_pixmap. We work around this by using an
  additional flag "layer_pixmap_valid" so that the pixmap gets
  updated once the preview scrolls into sight.

  Fixes bugs #10549, #10300 and #8787.

* app/channel.[ch]
* app/layer.[ch]: code review and indentation


--Sven
2000-05-12 17:07:54 +00:00