The initial cut.

The initial cut.
This commit is contained in:
Elliot Lee 1999-07-16 02:51:19 +00:00
parent 373f6b9108
commit 19efd21671
14 changed files with 62 additions and 20223 deletions

View File

@ -49,6 +49,9 @@
#undef USE_PTHREADS
#undef HAVE_GNOME
#undef HAVE_BONOBO
/* Leave that blank line there!! Autoheader needs it.
If you're adding to this file, keep in mind:

View File

@ -414,15 +414,20 @@ AM_CPPFLAGS = \
@GIMP_THREAD_FLAGS@ \
@GIMP_MP_FLAGS@
GNOME_LIBS=@GNOME_LIBS@
GNOME_CFLAGS=@GNOME_CFLAGS@
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
$(GTK_CFLAGS) \
-I$(includedir)
-I$(includedir) \
$(GNOME_CFLAGS)
gimp_LDADD = \
libgimpim.a \
$(top_builddir)/libgimp/libgimpi.a \
$(GNOME_LIBS) \
$(GTK_LIBS) \
$(GIMP_THREAD_LIBS) \
$(GIMP_MP_LIBS) \

View File

@ -97,7 +97,7 @@ channel_new_invoker (Argument *args)
if (success)
{
opacity = (int) ((opacity_arg * 255) / 100);
channel_set_opacity (channel, opacity);
channel = channel_new (gimage, width, height, name, opacity, color);
success = channel != NULL;
}
@ -642,7 +642,7 @@ channel_set_opacity_invoker (Argument *args)
success = FALSE;
if (success)
channel_set_opacity (channel, opacity);
channel->opacity = (int) ((opacity * 255) / 100);
return procedural_db_return_args (&channel_set_opacity_proc, success);
}
@ -754,7 +754,7 @@ channel_set_color_invoker (Argument *args)
color = (guchar *) args[1].value.pdb_pointer;
if (success)
channel_set_color(channel, color);
channel_set_color(channel, color);
return procedural_db_return_args (&channel_set_color_proc, success);
}

View File

@ -1,72 +0,0 @@
/* The GIMP -- an image manipulation program
* Copyright (C) 1995-1999 Spencer Kimball and Peter Mattis
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* NOTE: This file is autogenerated by pdbgen.pl. */
#include "procedural_db.h"
#include "gimphelp.h"
static ProcRecord help_proc;
void
register_gimphelp_procs (void)
{
procedural_db_register (&help_proc);
}
static Argument *
help_invoker (Argument *args)
{
gboolean success = TRUE;
gchar *path;
path = (gchar *) args[0].value.pdb_pointer;
if (path == NULL)
success = FALSE;
if (success)
gimp_help (path);
return procedural_db_return_args (&help_proc, success);
}
static ProcArg help_inargs[] =
{
{
PDB_STRING,
"path",
"The location of the help page"
}
};
static ProcRecord help_proc =
{
"gimp_help",
"Load a help page.",
"This procedure loads the specified help page into the helpbrowser or what ever is configured as help viewer. The location of the jelp page is given relative to the help rootdir.",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer <mitch@gimp.org>",
"1999",
PDB_INTERNAL,
1,
help_inargs,
0,
NULL,
{ { help_invoker } }
};

View File

@ -46,6 +46,13 @@
#include "libgimp/gimpintl.h"
#ifdef HAVE_GNOME
#include <gnome.h>
#ifdef HAVE_BONOBO
#include <bonobo/gnome-bonobo.h>
#endif
#endif
static RETSIGTYPE on_signal (int);
#ifdef SIGCHLD
static RETSIGTYPE on_sig_child (int);
@ -134,7 +141,28 @@ main (int argc, char **argv)
#endif
textdomain("gimp");
#ifdef HAVE_GNOME
/* XXX cmdline args are broken */
#ifdef HAVE_BONOBO
{
CORBA_Environment ev;
CORBA_ORB orb;
PortableServer_POA poa;
PortableServer_POAManager poam;
CORBA_exception_init(&ev);
orb = gnome_CORBA_init ("gimp", "1.1", &argc, argv, GNORBA_INIT_SERVER_FUNC, &ev);
poa = CORBA_ORB_resolve_initial_references(orb, "RootPOA", &ev);
poam = PortableServer_POA__get_the_POAManager(poa, &ev);
bonobo_init(orb, poa, poam);
CORBA_exception_free(&ev);
}
#else
gnome_init ("gimp", "1.1", argc, argv);
#endif
#else
gtk_init (&argc, &argv);
#endif
#ifdef HAVE_PUTENV
display_name = gdk_get_display ();

View File

@ -1,187 +0,0 @@
/* config.h.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */
#undef C_ALLOCA
/* Define to empty if the keyword does not work. */
#undef const
/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
This function is required for alloca.c support on those systems. */
#undef CRAY_STACKSEG_END
/* Define if you have alloca, as a function or macro. */
#undef HAVE_ALLOCA
/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
#undef HAVE_ALLOCA_H
/* Define if you don't have vprintf but do have _doprnt. */
#undef HAVE_DOPRNT
/* Define if you have a working `mmap' system call. */
#undef HAVE_MMAP
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
#undef HAVE_SYS_WAIT_H
/* Define if you have <unistd.h>. */
#undef HAVE_UNISTD_H
/* Define if you have the vprintf function. */
#undef HAVE_VPRINTF
/* Define as __inline if that's what the C compiler calls it. */
#undef inline
/* Define to `long' if <sys/types.h> doesn't define. */
#undef off_t
/* Define to `int' if <sys/types.h> doesn't define. */
#undef pid_t
/* Define if you need to in order for stat and other things to work. */
#undef _POSIX_SOURCE
/* Define as the return type of signal handlers (int or void). */
#undef RETSIGTYPE
/* Define to `unsigned' if <sys/types.h> doesn't define. */
#undef size_t
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown
*/
#undef STACK_DIRECTION
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Define if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME
#undef ENABLE_MP
#undef ENABLE_NLS
#undef HAVE_CATGETS
#undef HAVE_DIRENT_H
#undef HAVE_DOPRNT
#undef HAVE_GETTEXT
#undef HAVE_IPC_H
#undef HAVE_LC_MESSAGES
#undef HAVE_NDIR_H
#undef HAVE_PROGRESSIVE_JPEG
#undef HAVE_PUTENV
#undef HAVE_RINT
#undef HAVE_SHM_H
#undef HAVE_STPCPY
#undef HAVE_SYS_DIR_H
#undef HAVE_SYS_NDIR_H
#undef HAVE_SYS_PARAM_H
#undef HAVE_SYS_SELECT_H
#undef HAVE_SYS_TIME_H
#undef HAVE_SYS_TIMES_H
#undef HAVE_UNISTD_H
#undef HAVE_VPRINTF
#undef HAVE_VSNPRINTF
#undef HAVE_XSHM_H
#undef IPC_RMID_DEFERRED_RELEASE
#undef NO_DIFFTIME
#undef NO_FD_SET
#undef RAND_FUNC
#undef SRAND_FUNC
#undef USE_PTHREADS
/* Define if you have the __argz_count function. */
#undef HAVE___ARGZ_COUNT
/* Define if you have the __argz_next function. */
#undef HAVE___ARGZ_NEXT
/* Define if you have the __argz_stringify function. */
#undef HAVE___ARGZ_STRINGIFY
/* Define if you have the _exit function. */
#undef HAVE__EXIT
/* Define if you have the dcgettext function. */
#undef HAVE_DCGETTEXT
/* Define if you have the getcwd function. */
#undef HAVE_GETCWD
/* Define if you have the getpagesize function. */
#undef HAVE_GETPAGESIZE
/* Define if you have the munmap function. */
#undef HAVE_MUNMAP
/* Define if you have the putenv function. */
#undef HAVE_PUTENV
/* Define if you have the setenv function. */
#undef HAVE_SETENV
/* Define if you have the setlocale function. */
#undef HAVE_SETLOCALE
/* Define if you have the stpcpy function. */
#undef HAVE_STPCPY
/* Define if you have the strcasecmp function. */
#undef HAVE_STRCASECMP
/* Define if you have the strchr function. */
#undef HAVE_STRCHR
/* Define if you have the strdup function. */
#undef HAVE_STRDUP
/* Define if you have the vsnprintf function. */
#undef HAVE_VSNPRINTF
/* Define if you have the <argz.h> header file. */
#undef HAVE_ARGZ_H
/* Define if you have the <dirent.h> header file. */
#undef HAVE_DIRENT_H
/* Define if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
/* Define if you have the <locale.h> header file. */
#undef HAVE_LOCALE_H
/* Define if you have the <malloc.h> header file. */
#undef HAVE_MALLOC_H
/* Define if you have the <ndir.h> header file. */
#undef HAVE_NDIR_H
/* Define if you have the <nl_types.h> header file. */
#undef HAVE_NL_TYPES_H
/* Define if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define if you have the <sys/dir.h> header file. */
#undef HAVE_SYS_DIR_H
/* Define if you have the <sys/ndir.h> header file. */
#undef HAVE_SYS_NDIR_H
/* Define if you have the <sys/param.h> header file. */
#undef HAVE_SYS_PARAM_H
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define if you have the i library (-li). */
#undef HAVE_LIBI

View File

@ -551,6 +551,28 @@ EOF
fi
fi
AC_ARG_WITH(gnome, [ --with-gnome Turn on GNOME support.],
[if test "x$with_gnome" != xno; then
AC_MSG_CHECKING(for GNOME)
if test -f `which gnome-config`; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GNOME)
if test -f `gnome-config --libdir`/bonoboConf.sh; then
AC_DEFINE(HAVE_BONOBO)
GNOME_CFLAGS=`gnome-config --cflags bonobo gnorba gnomeui`
GNOME_LIBS=`gnome-config --libs bonobo gnorba gnomeui`
else
GNOME_CFLAGS=`gnome-config --cflags gnorba gnomeui`
GNOME_LIBS=`gnome-config --libs gnorba gnomeui`
fi
else
AC_MSG_RESULT(no)
fi
fi], )
AC_SUBST(GNOME_LIBS)
AC_SUBST(GNOME_CFLAGS)
GIMPDOCS=
if test -n "$DISTMAKE"; then
WEBBROWSER=webbrowser TIFF=tiff JPEG=jpeg PNG=png AA=aa MPEG=mpeg

View File

@ -1,44 +0,0 @@
<!-- ##### SECTION Title ##### -->
gimpsignal
<!-- ##### SECTION Short_Description ##### -->
Portable signal handling.
<!-- ##### SECTION Long_Description ##### -->
<para>
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### MACRO gimp_signal_syscallrestart ##### -->
<para>
</para>
@x:
@y:
<!-- ##### USER_FUNCTION GimpRetSigType ##### -->
<para>
</para>
@Param1:
<!-- ##### FUNCTION gimp_signal_private ##### -->
<para>
</para>
@signum:
@gimp_sighandler:
@sa_flags:
@Returns:

View File

@ -1,252 +0,0 @@
# This is the Spanish locale definition for libgimp.
#
# Éste es el fichero con los mensajes en español de Gimp.
# Preguntas, consejos y correcciones _constructivas_ son
# bienvenidos.
#
# * Este fichero está sin terminar *
#
# Copyright (C) 1998-2000 Free Software Foundation, Inc.
# Rodrigo Sancho Senosiain <ruy_ikari@bigfoot.com>
#
# NOTAS PERSONALES:
# - Usar mayúsculas para nombres de elementos ("Gradiente")
# - "Cubo de relleno" no es muy afortunada
# - Hay que aclarar el significado de dodge/burn
# - De momento pongo "dibujable" por "drawable"
# - Hay que revisar los largos mensajes de instalación
#
msgid ""
msgstr ""
"Project-Id-Version: GIMP 1.1.20\n"
"POT-Creation-Date: 2000-04-20 19:32+0200\n"
"PO-Revision-Date: 2000-04-23 12:56+02:00\n"
"Last-Translator: Rodrigo Sancho Senosiain <ruy_ikari@bigfoot.com>\n"
"Language-Team: Spanish <es@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=iso-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
"\n"
#: libgimp/gimpcolorbutton.c:116
msgid "/Use Foreground Color"
msgstr "/Usar color de Frente"
#: libgimp/gimpcolorbutton.c:117
msgid "/Use Background Color"
msgstr "/Usar color de Fondo"
#: libgimp/gimpexport.c:158
msgid "can't Handle Layers"
msgstr "no puedo manejar Capas"
#: libgimp/gimpexport.c:159 libgimp/gimpexport.c:168
msgid "Merge Visible Layers"
msgstr "Mezclar Capas visibles"
#: libgimp/gimpexport.c:167 libgimp/gimpexport.c:176
msgid "can only Handle Layers as Animation Frames"
msgstr "sólo puedo manejar Capas como Fotogramas de Animación"
#: libgimp/gimpexport.c:168 libgimp/gimpexport.c:177
msgid "Save as Animation"
msgstr "Guardar como Animación"
#: libgimp/gimpexport.c:177 libgimp/gimpexport.c:186
msgid "Flatten Image"
msgstr "Aplanar Imagen"
#: libgimp/gimpexport.c:185
msgid "can't Handle Transparency"
msgstr "no puedo manejar transparencia"
#: libgimp/gimpexport.c:194
msgid "can only Handle RGB Images"
msgstr "sólo puedo manejar imágenes RGB"
#: libgimp/gimpexport.c:195 libgimp/gimpexport.c:223 libgimp/gimpexport.c:232
msgid "Convert to RGB"
msgstr "Convertir a RGB"
#: libgimp/gimpexport.c:203
msgid "can only Handle Grayscale Images"
msgstr "sólo puedo manejar imágenes en escala de grises"
#: libgimp/gimpexport.c:204 libgimp/gimpexport.c:223 libgimp/gimpexport.c:244
msgid "Convert to Grayscale"
msgstr "Convertir a Escala de grises"
#: libgimp/gimpexport.c:212
msgid "can only Handle Indexed Images"
msgstr "sólo puedo manejar imágenes indexadas"
#: libgimp/gimpexport.c:213 libgimp/gimpexport.c:232 libgimp/gimpexport.c:242
msgid ""
"Convert to indexed using default settings\n"
"(Do it manually to tune the result)"
msgstr ""
"Convertir a indexada usando ajustes por defecto\n"
"(Hágalo manualmente para afinar el resultado)"
#: libgimp/gimpexport.c:222
msgid "can only Handle RGB or Grayscale Images"
msgstr "sólo puedo manejar imágenes RGB o Escala de grises"
#: libgimp/gimpexport.c:231
msgid "can only Handle RGB or Indexed Images"
msgstr "sólo puedo manejar imágenes RGB o indexadas"
#: libgimp/gimpexport.c:241
msgid "can only Handle Grayscale or Indexed Images"
msgstr "sólo puedo manejar imágenes indexadas o Escala de grises"
#: libgimp/gimpexport.c:252
msgid "needs an Alpha Channel"
msgstr "necesita un Canal alfa"
#: libgimp/gimpexport.c:253
msgid "Add Alpha Channel"
msgstr "Añadir Canal alfa"
#.
#. * Plug-ins have called gtk_init () before calling gimp_export ().
#. * Otherwise bad things will happen now!!
#.
#. the dialog
#: libgimp/gimpexport.c:322
msgid "Export File"
msgstr "Exportar fichero"
#: libgimp/gimpexport.c:327
msgid "Export"
msgstr "Exportar"
#: libgimp/gimpexport.c:329
msgid "Ignore"
msgstr "Ignorar"
#: libgimp/gimpexport.c:331 libgimp/gimpquerybox.c:180
#: libgimp/gimpquerybox.c:234 libgimp/gimpquerybox.c:290
#: libgimp/gimpquerybox.c:353 libgimp/gimpunitmenu.c:497
msgid "Cancel"
msgstr "Cancelar"
#: libgimp/gimpexport.c:346
msgid ""
"Your image should be exported before it can be saved for the following "
"reasons:"
msgstr ""
"Su imagen debería ser exportada antes de que pueda guardarse por las "
"siguientes razones:"
#. the footline
#: libgimp/gimpexport.c:409
msgid "The export conversion won't modify your original image."
msgstr "La conversión de exportación no modificará su imagen original"
#: libgimp/gimpfileselection.c:388
msgid "Select File"
msgstr "Seleccione fichero"
#: libgimp/gimpquerybox.c:180 libgimp/gimpquerybox.c:234
#: libgimp/gimpquerybox.c:290 libgimp/gimpquerybox.c:353
#: libgimp/gimpunitmenu.c:495
msgid "OK"
msgstr "Aceptar"
#. pseudo unit
#: libgimp/gimpunit.c:47
msgid "pixel"
msgstr "píxel"
#: libgimp/gimpunit.c:47
msgid "pixels"
msgstr "píxeles"
#. standard units
#: libgimp/gimpunit.c:50
msgid "inch"
msgstr "pulgada"
#: libgimp/gimpunit.c:50
msgid "inches"
msgstr "pulgadas"
#: libgimp/gimpunit.c:51
msgid "millimeter"
msgstr "milímetro"
#: libgimp/gimpunit.c:51
msgid "millimeters"
msgstr "milímetros"
#. professional units
#: libgimp/gimpunit.c:54
msgid "point"
msgstr "punto"
#: libgimp/gimpunit.c:54
msgid "points"
msgstr "puntos"
#: libgimp/gimpunit.c:55
msgid "pica"
msgstr "pica"
#: libgimp/gimpunit.c:55
msgid "picas"
msgstr "picas"
#: libgimp/gimpunit.c:62
msgid "percent"
msgstr "por ciento"
#: libgimp/gimpunitmenu.c:234
msgid "More..."
msgstr "Más..."
#: libgimp/gimpunitmenu.c:490
msgid "Unit Selection"
msgstr "Selección de Unidad"
#: libgimp/gimpunitmenu.c:527
msgid "Unit"
msgstr "Unidad"
#: libgimp/gimpunitmenu.c:528
msgid "Factor"
msgstr "Factor"
#: libgimp/gimpwidgets.c:706
msgid ""
"If the \"Time\" button is not pressed, use this value for random number "
"generator seed - this allows you to repeat a given \"random\" operation"
msgstr ""
"Si el botón \"Tiempo\" no está pulsado, use este valor como semilla para el "
"generador de números aleatorios - permite que repita cualquier operación "
"\"aleatoria\""
#: libgimp/gimpwidgets.c:711
msgid "Time"
msgstr "Tiempo"
#: libgimp/gimpwidgets.c:720
msgid ""
"Seed random number generator from the current time - this guarantees a "
"reasonable randomization"
msgstr ""
"Tomar semilla para generador de números aleatorios del tiempo actual - "
"garantiza una aleatoriedad razonable"
#: libgimp/gimpwidgets.c:1032
msgid "Bytes"
msgstr "Bytes"
#: libgimp/gimpwidgets.c:1033
msgid "KiloBytes"
msgstr "KiloBytes"
#: libgimp/gimpwidgets.c:1034
msgid "MegaBytes"
msgstr "MegaBytes"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,6 @@
gimage
gimage_mask
gimprc
gimphelp
gradient
gradient_select
guides

View File

@ -1,55 +0,0 @@
# The GIMP -- an image manipulation program
# Copyright (C) 1995 Spencer Kimball and Peter Mattis
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# "Perlized" from C source by Sven Neumann <sven@gimp.org>
sub pdb_misc {
$author = $copyright = 'Michael Natterer <mitch@gimp.org>';
$date = '1999';
}
sub help {
my $path = $_;
$blurb = "Load a help page.";
$help = <<HELP;
This procedure loads the specified help page into the helpbrowser or what ever
is configured as help viewer. The location of the jelp page is given relative
to the help rootdir.
HELP
&pdb_misc;
@inargs = (
{ name => 'path', type => 'string',
desc => 'The location of the help page' }
);
%invoke = (
code => 'gimp_help (path);'
);
}
@headers = qw("gimphelp.h");
@procs = qw(help);
%exports = (app => [@procs]);
$desc = 'Help procedures';
1;