mirror of https://github.com/GNOME/gimp.git
added GIMP_CHECK_VERSION macro and a features #define for 1.1.5
* libgimp/gimpfeatures.h.in: added GIMP_CHECK_VERSION macro and a features #define for 1.1.5 * app/misc_cmds.c: added a gimp_version PDB function that returns the current version (new file) * app/internal_procs.c: register gimp_version PDB function -Yosh
This commit is contained in:
parent
4151b821c7
commit
a11b5b6880
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
Tue Apr 13 00:01:24 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* libgimp/gimpfeatures.h.in: added GIMP_CHECK_VERSION macro and
|
||||
a features #define for 1.1.5
|
||||
|
||||
* app/misc_cmds.c: added a gimp_version PDB function that
|
||||
returns the current version (new file)
|
||||
|
||||
* app/internal_procs.c: register gimp_version PDB function
|
||||
|
||||
Mon Apr 12 21:54:48 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* app/boundary.c: code cleanup
|
||||
|
|
|
@ -255,6 +255,7 @@ gimp_SOURCES = \
|
|||
marching_ants.h \
|
||||
menus.c \
|
||||
menus.h \
|
||||
misc_cmds.c \
|
||||
module_db.c \
|
||||
module_db.h \
|
||||
move.c \
|
||||
|
|
|
@ -76,6 +76,7 @@ void register_palette_procs (void);
|
|||
void register_unit_procs (void);
|
||||
void register_text_tool_procs (void);
|
||||
void register_color_procs (void);
|
||||
void register_misc_procs (void);
|
||||
|
||||
void
|
||||
internal_procs_init ()
|
||||
|
@ -422,4 +423,6 @@ internal_procs_init ()
|
|||
procedural_db_register (&procedural_db_get_data_proc); pcount++;
|
||||
procedural_db_register (&procedural_db_set_data_proc); pcount++;
|
||||
procedural_db_register (&procedural_db_get_data_size_proc); pcount++;
|
||||
|
||||
register_misc_procs ();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,67 @@
|
|||
/* 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 "libgimp/gimpfeatures.h"
|
||||
|
||||
static ProcRecord version_proc;
|
||||
|
||||
void
|
||||
register_misc_procs (void)
|
||||
{
|
||||
procedural_db_register (&version_proc);
|
||||
}
|
||||
|
||||
static Argument *
|
||||
version_invoker (Argument *args)
|
||||
{
|
||||
Argument *return_args;
|
||||
|
||||
return_args = procedural_db_return_args (&version_proc, TRUE);
|
||||
return_args[1].value.pdb_pointer = g_strdup (GIMP_VERSION);
|
||||
|
||||
return return_args;
|
||||
}
|
||||
|
||||
static ProcArg version_outargs[] =
|
||||
{
|
||||
{
|
||||
PDB_STRING,
|
||||
"version",
|
||||
"The gimp version"
|
||||
}
|
||||
};
|
||||
|
||||
static ProcRecord version_proc =
|
||||
{
|
||||
"gimp_version",
|
||||
"Returns the host gimp version.",
|
||||
"This procedure returns the version number of the currently running gimp.",
|
||||
"Manish Singh",
|
||||
"Manish Singh",
|
||||
"1999",
|
||||
PDB_INTERNAL,
|
||||
0,
|
||||
NULL,
|
||||
1,
|
||||
version_outargs,
|
||||
{ { version_invoker } }
|
||||
};
|
|
@ -4,7 +4,7 @@ AC_INIT(gimprc.in)
|
|||
dnl Initialize automake stuff
|
||||
GIMP_MAJOR_VERSION=1
|
||||
GIMP_MINOR_VERSION=1
|
||||
GIMP_MICRO_VERSION=4
|
||||
GIMP_MICRO_VERSION=5
|
||||
GIMP_INTERFACE_AGE=0
|
||||
GIMP_BINARY_AGE=0
|
||||
GIMP_VERSION=$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION.$GIMP_MICRO_VERSION
|
||||
|
|
|
@ -29,12 +29,19 @@ extern "C" {
|
|||
#define GIMP_MINOR_VERSION (@GIMP_MINOR_VERSION@)
|
||||
#define GIMP_MICRO_VERSION (@GIMP_MICRO_VERSION@)
|
||||
#define GIMP_VERSION "@GIMP_VERSION@"
|
||||
#define GIMP_CHECK_VERSION(major, minor, micro) \
|
||||
(GIMP_MAJOR_VERSION > (major) || \
|
||||
(GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION > (minor)) || \
|
||||
(GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION == (minor) && \
|
||||
GIMP_MICRO_VERSION >= (micro)))
|
||||
|
||||
#define GIMP_HAVE_PROCEDURAL_DB_GET_DATA_SIZE 1-1-0
|
||||
#define GIMP_HAVE_PARASITES 1-1-0
|
||||
#define GIMP_HAVE_RESOLUTION_INFO 1-1-0
|
||||
#define GIMP_HAVE_DESTROY_PARAMDEFS 1-1-0
|
||||
|
||||
#define GIMP_HAVE_FEATURES_1_1_5 1-1-5
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
|
@ -29,12 +29,19 @@ extern "C" {
|
|||
#define GIMP_MINOR_VERSION (@GIMP_MINOR_VERSION@)
|
||||
#define GIMP_MICRO_VERSION (@GIMP_MICRO_VERSION@)
|
||||
#define GIMP_VERSION "@GIMP_VERSION@"
|
||||
#define GIMP_CHECK_VERSION(major, minor, micro) \
|
||||
(GIMP_MAJOR_VERSION > (major) || \
|
||||
(GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION > (minor)) || \
|
||||
(GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION == (minor) && \
|
||||
GIMP_MICRO_VERSION >= (micro)))
|
||||
|
||||
#define GIMP_HAVE_PROCEDURAL_DB_GET_DATA_SIZE 1-1-0
|
||||
#define GIMP_HAVE_PARASITES 1-1-0
|
||||
#define GIMP_HAVE_RESOLUTION_INFO 1-1-0
|
||||
#define GIMP_HAVE_DESTROY_PARAMDEFS 1-1-0
|
||||
|
||||
#define GIMP_HAVE_FEATURES_1_1_5 1-1-5
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
|
@ -18,4 +18,5 @@
|
|||
# Modify this list for the groups to parse in the pdb directory
|
||||
@groups = qw(gdisplay edit floating_sel undo palette gradient convert
|
||||
channel_ops gimprc drawable parasite paths gradient_select
|
||||
unit procedural_db brushes text_tool brush_select color);
|
||||
unit procedural_db brushes text_tool brush_select color
|
||||
misc);
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
# The GIMP -- an image manipulation program
|
||||
# Copyright (C) 1999 Manish Singh
|
||||
|
||||
# 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.
|
||||
|
||||
sub version {
|
||||
$blurb = <<'BLURB';
|
||||
Returns the host gimp version.
|
||||
BLURB
|
||||
|
||||
$help = <<'HELP';
|
||||
This procedure returns the version number of the currently running gimp.
|
||||
HELP
|
||||
|
||||
$author = $copyright = 'Manish Singh';
|
||||
$date = '1999';
|
||||
|
||||
@outargs = (
|
||||
{ name => 'version', type => 'string',
|
||||
desc => 'The gimp version',
|
||||
alias => 'g_strdup (GIMP_VERSION)', no_declare => 1 }
|
||||
);
|
||||
|
||||
%invoke = ( headers => [ qw("libgimp/gimpfeatures.h") ] );
|
||||
}
|
||||
|
||||
@procs = qw(version);
|
||||
%exports = (app => [@procs]);
|
||||
|
||||
$desc = 'Miscellaneous procedures';
|
||||
|
||||
1;
|
Loading…
Reference in New Issue