Commit Graph

778 Commits

Author SHA1 Message Date
Manish Singh 322627964d (from gimp-narazaki-990909-0)
* app/layers_dialog.c: check for layer validity in
layer_widget_preview_events

* app/lc_dialog.c: remove GIMP_IMAGE() cast from the
menu_preview_update callback like the comment says to

(from gimp-yasuhiro-990907-0)

* app/menus.c
* plug-ins/common/autocrop.c
* plug-ins/common/c_astretch.c
* plug-ins/common/color_enhance.c
* plug-ins/common/guillotine.c
* plug-ins/common/normalize.c
* plug-ins/common/rotate.c
* plug-ins/common/rotators.c
* plug-ins/common/spheredesigner.c
* plug-ins/common/threshold_alpha.c
* plug-ins/common/zealouscrop.c: i18n markings

-Yosh
1999-09-09 07:09:33 +00:00
Kelly Martin bceecbafe2 Fixed to use multiple compilation instead of one giant .c file with several
included .h files.  Ick.  See ChangeLog.

--klm
1999-09-09 02:51:57 +00:00
Marc Lehmann beb7564851 Changed initial constants to true 1999-09-08 22:34:34 +00:00
Marc Lehmann 720450826d see plug-ins/perl/Changes 1999-09-08 22:31:54 +00:00
Marc Lehmann 698988c9f5 *** empty log message *** 1999-09-07 21:05:07 +00:00
Asbjørn Pettersen 1ebe8d5b28 use g_strcasecmp() 1999-09-07 11:14:43 +00:00
Asbjørn Pettersen 65e2d6016a add sys/types.h file 1999-09-07 11:13:34 +00:00
Sven Neumann d9ab679079 Added Imagemap plug-in.
--Sven
1999-09-07 00:03:20 +00:00
Marc Lehmann 9ebe7bbe09 *** empty log message *** 1999-09-06 23:31:51 +00:00
Marc Lehmann 09e5838351 *** empty log message *** 1999-09-06 21:38:35 +00:00
James Henstridge 6b5f967d0c conditionally compile pygimp.
1999-09-06  James Henstridge  <james@daa.com.au>

	* plug-ins/Makefile.am: conditionally compile pygimp.

	* configure.in: added in macros for pygimp.  You must pass
	--enable-python to configure for it to even consider checking for
	python at the moment.

	* acinclude.m4: added python detection macros.
1999-09-06 03:45:34 +00:00
James Henstridge 910e7cb689 added pygimp to tree, as organised with Marc Lehmann. I have not hooked it
1999-09-05  James Henstridge  <james@daa.com.au>

	* plug-ins/pygimp/*: added pygimp to tree, as organised with Marc
	Lehmann.  I have not hooked it into the main makefile yet.  That
	should not be difficult though.
1999-09-05 15:46:57 +00:00
Vidar Madsen/gimpressionist 0e5bf7222a Added configurable light-sources + reset to default settings.
* plug-ins/common/spheredesigner.c: Added configurable
light-sources + reset to default settings.
1999-09-05 01:49:02 +00:00
Manish Singh cd70fa440e autogen .cvsignore
-Yosh
1999-09-04 06:19:46 +00:00
Vidar Madsen/gimpressionist 8b586d785f Various fixes and enhancements, most notable "run-with-last-vals".
* plug-ins/common/spheredesigner.c: Various fixes and
enhancements, most notable "run-with-last-vals".
1999-09-04 02:38:46 +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
Marc Lehmann 625df2ac59 *** empty log message *** 1999-09-03 23:14:44 +00:00
Tor Lillqvist d4055ef4f5 Fix own braino: Use max three octal digits, not four.
1999-09-04  Tor Lillqvist  <tml@iki.fi>

* plug-ins/script-fu/interp_sliba.c (lreadstring): Fix own braino:
Use max three octal digits, not four.
1999-09-03 21:16:53 +00:00
Tor Lillqvist 5e0093547e Accept what g_strescape throws at us (specifically, octal sequences that
1999-09-02  Tor Lillqvist  <tml@iki.fi>

* plug-ins/script-fu/interp_sliba.c (lreadstring): Accept what
g_strescape throws at us (specifically, octal sequences that start
with any octal digit, and are at most three octal digits long).

* app/makefile.{cygwin,msc}: Update.
1999-09-02 20:54:07 +00:00
Sven Neumann 1341c2939a Patches from Wolfgang Hofer.
--Sven
1999-09-02 20:33:49 +00:00
Tor Lillqvist 5475ff08a9 New files. Types and functions related to "standard" parasite types. Used
1999-09-02  Tor Lillqvist  <tml@iki.fi>

* libgimp/parasiteio.[ch]: New files. Types and functions related
to "standard" parasite types. Used for the
gimp-brush-pipe-parameters parasite that the gpb and psp plug-ins
handle, and the value of which is stored in gih files, from
which gimpbrushpipe.c parses it.

* libgimp/{Makefile.am,makefile.{cygwin,msc}}: Add new files.

* libgimp/gimp.def: Add its entry points.

* libgimp/gimp.h: Fix cosmetic argument name error.

* app/gimpbrushpipe.c: Remove code that previously
was copied here, use functions from parasiteio.c.

* plug-ins/common/gpb.c: Ditto. Add brush cell width and height
fields to the gih save dialog. Add cleverness to update rows and
columns as cell size is changes. (Still too easy for the user to
get confused, though.) Display corresponding guide grid on the
image. Unfortunately updating the guidelines doesn't seem to work.

* plug-ins/common/psp.c: Use functions from parasiteio.c.
1999-09-02 00:01:41 +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
Sven Neumann 53af3d104a hopefully this helps tigert, but I doubt it ...
--Sven
1999-09-01 19:09:52 +00:00
Tor Lillqvist 6a71208875 Use _O_TEMPORARY. Removed #ifdef, instead define the Win32-only _O_BINARY
1999-09-01  Tor Lillqvist  <tml@iki.fi>

* app/tile_swap.c (tile_swap_open): Use _O_TEMPORARY. Removed
#ifdef, instead define the Win32-only _O_BINARY and _O_TEMPORARY
as zero if not defined.

* plug-ins/common/spheredesigner.c: Include config.h (#if
HAVE_CONFIG_H). RAND_FUNC and SRAND_FUNC are defined in that.
1999-09-01 04:27:30 +00:00
Manish Singh 10e8cc5761 use libgck_la_LIBADD to get shared lib deps
-Yosh
1999-09-01 03:24:12 +00:00
Manish Singh 581834dddb shut up cvs
-Yosh
1999-09-01 03:20:50 +00:00
Vidar Madsen/gimpressionist 01e27f730a Various fixes and enhancements.
* plug-ins/common/spheredesigner.c: Various fixes and enhancements.
1999-08-31 22:21:43 +00:00
Adam D. Moss c79365b3df remove workaround 1999-08-31 19:40:00 +00:00
Manish Singh 9d6bc8417e plug-ins/common/Makefile.am added note about autogeneration to the
* plug-ins/common/Makefile.am
* plug-ins/common/mkgen.pl: added note about autogeneration to
the generated Makefile.am

* plug-ins/common/plugin-defs.pl: added spheredesigner

-Yosh
1999-08-31 17:55:03 +00:00
Tor Lillqvist 2eafd14351 Minor portability fixes.
1999-08-31  Tor Lillqvist  <tml@iki.fi>

* plug-ins/common/spheredesigner.c: Minor portability fixes.

* plug-ins/makefile.{cygwin,msc}: Add spheredesigner.
1999-08-31 16:49:46 +00:00
Vidar Madsen/gimpressionist 0b52355fda plug-ins/common/Makefile.am Added the SphereDesigner plugin.
* plug-ins/common/Makefile.am
* plug-ins/common/spheredesigner.c: Added the SphereDesigner plugin.
1999-08-31 12:29:09 +00:00
Manish Singh 32772963f1 app/apptypes.h removed trailing enum commas
* app/apptypes.h
* app/pathsP.h: removed trailing enum commas

* app/gdisplay_color.[ch]: added a foreach function to iterate
over the display filter names

* app/gdisplay_color_ui.[ch]: display filter ui stuff (doesn't do
much yet ;)

* app/commands.[ch]
* app/menus.c: hooked the above into the menu system

* app/Makefile.am: added new files

* plug-ins/gimpressionist/preview.c: removed bogus // comment

-Yosh
1999-08-31 02:00:34 +00:00
MEST 1999 Sven Neumann 04cfec7586 use the new [gimp|pattern]_preview_widgets.
Mon Aug 30 22:15:29 MEST 1999  Sven Neumann <sven@gimp.org>

        * app/devices.c: use the new [gimp|pattern]_preview_widgets.

        * plug-ins/xjt/xjt.c: correct a gccism


--Sven
1999-08-30 20:14:49 +00:00
Vidar Madsen/gimpressionist febc3daa0c *** empty log message *** 1999-08-29 21:06:26 +00:00
Asbjørn Pettersen 10a170fc77 add include file 1999-08-29 18:41:56 +00:00
Adam D. Moss 193a9ac3c8 default comment is now NULL. 1999-08-29 17:43:35 +00:00
Manish Singh ccf7f01085 use INIT_I18N_UI ()
-Yosh
1999-08-28 19:23:22 +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
Tor Lillqvist 34f76ba34a In the case of angular selection, offset angle with G_PI/2 to be
1999-08-28  Tor Lillqvist  <tml@iki.fi>

* app/gimpbrushpipe.c (gimp_brush_pixmap_select_brush): In the
case of angular selection, offset angle with G_PI/2 to be
compatible with PSP tubes. Restrict the index of each dimension
separately to the appropriate range.

* plug-ins/common/gpb.c (gih_save_dialog): Must not free the combo
box string list, the strings are not strdup'ed by the combo box.
1999-08-28 11:23:58 +00:00
Tor Lillqvist 70fca093f3 Implement the selection of brush based on cursor direction, pressure,
1999-08-28  Tor Lillqvist  <tml@iki.fi>

* app/gimpbrushpipe.c: Implement the selection of brush based on
cursor direction, pressure, tilt, or a random value. (Hmm, forgot
velocity, later.) (In addition to just incrementally stepping.)
Read the brush pipe parameters from the gih file's second line.
There is no way to tune the parameters in the GIMP, they must
currently be set when saving the gih file (in the gpb plug-in).

* app/gimpbrushpipe.h
* app/gimpbrushpipeP.h: Move the PipeSelectModes enum to the
"private" header. Add a stride array to GimpBrushPipe to make
indexing easier.

* plug-ins/common/gpb.c: Add selection mode fields to the dialog.
Attach the pipe parameters entered as a parasite, too.

* docs/parasites.txt
* plug-ins/common/psp.c: Use "placement", not "spacing" (which
means another thing).
1999-08-28 01:14:42 +00:00
Manish Singh 4a9ae94655 user_install added gimpressionist, levels, and curves dirs
* user_install
* user_install.bat: added gimpressionist, levels, and curves dirs

* app/color_panel.c
* app/color_select.c
* app/colormaps.[ch]
* app/palette.c
* app/selection.c: remove vestigal colormap code; use get_color
directly now

* libgimp/color_display.h
* app/gdisplay_color.c: bugfixes, added state load/save hooks,
redid the interface to work on blocks, removed dummy default
handler, work on gamma correction stuff

* app/gimpbrushpipe.c: #include <stdlib.h>

* app/gximage.c: minor cleanups

* app/levels.c: default to ~/.gimp-1.1/levels for load/save; minor
gui prettification

* app/main.c
* app/menus.c: plug-in menu translation patch from SHIRASAKI Yasuhiro
<yasuhiro@awa.tohoku.ac.jp>

* libgimp/stdplugins-intl.h: add INIT_I18N_UI() for calling
gtk_set_locale()

* plug-ins/Lighting/lightin_main.c: use INIT_I18N_UI()

-Yosh
1999-08-27 21:06:00 +00:00
Tor Lillqvist 191eaa7036 A few more lines about the pipe parameters parasite. Related change to
the psp plug-in.
1999-08-27 06:25:22 +00:00
Tor Lillqvist 19d47775a3 Add Acquire under the File menu.
1999-08-27  Tor Lillqvist  <tml@iki.fi>

* app/menus.c: Add Acquire under the File menu.

* plug-ins/twain: New (Windows-only) plug-in. Interface to TWAIN
image sources. Written by Craig Setera.

* plug-ins/Makefile.am: Add twain sources to EXTRA_DIST.

* plug-ins/makefile.{cygwin,msc}: Move gimpressionist and twain
around as they are in this directory now.

* plug-ins/common/screenshot.c
* plug-ins/winsnap/winsnap.c
* plug-ins/twain/twain.c: Put them under File/Acquire.
1999-08-26 23:49:39 +00:00
Manish Singh 9f53a995c0 Added gimpressionist plugin
-Yosh
1999-08-26 22:29:37 +00:00
Tor Lillqvist 387002c04b Add a flags field and corresponding type ToolFlags to PaintCore. The only
1999-08-27  Tor Lillqvist  <tml@iki.fi>

* app/paint_core.h: Add a flags field and corresponding type
ToolFlags to PaintCore. The only flag bit defined so far is
TOOL_CAN_HANDLE_CHANGING_BRUSH, which those tools who don't mind
if the brush changes while painting (as in the case of pixmap pipe
brushes).

* app/paint_core.c: Test above flag before calling the brush's
select_brush method.

* app/airbrush.c
* app/paintbrush.c
* app/pencil.c: Set above flag.

* app/makefile.{cygwin,msc}: Add latest additions.
1999-08-26 21:33:58 +00:00
Marc Lehmann 2854801744 see plug-ins/perl/Changes 1999-08-26 20:42:43 +00:00
Tor Lillqvist 868bdfff44 Overhaul of pixmap brushes and pipes: No separate pixmap pipe
brush tool any longer. The paintbrush, airbrush and pencil
tools, which already knew how to handle the single-pixmap
brushes now also handle the pipes as well.

* app/pixmapbrush.{h,c}
* app/gimpbrushpixmap.{h,c}: Removed these files.

* app/Makefile.am
* app/makefile.{cygwin,msc}: Remove from here, too.

* app/gimpbrushpipe.{h,c}: Total overhaul.

* app/paint_core.h
* app/apptypes.h: Some more types moved to apptypes.h

* app/context_manager.c
* app/tool_options.c
* app/tools.c
* app/toolsF.h: Remove PIXMAPBRUSH tool.

* app/gimpbrush.h: New method: select_brush. Used to change the
brush in paint_core, for pipe brushes.

* app/gimpbrush.c: Add gimp_brush_select_brush, which is dummy for
the normal brushes (returns the same brush).

* app/paint_core.c: Call the brush's select_brush method to get a
potential new brush before calling the paint_func.

* app/gimpbrushlist.c: Various changes related to the pixmap and
pipe overhaul.

* app/airbrush.c
* app/pencil.c: Reorder code a bit in the tool motion function to
avoid executing unnecessary code in the case of a pixmap brush.

Other changes in the same commit:

* app/install.c: Make quote_spaces extern.

* app/appenv.h: Declare it.

* libgimp/gimpui.def: Add missing entry points.

* libgimp/makefile.{cygwin,msc}: Add missing objects to gimpui.
1999-08-26 00:54:30 +00:00
Manish Singh 3cf62e52d4 shut up cvs
-Yosh
1999-08-26 00:50:39 +00:00
Manish Singh c1ca8b13ac Makefile.am configure.in install a gimpinstall script (basically
* Makefile.am
* configure.in
* gimptool.in: install a gimpinstall script (basically install-sh)
for platforms without an install tool

* plug-ins/common/csource.c: correct some gccisms

* plug-ins/unsharp/dialog_f.c
* plug-ins/unsharp/dialog_i.c
* plug-ins/unsharp/unsharp.c: // IS NOT A VALID C COMMENT

-Yosh
1999-08-26 00:31:37 +00:00