Commit Graph

43 Commits

Author SHA1 Message Date
Sven Neumann 3a24f6d9b0 fixed bug 7744 and cleaned up libgimp
--Sven
2000-03-25 18:49:05 +00:00
Sven Neumann 7c3c4c3091 new functions gimp_plugin_domain_add() and gimp_plugin_domain_add_with_path()
that allow a plugin to specify its textdomain in the query() function. The
info is saved and read in from the pluginrc, but not yet used.


--Sven
2000-02-23 18:07:53 +00:00
Sven Neumann d4250cb410 please picky compilers
--Sven
1999-12-06 22:44:40 +00:00
Marc Lehmann df8b445be6 *** empty log message *** 1999-11-17 21:13:50 +00:00
Marc Lehmann ec40ac728b API PATCH #2 or so 1999-10-17 00:07:55 +00:00
Manish Singh 1799b91e75 s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
-Yosh
1999-10-06 21:27:18 +00:00
Manish Singh d0519fd33d use G_OS_WIN32 and G_HAVE_CYGWIN #defines
* app/app_procs.c
* app/gdisplay_color.[ch]
* app/gdisplay_color_ui.c: make the ui usable

* app/gdisplay.c: enable cdisplay support

* modules/Makefile.am
* modules/cdisplay_gamma.c: moved gamma functionality to separate

-Yosh
1999-10-04 19:26:07 +00:00
Tor Lillqvist d28bd8b689 Change the GDK_WINDOWING_* stuff to be buildable with current CVS gtk+
1999-10-03  Tor Lillqvist  <tml@iki.fi>

* app/cursorutil.h app/session.c app/text_tool.c: Change the
GDK_WINDOWING_* stuff to be buildable with current CVS gtk+ (not
recommended for X11, but necessary for Win32).

* libgimp/gimp.c: Undef RGB from <windows.h> on Win32.

* app/makefile.{cygwin,msc} libgimp/makefile.{cygwin,msc} *
plug-ins/makefile.{cygwin,msc}: Add new files. Small changes for
current gtk+.

* plug-ins/common/animationplay.c: Win32 kludges.
1999-10-03 00:43:05 +00:00
Manish Singh 61121b7702 add plug-ins/AlienMap2/Makefile to AC_OUTPUT
* configure.in: add plug-ins/AlienMap2/Makefile to AC_OUTPUT

* libgimp/gimp.c: setlocale (LC_NUMERIC, "C") in gimp_main
so floats are sane over the wire

* libgimp/stdplugins-intl.h: same for INIT_I18N_UI()

* plug-ins/common/color_enhance.c: no literal newlines in string for
portability

* plug-ins/sel2path/sel2path.c: i18n patch from SHIRASAKI Yasuhiro

-Yosh
1999-09-04 00:39:05 +00:00
Tor Lillqvist 6ef23d984f app/appenv.h New file. Includes <math.h>. Move G_PI, RINT(), ROUND() etc
1999-09-01  Tor Lillqvist  <tml@iki.fi>

* app/appenv.h
* libgimp/gimpmath.h: New file. Includes <math.h>. Move G_PI,
RINT(), ROUND() etc from app/appenv.h here, so plug-ins can
use them, too. Remove some commented-out old stuff in appenv.h.

* libgimp/gimp.h: Include gimpmath.h.

* libgimp/gimp.c (gimp_main): Win32: Don't install signal
handlers, we can't do anything useful in the handler ourselves
anyway (it would be nice to print out a backtrace, but that seems
pretty hard to do, even if not impossible). Let Windows inform the
user about the crash. If the plug-in was compiled with MSVC, and
the user also has it, she is offered a chance to start the
debugger automatically anyway.

* app/*several*.c: Include gimpmath.h for G_PI etc. Don't include
<math.h>, as gimpmath.h includes it.

* plug-ins/*/*many*.c: Include config.h. Don't include <math.h>.
Remove all the duplicated definitions of G_PI and rint(). Use
RINT() instead of rint().

* app/app_procs.[ch]: app_exit() takes a gboolean.

* app/batch.c
* app/commands.c
* app/interface.c: Call app_exit() with FALSE or TRUE.

* app/main.c (on_error): Call gimp_fatal_error. (main): Don't
install any signal handler on Win32 here, either.

* app/errors.c (gimp_fatal_error, gimp_terminate): Win32: Format
the message and call MessageBox with it.  g_on_error_query doesn't
do anything useful on Win32, and printf'ing a message to stdout or
stderr doesn't do anything, either, in a windowing application.
1999-09-01 20:30:56 +00:00
Tor Lillqvist 3e2ef66809 Put in a workaround for the problem with plug-ins on NT and W2K, where
1999-08-28  Tor Lillqvist  <tml@iki.fi>

* libgimp/gimp.c (gimp_main): Put in a workaround for the problem
with plug-ins on NT and W2K, where installing the GIMP under a
directory path with spaces (\Program Files\GIMP) would cause the
plug-ins to malfunction. Turns out the argv gets set up by the C
runtime incorrectly in such a case, the path name of the
executable is split at the spaces. The workaround is to splice
argv[0] together from the pieces again, shifting the rest of argv
down.

* app/plug_in.c (plug_in_open): Correct (harmless) typo in the
Win32 code.

* plug-ins/common/winclipboard.c: Put the pasting of a new image
under File/Acquire.
1999-08-28 17:00:33 +00:00
Asbjørn Pettersen 1e3c91f348 test hash lookup result 1999-08-17 14:43:45 +00:00
Tor Lillqvist c940495371 Mark the two functions used by color selection modules for export.
* app/color_notebook.c: Mark the two functions used by color
	selection modules for export.

	* modules/makefile.cygwin
	* app/makefile.cygwin: New files.
1999-07-03 08:27:30 +00:00
Tor Lillqvist 2815f523e9 Advice about gcc.
* README.win32: Advice about gcc.

	* libgimp/gimp.{c,h,def}: New way to get address of PLUG_IN_INFO
 	to the gimp dll, similar as used by the EMX port. Much cleaner.
	Works well with gcc also now.

	* app/gimprc.c: Remove gratuituous printf.

	* app/makefile.msc: Update with new files.

	* plug-ins/makefile.msc: Small updates.

	* plug-ins/makefile.cygwin: New file.

	* plug-ins/gfig/gfig.c
	* plug-ins/script-fu/script-fu-scripts.c: Include <glib.h> early.
1999-07-03 02:27:32 +00:00
Tor Lillqvist b6021023ee No need for <io.h> on Win32.
* libgimp/gimp.c: No need for <io.h> on Win32.

	* libgimp/{gimp,gimpui}.def: Add two entry points.

	* libgimp/gimp.h: Can't use __declspec(dllexport) for PLUG_IN_INFO
	when compiling with gcc on Win32. Also handle __argc, __argv and
	_stdcall differently with gcc on Win32

	* libgimp/gimpenv.c: Include <string.h>.

	* libgimp/gimpfeatures.h.in: Remove lots of extraneous trailing blanks.

	* libgimp/gimpfileselection.c: Include <glib.h> early, see above.

	* libgimp/{gimpwire,parasite}.c: Test for NATIVE_WIN32, not
	_MSC_VER.

	* libgimp/makefile.msc: Miscellaneous updates. The gimpi library
 	is now built as a static library.
1999-05-28 21:56:04 +00:00
Marc Lehmann e84bd1cfd3 *** empty log message *** 1999-05-16 20:22:33 +00:00
Asbjørn Pettersen 11219a3742 add OS2 MAIN macro 1999-04-24 09:36:39 +00:00
Marc Lehmann 339f653a74 *** empty log message *** 1999-03-12 21:30:44 +00:00
Tor Lillqvist 951c92a602 Second batch of Win32 merge. 1999-03-07 12:56:03 +00:00
Manish Singh a4213cf85e libgimp/gimp.c app/datafiles.c app/docindex.c app/gimprc.c app/gradient.c
* libgimp/gimp.c
* app/datafiles.c
* app/docindex.c
* app/gimprc.c
* app/gradient.c
* app/palette.c: use g_get_home_dir () instead of getenv ("HOME")

* app/fileops.c: #warning is a gccism

* app/invert.[ch]: minor cleanup

* app/menus.c: more cleanups

* app/blob.c: even more cleanups

* libgimp/parasite.c: YACU

* ltconfig
* ltmain.sh: CVS libtool 1.2e

* modules/Makefile.am: use -module and -avoid-version flags

* lic/Makefile.am
* mapcolor/Makefile.am
* xbm/Makefile.am: don't link with libjpeg here

-Yosh
1999-02-03 09:17:37 +00:00
Lauri Alanko 110d67fb65 Added stuff to make gcg by default (for maintainers)
libgimp: Now keep a local copy of temp proc names
1999-01-07 19:54:45 +00:00
Manish Singh 49cbf0630d i18n markings from Daniel Egger (mostly removal of tags around PDB stuff),
* i18n markings from Daniel Egger (mostly removal of tags around
PDB stuff), some constification

* I went on a sprintf pogrom. Use g_snprintf or g_strdup_printf
where applicable, to prevent overflows, especially with filenames
and translated strings. suid gimp is now more secure. ;)

-Yosh
1998-12-25 18:22:01 +00:00
jaycox 5267f6014f app/drawable_cmds.c, app/gimage_cmds.c app/parasite_cmds.c,
* app/drawable_cmds.c, app/gimage_cmds.c
	* app/parasite_cmds.c, libgimp/parasite.[ch],
	* libgimp/gimp.c, libgimp/gimpprotocol.c
	* tiff.c, gif.c, script-fu.c: removed all references to
 	parasite_error() and parasite_is_error().  Enable the
	passing of null parasites in the pdb.  Return a copy of the
	parasite instead of the orginal in all pdb functions.
1998-11-13 04:00:54 +00:00
Marc Lehmann 68f7fee7e8 fixed a memory leak, (gimp_destroy_paramdefs) new function. added header.
* libgimp/gimp.c (gimp_run_procedure2): fixed a memory leak,
        (gimp_destroy_paramdefs) new function.
        * libgimp/gimp.h (gimp_destroy_paramdefs): added header.
        * libgimp/gimpfeatures.h.in (GIMP_HAVE_DESTROY_PARAMDEFS): new macro.
        * plug-ins/script-fu/script-fu.c (init_procedures): fixed a
        big memory leak (this also applied to perl!)
1998-11-11 02:20:29 +00:00
jaycox c5a8b43846 Modified Files: ChangeLog app/Makefile.am app/channel.c app/channel.h
Modified Files:
 	ChangeLog app/Makefile.am app/channel.c app/channel.h
 	app/channel_cmds.c app/channel_cmds.h app/drawable_cmds.c
 	app/gimage_cmds.c app/gimpdrawable.c app/gimpdrawable.h
 	app/gimpdrawableP.h app/gimpimage.c app/gimpimage.h
 	app/gimpimageP.h app/internal_procs.c app/layer.c app/layer.h
 	app/layer_cmds.c app/layer_cmds.h app/parasite_cmds.c
 	app/perspective_tool.c app/plug_in.c app/procedural_db.c
 	app/rotate_tool.c app/scale_tool.c app/shear_tool.c
 	app/transform_core.c app/transform_core.h docs/parasites.txt
 	libgimp/Makefile.am libgimp/gimp.c libgimp/gimp.h
 	libgimp/gimpdrawable.c libgimp/gimpimage.c
 	libgimp/gimpprotocol.c libgimp/gimpprotocol.h
 	plug-ins/gif/gif.c plug-ins/script-fu/script-fu.c
 	plug-ins/tiff/tiff.c
 Added Files:
 	libgimp/gimpmatrix.c libgimp/gimpmatrix.h libgimp/parasite.c
 	libgimp/parasite.h libgimp/parasiteF.h libgimp/parasiteP.h
 Removed Files:
 	app/parasite.c app/parasite.h app/parasiteF.h app/parasiteP.h
 	libgimp/gimpparasite.c libgimp/gimpparasite.h

Tue Oct 13 19:24:03 1998  Jay Cox  (jaycox@earthlink.net)

        * app/parasite.c
        * app/parasite.h
        * app/parasiteF.h
        * app/parasiteP.h : use a single name field instead of seperate
        creator/type fields.  moved to libgimp/parasite*

        * libgimp/Makefile.am
        * libgimp/gimp.c
        * libgimp/gimp.h
        * libgimp/gimpdrawable.c
        * libgimp/gimpimage.c
        * libgimp/gimpprotocol.c
        * libgimp/gimpprotocol.h
        * app/Makefile.am
        * app/channel.c
        * app/channel.h
        * app/channel_cmds.c
        * app/channel_cmds.h
        * app/drawable_cmds.c
        * app/gimage_cmds.c
        * app/gimpdrawable.c
        * app/gimpdrawable.h
        * app/gimpdrawableP.h
        * app/gimpimage.c
        * app/gimpimage.h
        * app/gimpimageP.h
        * app/internal_procs.c
        * app/layer.c
        * app/layer.h
        * app/layer_cmds.c
        * app/layer_cmds.h
        * app/parasite_cmds.c
        * app/plug_in.c
        * app/procedural_db.c: Add tattoos to layers and drawables.
        Use new style parasites.

        * libgimp/gimpmatrix.c
        * libgimp/gimpmatrix.h: new files for matrix math.

        * app/perspective_tool.c
        * app/rotate_tool.c
        * app/scale_tool.c
        * app/shear_tool.c
        * app/transform_core.c
        * app/transform_core.h: use GimpMatrix instead of the old matrix
        code from transform_core.

        * ligimp/gimpparasite*: removed.  now useing the same source
        for plug-ins and the core.

        * plug-ins/script-fu/script-fu.c
        * plug-ins/tiff/tiff.c
        * plug-ins/gif/gif.c: updated to use new style parasites.
1998-10-14 02:54:02 +00:00
jaycox e2a601d444 Modified Files: ChangeLog app/Makefile.am app/channel.c
Modified Files:
 	ChangeLog app/Makefile.am app/channel.c app/drawable_cmds.c
 	app/drawable_cmds.h app/gimage_cmds.c app/gimage_cmds.h
 	app/gimpdrawable.c app/gimpdrawable.h app/gimpdrawableP.h
 	app/gimpimage.c app/gimpimage.h app/gimpimageP.h
 	app/internal_procs.c app/layer.c app/plug_in.c
 	app/procedural_db.c app/procedural_db.h libgimp/Makefile.am
 	libgimp/gimp.c libgimp/gimp.h libgimp/gimpdrawable.c
 	libgimp/gimpenums.h libgimp/gimpimage.c libgimp/gimpprotocol.c
 	libgimp/gimpprotocol.h plug-ins/dbbrowser/dbbrowser_utils.c
 	plug-ins/script-fu/script-fu.c plug-ins/tiff/tiff.c
 Added Files:
 	app/parasite.c app/parasite.h app/parasiteF.h app/parasiteP.h
 	app/parasite_cmds.c app/parasite_cmds.h libgimp/gimpparasite.c
 	libgimp/gimpparasite.h

   	Allow plug-ins (and scripts) to attach arbitrary data
	(parasites) to images, layers and channels that can be read
	back at a later time.
1998-10-08 08:15:21 +00:00
BST 1998 Andy Thomas dbb801e2d6 app/blend.c app/brush_select.c app/brush_select.h app/bucket_fill.c
Sat Sep 19 01:19:18 BST 1998 Andy Thomas <alt@picnic.demon.co.uk>

	* app/blend.c app/brush_select.c app/brush_select.h app/bucket_fill.c
	app/gimpbrushlist.c app/internal_procs.c app/plug_in.c libgimp/gimp.c
	libgimp/gimp.h libgimp/gimpmenu.c libgimp/gimptile.c
	plug-ins/gfig/gfig.c

	Infrastructure to allow gimp dialogs to be controlled from plugins.
	Brush dialog can now be invoked multiple times. Dialogs invoked
	via plugins do not control the active brush (dialog only used for
	selections).
	New gimp_interactive_selection_brush() function to popup dialog
	Example of usage in the gfig plugin.
	Other dialogs should be able to use this method of invocation.
1998-09-19 00:40:27 +00:00
Manish Singh 3e6b1c6875 libgimp/gimp.c quell warning to g_set_message_handler
* libgimp/gimp.c
* app/main.c: quell warning to g_set_message_handler

* app/about_dialog.c: fix off-by-one error for space for the about text

-Yosh
1998-08-29 22:33:57 +00:00
Manish Singh 5c107a279e acconfig.h configure.in added check for putenv and #ifdefed it's usage
* acconfig.h
* configure.in
* app/main.c: added check for putenv and #ifdefed it's usage since NeXTStep is
lame

* libgimp/gimp.c
* app/main.c
* app/plug_in.c: conditionally compile shared mem stuff so platforms without
it can still work

* plug-ins/CEL/CEL.c
* plug-ins/palette/palette.c
* plug-ins/print/print-escp2.c
* plug-ins/print/print-pcl.c
* plug-ins/print/print-ps.c: s/strdup/g_strdup/ for portability

-Yosh
1998-08-28 23:01:46 +00:00
Manish Singh 72848df01f make xdelta not built by default, so poor users aren't confused
* configure.in: make xdelta not built by default, so poor users aren't confused

* libgimp/gimp.c
* app/blob.c
* app/errors.c
* plug-ins/script-fu/script-fu-server.c: fixes for glib changes with
s/g_debug/g_on_error_debug/ and s/g_vsprintf/g_strdup_vprintf/

-Yosh
1998-08-24 16:26:09 +00:00
Manish Singh 30adcab214 added features header
-Yosh
1998-07-15 02:28:31 +00:00
Manish Singh 2f7b84ae4d add procedural_db_get_data_size and gimp_get_data_Size functions from Nick Lamb
-Yosh
1998-06-27 00:23:43 +00:00
Manish Singh f075fec795 acconfig.h config.h.in added --with-threads (taken from gtk+ configure.in)
* acconfig.h
* config.h.in
* configure.in: added --with-threads (taken from gtk+ configure.in)

* libgimp/Makefile.am: ugly hack to force libgimpi.a to get rebuilt since
libgimp.la compilations screws up the deps. Fixes relinking on make install.

* configure.in
* plug-ins/Makefile.am: other cleanups

* libgimp/gimp.c
* app/plug_in.c: pass INT32 instead of INT8 for gdisp_id since that's the
correct type

* app/preferences_dialog.c
* plug-ins/script-fu/script-fu-server.c
* plug-ins/tileit/tileit.c: warning fixups
1998-06-19 01:45:03 +00:00
CDT 1998 Shawn T. Amundson 127e98b5f7 app/gdisplay.c app/gdisplay.h app/interface.c app/plug_in.c app/plug_in.h
Sun Jun 14 21:16:42 CDT 1998 Shawn T. Amundson <amundson@gimp.org>

        * app/gdisplay.c
        * app/gdisplay.h
        * app/interface.c
        * app/plug_in.c
        * app/plug_in.h
        * libgimp/gimp.c: added statusbar and progressbar, which
        the plugins now use if they have a gdisp.  Unfortunately
        this introduces a resize bug I wasn't able to fix
        immediately. ;-(
1998-06-15 02:25:27 +00:00
Manish Singh 17e6fb3043 install gimp.m4 too
* Makefile.am: install gimp.m4 too

* libgimp/gimpprotocol.[ch]
* libgimp/gimp.c
* app/plug_in.[ch]
* app/procedural_db.c: exported the gdisplay ID to the plugins, so they can
be smart about hooking on to status bars in the appropriate display shell

* libgimp/Makefile.am
* libgimp/gimp.c: make the plugins aware of $gimpdir for gtkrc parsing

-Yosh
1998-06-14 04:33:27 +00:00
Manish Singh 1d95a05af0 gimp_message. libgimp also overrides g_message for all plugins. Converted
* redid the error message handling. g_message now calls message_box or prints
to console depending on whether the no_interface is set or not. gimp-message
is also exported to the PDB as a wrapper to g_message, and libgimp has a new
API: gimp_message. libgimp also overrides g_message for all plugins. Converted
lots of messages in app/* to g_message. Made script-fu a little friendlier.

* updated the regex code from grep 2.2

* said goodbye to the old script-fu logo in script-fu.h

-Yosh
1998-05-28 09:03:57 +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
Manish Singh 0ed0191962 fixed up idle handler for file open (look like testgtk idle demo)
* app/app_procs.c: fixed up idle handler for file open (look like testgtk
idle demo)

* app/colomaps.c: fixup for visual test and use of gdk_color_alloc for some
fixed colors (from Owen Taylor)

* app/errors.h
* app/errors.c
* app/main.c
* libgimp/gimp.c: redid the signal handlers so we only get a debug prompt on
SIGSEGV, SIGBUS, and SIGFPE.

* applied gimp-jbuhler-980408-0 and gimp-joke-980409-0 (warning fixups)

* applied gimp-monnaux-980409-0 for configurable plugin path for multiarch
setups

-Yosh
1998-04-11 05:07:52 +00:00
scott d13f399d81 Fixed an SGI compiler warning. --sg
Fixed an SGI compiler warning.
--sg
1998-04-09 14:37:01 +00:00
Manish Singh 2afd3ffb75 From the Changelog:
* Makefile.am: don't do docs generation by default

        * configure.in: -lXt for webbrowser plugin

        * libgimp/gimp.c
        * libgimp/gimpprotocol.c
        * libgimp/gimptile.c
        * libgimp/gimpwire.c
        * app/plug_in.c: applied memory leak patch from Mattias Gronlund

        * app/eraser.c
        * app/eraser.h
        * app/internal_procs.c
        * app/paintbrush.c
        * app/paintbrush.h: incremental modes for eraser and paintbrush,
        as well as a "hard eraser"

        * plug-ins/ifscompose/ifscompose.c: pixmap visual fixups

-Yosh
1998-03-01 01:18:45 +00:00
Manish Singh ac30648449 fixes for the g_string -> g_str change in glib
updated gfig

-Yosh
1998-02-13 10:36:15 +00:00
Manish Singh 92ab4b4278 Placed libgimp under LGPL
-Yosh
1998-01-25 10:26:47 +00:00
Elliot Lee 32cefec8f7 Initial revision 1997-11-24 22:05:25 +00:00