Commit Graph

14 Commits

Author SHA1 Message Date
Sven Neumann 9c7a13b6cd include all header files that belong to libgimpui
* libgimp/gimpui.h: include all header files that belong to
        libgimpui

        * plug-ins/common/compose.c
        * plug-ins/common/grid.c
        * plug-ins/common/tiff.c
        * plug-ins/flame/flame.c
        * plug-ins/flame/libifs.c
        * plug-ins/gdyntext/charmap.c
        * plug-ins/gdyntext/charmap_window.c
        * plug-ins/gdyntext/font_selection.c
        * plug-ins/gdyntext/message_window.c
        * plug-ins/imagemap/imap_preferences.c
        * plug-ins/script-fu/script-fu-scripts.c
        * plug-ins/sel2path/math.c: out of libgimp only include gimp.h,
        gimpui.h and stdplugins-intl.h

--Sven
1999-11-14 21:56:01 +00:00
Manish Singh d02f3bce77 moved the gtk_set_locale call to after it's been inited
* app/main.c: moved the gtk_set_locale call to after it's
been inited

* app/paint_core.h: set skip for ToolFlags

* app/procedural_db.h: don't skip PDB_TEMPORARY in PDBProcType

* libgimp/Makefile.am: don't install stdplugins-intl.h, that's
only for disted plugins

* libgimp/gimpenums.h: is now autogenned

* libgimp/gimpfeatures.h.in: #define for new enums

* libgimp/gimpintl.h: #include <locale.h>

* libgimp/stdplugins-intl.h: add include guards

* plug-ins/AlienMap2/Makefile.am: add INTLLIBS

* plug-ins/gflare/Makefile.am: removed unused libgimpui

* plug-ins/script-fu/script-fu-console.c
* plug-ins/script-fu/script-fu-scripts.c
* plug-ins/script-fu/script-fu-server.c: use stdplugins-intl.h

* plug-ins/sel2path/Makefile.am: removed unused libgck.la

* tools/pdbgen/Makefile.am: removed script-fu.pl, added enumcode.pl

* tools/pdbgen/lib.pl
* tools/pdbgen/enumcode.pl: enumcode.pl now autogenned gimpenums.h
as well as the script-fu stuff

-Yosh
1999-09-25 01:59:43 +00:00
Manish Singh 049877f03f plug-ins/sel2path/global.h plug-ins/sel2path/math.c s/acosd/my_acosd/
* plug-ins/sel2path/global.h
* plug-ins/sel2path/math.c
* plug-ins/sel2path/vector.c: s/acosd/my_acosd/ since some platforms
seem to have this function in the native libm

* plug-ins/script-fu/scripts/xach-effect.scm: remove stale debugging
line

* app/guides_cmds.c
* app/tools_cmds.c: changes from below

-Yosh
1999-09-14 19:44:51 +00:00
Manish Singh 0e42a46bd4 auf
-Yosh
1999-09-04 00:42:37 +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 97346fb110 Use RINT instead of rint.
* app/transform_core.c: Use RINT instead of rint.

	* plug-ins/common/curve_bend.c
	* plug-ins/sel2path/spline.c: Workarounds for gccisms, thanks to
	Hans Breuer.

	* app/makefile.msc
	* plug-ins/makefile.msc: Misc fixes.
1999-08-16 19:33:35 +00:00
BST 1999 Andy Thomas 434b40f840 plug-ins/sel2path/fit.c plug-ins/sel2path/pxl-outline.c
Wed Jul 21 00:00:35 BST 1999 Andy Thomas <alt@gimp.org>

	* plug-ins/sel2path/fit.c
	* plug-ins/sel2path/pxl-outline.c

	Corrected more non-portable code problems.
1999-07-20 23:04:41 +00:00
BST 1999 Andy Thomas 17288aca6a plug-ins/sel2path/fit.c
Tue Jul 20 00:29:41 BST 1999 Andy Thomas <alt@gimp.org>

	* plug-ins/sel2path/fit.c

	Corrected some non-portable code problems.
1999-07-19 23:38:21 +00:00
BST 1999 Andy Thomas 6c28319bc3 app/indicator_area.c app/paths_dialog.c app/tools_cmds.c app/airbrush.c
Mon Jul 19 23:40:56 BST 1999 Andy Thomas <alt@gimp.org>

	* app/indicator_area.c
	* app/paths_dialog.c
	* app/tools_cmds.c
	* app/airbrush.c
	* app/airbrush.h
	* app/bezier_select.c
	* app/paintbrush.c
	* app/paintbrush.h
	* app/clone.c
	* app/clone.h
	* app/eraser.c
	* app/eraser.h
	* app/convolve.c
	* app/convolve.h
	* app/smudge.c
	* app/smudge.h
	* app/dodgeburn.c
	* app/dodgeburn.h
	* app/internal_procs.c
	* plug-ins/sel2path/sel2path.c
	* tools/pdbgen/pdb/tools.pdb
	* tools/pdbgen/enums.pl

	1) Fixed the brushpreview popup problem where it remained onscreen
           if the mouse button was released in another GTK window that accepted
	   mouse events.

	2) Selection to path now works on all types of images (it should have
	   anyway).

	3) Fixed PDB so you can once again use the PDB interfaces to the clone
	   and airbrush tools.

	4) PDB Function to add a path to an image now adds it correctly.

	5) airbrush/paintbrush/clone/eraser/convolve New PDB functions that
           use the options dialogs settings (or sane defaults if option dialog
           not present)

	6) Added PDB functions for Smudge & DodgeBurn tools.

	7) Path stroke command (from the LCP dialog) can now use any of the
	   painting tools (airbrush/paintbrush/clone/eraser/convolve/smudge/
           dodgeburn except ink). Just have the tool selected when you
	   press the stroke button.
1999-07-19 22:42:49 +00:00
Tor Lillqvist fe1cc678c1 app/makefile.cygwin app/makefile.msc plug-ins/makefile.cygwin
* app/makefile.cygwin
	* app/makefile.msc
	* plug-ins/makefile.cygwin
	* plug-ins/makefile.msc
	* modules/makefile.cygwin
	* modules/makefile.msc
	* tools/gcg/makefile.cygwin: Various updates. GCC-compiled DLL
	name change.

	* app/context_manager.c: Include paint_options.h for prototype.

	* app/gimpimage.c (gimp_image_initialize_projection): Break out of
 	loop as soon as possible.

	* app/menus.c (menus_last_opened_cmd_callback): Check if referring
 	to entry not in list.

	* app/module_db.c (valid_module_name): (Win32) Require module DLL
 	names to include name of compiler built with.

	* app/paths_dialog.c (paths_draw_segment_points): No use to draw
 	lines if we have less that two points.

	* app/qmask.c: Include stdio.h and floating_sel.h.

	* libgimp/makefile.cygwin: New file.

	* libgimp/Makefile.am:  Distribute above file.

	* libgimp/gimp.def: Update.

	* libgimp/gimpenv.c (gimp_directory): Don't warn about missing
 	home directory on Win32, it is perfectly natural.

	* plug-ins/sel2path/global.h: Bypass unused declarations, some
	of which clash with functions in MSVCRT.

	* plug-ins/sel2path/math.c
	* modules/colorsel_water.c: Define M_PI if necessary.

	* plug-ins/sel2path/sel2path.c: Include config.h and
 	glib.h. Define rint() if needed.

	* plug-ins/sel2path/vector.c: Include glib.h (for hypot() renaming
 	on Win32; In the MS C runtime, as hypot() is non-ANSI, it's called
 	_hypot(), sigh).

	* plug-ins/sinus/sinus_logo.h: Use indexed format, it is easier on
 	some compilers than the huge string.
1999-07-14 16:02:32 +00:00
BST 1999 Andy Thomas 48627bc821 plug-ins/sel2path/sel2path.c app/paths_dialog.c app/paths_cmds.c
Tue Jul 13 22:48:37 BST 1999 Andy Thomas <alt@gimp.org>

	* plug-ins/sel2path/sel2path.c
	* app/paths_dialog.c
	* app/paths_cmds.c
	* tools/pdbgen/pdb/paths.pdb

	Selection is now cleared when converted to a path.
	Path is made the current one when created via the PDB.
	This made more sense than the previous behavior.
1999-07-13 21:55:39 +00:00
Asbjørn Pettersen aa3b79d1ab add <float.f> or FLT_MAX,FLT_MIN 1999-07-10 14:08:04 +00:00
BST 1999 Andy Thomas 8beb7c582c configure.in plug-ins/Makefile.am plug-ins/sel2path/* <- New directory
Fri Jul  9 22:24:53 BST 1999 Andy Thomas <alt@gimp.org>

	* configure.in
	* plug-ins/Makefile.am
	* plug-ins/sel2path/* <- New directory
	* app/paths_dialog.c
	* pixmap/topath.xpm

	New function implemented by a plugin.
	Will convert a selection into a path. Please
	see the README in sel2path directory for more
	details (especially where the underlying algorithms/code
	were obtained from).
1999-07-09 21:52:00 +00:00