Commit Graph

25 Commits

Author SHA1 Message Date
Sven Neumann 3018ec35ad first set of plug-ins adapted to the constified libgimp API.
2003-07-01  Sven Neumann  <sven@gimp.org>

	* plug-ins/common: first set of plug-ins adapted to the constified
	libgimp API.
2003-07-01 18:54:28 +00:00
Michael Natterer 5e950b5501 Cleaned up and improved the message system:
2003-06-13  Michael Natterer  <mitch@gimp.org>

	Cleaned up and improved the message system:

	* app/core/gimp.[ch]: added "const gchar *domain" to
	GimpMessageFunc (a NULL domain means the message is from the GIMP
	core, everything else is a plug-in).

	* app/errors.c: pass "domain == NULL" to gimp_message().

	* tools/pdbgen/pdb/message.pdb: derive the message domain from the
	current plug-in's menu_path (evil hack but works reasonably well).

	* app/pdb/message_cmds.c: regenerated.

	* app/widgets/gimpwidgets-utils.[ch] (gimp_message_box): added a
	header showing the message domain and changed the dialog layout to
	follow the HIG more closely.

	* app/gui/error-console-dialog.[ch]: removed.

	* app/widgets/gimperrorconsole.[ch]
	* app/gui/error-console-commands.[ch]
	* app/gui/error-console-menu.[ch]: new files containing a
	re-implementation of the error console dialog.

	* app/gui/Makefile.am
	* app/gui/dialogs-constructors.c
	* app/gui/gui.c
	* app/gui/menus.c
	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h: changed accordingly.

	* app/display/gimpprogress.c: added more spacing and removed the
	separator (more HIG compliant).

	* plug-ins/[most plug-ins].c: Changed lots of messages and
	progress strings:

	- Removed plug-in names from messages since that's automatically
	  covered by "domain" now.
	- Put all filenames in ''.
	- Changed "Loading" to "Opening".
	- Added "..." to all progress messages.
	- Cleaned up all file open/save error messages to look the
	  same and include g_strerror(errno).
	- Removed special casing for progress bars and *always* show them,
	  not only if run_mode != GIMP_RUN_NONINTERACTIVE (we can't expect
	  all plug-ins to do this correctly but need to hack the core to
	  sort out unwanted progress bars).

	Unrelated:

	- Cleaned up indentation, spacing, #includes, coding style and
	  other stuff while I was at all these files.
2003-06-13 14:37:00 +00:00
Sven Neumann ad3acb47bb register the plug-in for https as well. Most wget installations seem to
2003-04-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/url.c (query): register the plug-in for https
	as well. Most wget installations seem to handle this nowadays.
2003-04-23 13:38:28 +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
Michael Natterer c6ad46ba4b plug-ins/common/tga.c plug-ins/common/threshold_alpha.c
2002-01-08  Michael Natterer  <mitch@gimp-org>

	* plug-ins/common/tga.c
	* plug-ins/common/threshold_alpha.c
	* plug-ins/common/tiff.c
	* plug-ins/common/tile.c
	* plug-ins/common/tileit.c
	* plug-ins/common/tiler.c
	* plug-ins/common/uniteditor.c
	* plug-ins/common/unsharp.c
	* plug-ins/common/url.c
	* plug-ins/common/zealouscrop.c: compile with
	GTK_DISABLE_DEPRECATED, cleanup.
2002-01-08 09:20:02 +00:00
Sven Neumann 774caf0ee6 app/plug-in/Makefile.am new files. Started to split plug-in.c into smaller
2001-12-19  Sven Neumann  <sven@gimp.org>

	* app/plug-in/Makefile.am
	* app/plug-in-proc/plug-in-proc.[ch]: new files. Started to split
	plug-in.c into smaller pieces.

	* app/plug-in/plug-in-types.h: namespacified GimpRunModeType enum and
	renamed it to GimpRunMode.

	* app/plug-in/plug-in.[ch]
	* app/gimphelp.c
	* app/file/file-open.[ch]
	* app/file/file-save.[ch]
	* app/file/file-utils.c
	* app/gui/file-commands.c
	* app/gui/file-open-dialog.c
	* app/gui/file-save-dialog.c
	* app/gui/paths-dialog.c
	* app/xcf/xcf.c
	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.

	* app/pdb/fileops_cmds.c
	* libgimp/gimpenums.h
	* plug-ins/script-fu/script-fu-constants.c
	* libgimp/gimpfileops_pdb.[ch]
	* tools/pdbgen/enums.pl: regenerated.

	* libgimp/Makefile.am
	* libgimp/gimpcompat.h: added gimpcompat.h mostly as a place to
	document plug-in API changes.

	* plug-ins/*: changed all occurences of GimpRunModeType to GimpRunMode.
2001-12-19 00:13:16 +00:00
David Odin aa201cade4 use the G_N_ELEMENTS macro where appropriate,
removing a bunch of unuseful static variables.
Changed some g_malloc to g_new while I was on it.11
2001-12-06 02:28:58 +00:00
Manish Singh c4a14f3be7 set all the locale variables we can, to make sure we get predictable
* plug-ins/common/url.c: set all the locale variables we can, to
make sure we get predictable output from wget

-Yosh
2000-11-13 09:30:09 +00:00
Michael Natterer 841c4278e2 plug-ins/common/bz2.c plug-ins/common/gz.c plug-ins/common/mail.c
2000-11-08  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/bz2.c
	* plug-ins/common/gz.c
	* plug-ins/common/mail.c
	* plug-ins/common/screenshot.c
	* plug-ins/common/url.c: applied a (modified) version of
	gimp-quinet-20001108-1.patch which adds proper checking of the
	return value of waitpid(). Removed the lines adding
	gimp_signal_private() because of the fix below.

	* libgimp/gimp.c: Don't install a SIGCHLD signal handler but simply
	call gimp_signal_private(SIGCHLD, SIG_DFL, SA_RESTART) instead.

	This is IMHO the right thing to do because the reason for the
	introducion of the signal handler was the SA_RESTART feature
	and not the handler itself.
2000-11-08 21:58:22 +00:00
Sven Neumann cb7d5a179f tools/pdbgen/pdb/fileops.pdb added a few more PDB wrappers
2000-08-25  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/fileops.pdb
	* tools/pdbgen/pdb/selection.pdb: added a few more PDB wrappers

	* tools/pdbgen/pdb/image.pdb: tweaked the help and blurb strings

	* app/image_cmds.c
	* libgimp/gimpfileops_pdb.[ch]
	* libgimp/gimpimage_pdb.c
	* libgimp/gimpselection_pdb.[ch]: regenerated

	* plug-ins/common/bz2.c
	* plug-ins/common/gz.c
	* plug-ins/common/mail.c
	* plug-ins/common/screenshot.c
	* plug-ins/common/url.c
	* plug-ins/gdyntext/gdyntext.c
	* plug-ins/gfig/gfig.c: use new PDB wrappers.
	For GDynText this change fixes a bug since it used to use the
	wrong number of arguments for gimp_selection_load().

	* plug-ins/flame/rect.[ch]: removed compiler warning
2000-08-25 15:38:38 +00:00
Sven Neumann 811d30548c removed COMPAT_CRUFT.
2000-08-22  Sven Neumann  <sven@gimp.org>

        * plug-ins/common/*.c: removed COMPAT_CRUFT.
2000-08-22 01:26:57 +00:00
Sven Neumann fd6a1d1e01 use a fixed-size buffer to make the code ANSI compliant. Fixes bug #15338.
2000-06-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/url.c: use a fixed-size buffer to make
	the code ANSI compliant. Fixes bug #15338.
2000-06-25 22:23:18 +00:00
Michael Natterer b415fe9617 Jay Cox <jaycox@gimp.org>
2000-06-07  Michael Natterer  <mitch@gimp.org>
            Jay Cox  <jaycox@gimp.org>

	* plug-ins/common/gifload.c: test for GIMP_HAVE_PARASITES

	* plug-ins/common/url.c: open a pipe to the wget child and
	parse it's output so we can display a progressbar.
2000-06-07 17:16:45 +00:00
Michael Natterer a24cf99460 use gimp_ui_init(). Minor cleanups like below: includes, indentation,
2000-05-01  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/[r-z]*.c: use gimp_ui_init(). Minor cleanups like
	below: includes, indentation, prototypes...
2000-05-01 20:22:55 +00:00
Sven Neumann 4006d434df more sanity checks in gimpdrawable.c and a few i18n issues
--Sven
2000-01-31 13:07:39 +00:00
Marc Lehmann 734d4c42b0 *** empty log message *** 2000-01-31 02:32:30 +00:00
Michael Natterer fa30ba04c7 configure.in po-plug-ins/POTFILES.in plug-ins/common/Makefile.am
2000-01-25  Michael Natterer  <mitch@gimp.org>

	* configure.in
	* po-plug-ins/POTFILES.in
	* plug-ins/common/Makefile.am
	* plug-ins/common/plugin-defs.pl
	* plug-ins/megawidget/*: removed. (There were only 3 functions
	left which were used by ~5 plugins, so I moved the resp. functions
	to the plugins). More preview stuff to come...

	* app/airbrush_blob.c
	* modules/colorsel_triangle.c
	* modules/colorsel_water.c: use G_PI instead of M_PI.

	* app/procedural_db.h
	* libgimp/gimpenums.h
	* plug-ins/script-fu/script-fu-constants.c
	* tools/pdbgen/enums.pl: new PDB return value STATUS_CANCEL which
	indicates that "Cancel" was pressed in a plugin dialog. (Useful
	only for file load/save plugins).

	* app/fileops.[ch]
	* app/menus.c: changes to handle STATUS_CANCEL correctly. Did some
	code cleanup in fileops.[ch]. Pop up a warning if File->Save
	failed.

	* app/plug_in.c: return_val[0] is of type PDB_STATUS, not
	PDB_INT32.

	* libgimp/gimpmath.h: new constant G_MAXRAND which equals to
	RAND_MAX if it exists or to G_MAXINT otherwise.

	* libgimp/gimpwidgets.[ch]: new function gimp_random_seed_new()
	which creates a spinbutton and a "Time" toggle.
	Call the function which does the "set_sensitive" magic from the
	radio button callback.

	* plug-ins/[75 plugins]:

	- Return STATUS_CANCEL in all file load/save dialogs if "Cancel"
	  was pressed.
	- Standardized the file plugins' "run" functions.
	- Use G_PI and G_MAXRAND everywhere.
	- Added tons of scales and spinbuttons instead of text entries.
	- Applied uniform packing/spacings all over the place.
	- Reorganized some UIs (stuff like moving the preview to the top
	  left corner of the dialog).
	- Removed many ui helper functions and callbacks and use the stuff
	  from libgimp instead.
	- I tried not to restrict the range of possible values when I
	  replaced entries with spinbuttons/scales but may have failed,
	  though in some cases. Please test ;-)
	- #include <libgimp/gimpmath.h> where appropriate and use it's
	  constants.
	- Indentation, s/int/gint/ et.al., code cleanup.

	RFC: The plugins are definitely not useable with GIMP 1.0 any
	     more, so shouldn't we remove all the remaining compatibility
	     stuff ??? (like "#ifdef GIMP_HAVE_PARASITES")
2000-01-25 17:46:56 +00:00
SHIRASAKI Yasuhiro c4a2212087 plug-ins/common/tga.c plug-ins/common/tiff.c plug-ins/common/tile.c
* plug-ins/common/tga.c
        * plug-ins/common/tiff.c
        * plug-ins/common/tile.c
        * plug-ins/common/tileit.c
        * plug-ins/common/tiler.c
        * plug-ins/common/url.c
        * plug-ins/common/video.c
        * plug-ins/common/vinvert.c
        * plug-ins/common/vpropagate.c
        * po-plug-ins/POTFILES.in: added gettext support.

        * plug-ins/common/threshold_alpha.c: fixed typo.

-- yasuhiro
2000-01-09 06:02:20 +00:00
Sven Neumann e361e25012 free the string returned by gimp_temp_name()
--Sven
1999-10-27 22:16:20 +00:00
Manish Singh 3ce38aa009 another XachPatch (TM) to fix revert and urls
-Yosh
1999-09-11 23:45:57 +00:00
Asbjørn Pettersen 0c0e59390d spawnlp() instead of fork 1999-04-29 18:20:46 +00:00
Manish Singh ab0f6afcfa Upgraded to libtool 1.2b
* Upgraded to libtool 1.2b

* Reversioned libgimp to use gtk-style without a funky soname

* configure.in: craft GLIB_CFLAGS and GLIB_LIBS

* Makefile.am (pretty much all of em): changed to use new library
naming scheme. Only link libgimpui and libgtk et al to the plugins
that actually need them.

* app/gimage_cmds.c: corrected typo that resulted in corrupt PDB
record

* libgimp/gimp.h
* libgimp/gimpwire.h
* libgimp/gimpmenu.[ch]: clean up the callback code

* Removed unecessary inclusion of gtk headers for plugins that
don't use em

* plug-ins/zealouscrop/zealouscrop.c: use gint8 instead of gboolean,
save some mem

* plugged some warnings in animationplay, flame, fp, gee, gfig

* gimptool.in: changes for library reversioning, added --nogimpui
option for not linking in libgimpui

* configure.in: added finnish translation

-Yosh
1998-09-20 23:04:33 +00:00
Manish Singh 6ddbb705a3 more g_message changes
* more g_message changes

* CEL plugin update

* INSTALL: info on why plugins don't get built

-Yosh
1998-05-30 07:32:37 +00:00
Manish Singh 84abd5d700 Have fun recompiling gimp everyone. It's the great FSF address change!
-Yosh
1998-04-13 05:44:11 +00:00
Elliot Lee 32cefec8f7 Initial revision 1997-11-24 22:05:25 +00:00