From 4e68780710fdc29db5b479a67832886bfe083d46 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Sun, 2 May 1999 21:58:57 +0000 Subject: [PATCH] guide types used to start at 1, so make them start at 1 * app/gimpimage.h: guide types used to start at 1, so make them start at 1 * tools/pdbgen/enums.pl * app/guides_cmds.c: autogenned files reflect above change -Yosh --- ChangeLog | 8 ++++++++ app/core/gimpimage-guides.h | 2 +- app/core/gimpimage-merge.h | 2 +- app/core/gimpimage-projection.h | 2 +- app/core/gimpimage-resize.h | 2 +- app/core/gimpimage-scale.h | 2 +- app/core/gimpimage.h | 2 +- app/core/gimpprojection-construct.h | 2 +- app/gimpimage.h | 2 +- app/guides_cmds.c | 2 +- tools/pdbgen/enums.pl | 6 +++--- 11 files changed, 20 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 584340a57f..4bbd6917c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Sun May 2 14:56:52 PDT 1999 Manish Singh + + * app/gimpimage.h: guide types used to start at 1, so make them + start at 1 + + * tools/pdbgen/enums.pl + * app/guides_cmds.c: autogenned files reflect above change + 1999-05-02 Michael Natterer * app/commands.c diff --git a/app/core/gimpimage-guides.h b/app/core/gimpimage-guides.h index e52d0af02a..0324fca9b3 100644 --- a/app/core/gimpimage-guides.h +++ b/app/core/gimpimage-guides.h @@ -58,7 +58,7 @@ typedef enum #define COLORMAP_SIZE 768 typedef enum { /*< chop=_GUIDE >*/ - HORIZONTAL_GUIDE, + HORIZONTAL_GUIDE = 1, VERTICAL_GUIDE } GuideOrientation; diff --git a/app/core/gimpimage-merge.h b/app/core/gimpimage-merge.h index e52d0af02a..0324fca9b3 100644 --- a/app/core/gimpimage-merge.h +++ b/app/core/gimpimage-merge.h @@ -58,7 +58,7 @@ typedef enum #define COLORMAP_SIZE 768 typedef enum { /*< chop=_GUIDE >*/ - HORIZONTAL_GUIDE, + HORIZONTAL_GUIDE = 1, VERTICAL_GUIDE } GuideOrientation; diff --git a/app/core/gimpimage-projection.h b/app/core/gimpimage-projection.h index e52d0af02a..0324fca9b3 100644 --- a/app/core/gimpimage-projection.h +++ b/app/core/gimpimage-projection.h @@ -58,7 +58,7 @@ typedef enum #define COLORMAP_SIZE 768 typedef enum { /*< chop=_GUIDE >*/ - HORIZONTAL_GUIDE, + HORIZONTAL_GUIDE = 1, VERTICAL_GUIDE } GuideOrientation; diff --git a/app/core/gimpimage-resize.h b/app/core/gimpimage-resize.h index e52d0af02a..0324fca9b3 100644 --- a/app/core/gimpimage-resize.h +++ b/app/core/gimpimage-resize.h @@ -58,7 +58,7 @@ typedef enum #define COLORMAP_SIZE 768 typedef enum { /*< chop=_GUIDE >*/ - HORIZONTAL_GUIDE, + HORIZONTAL_GUIDE = 1, VERTICAL_GUIDE } GuideOrientation; diff --git a/app/core/gimpimage-scale.h b/app/core/gimpimage-scale.h index e52d0af02a..0324fca9b3 100644 --- a/app/core/gimpimage-scale.h +++ b/app/core/gimpimage-scale.h @@ -58,7 +58,7 @@ typedef enum #define COLORMAP_SIZE 768 typedef enum { /*< chop=_GUIDE >*/ - HORIZONTAL_GUIDE, + HORIZONTAL_GUIDE = 1, VERTICAL_GUIDE } GuideOrientation; diff --git a/app/core/gimpimage.h b/app/core/gimpimage.h index e52d0af02a..0324fca9b3 100644 --- a/app/core/gimpimage.h +++ b/app/core/gimpimage.h @@ -58,7 +58,7 @@ typedef enum #define COLORMAP_SIZE 768 typedef enum { /*< chop=_GUIDE >*/ - HORIZONTAL_GUIDE, + HORIZONTAL_GUIDE = 1, VERTICAL_GUIDE } GuideOrientation; diff --git a/app/core/gimpprojection-construct.h b/app/core/gimpprojection-construct.h index e52d0af02a..0324fca9b3 100644 --- a/app/core/gimpprojection-construct.h +++ b/app/core/gimpprojection-construct.h @@ -58,7 +58,7 @@ typedef enum #define COLORMAP_SIZE 768 typedef enum { /*< chop=_GUIDE >*/ - HORIZONTAL_GUIDE, + HORIZONTAL_GUIDE = 1, VERTICAL_GUIDE } GuideOrientation; diff --git a/app/gimpimage.h b/app/gimpimage.h index e52d0af02a..0324fca9b3 100644 --- a/app/gimpimage.h +++ b/app/gimpimage.h @@ -58,7 +58,7 @@ typedef enum #define COLORMAP_SIZE 768 typedef enum { /*< chop=_GUIDE >*/ - HORIZONTAL_GUIDE, + HORIZONTAL_GUIDE = 1, VERTICAL_GUIDE } GuideOrientation; diff --git a/app/guides_cmds.c b/app/guides_cmds.c index 5047af6b91..2ef352afac 100644 --- a/app/guides_cmds.c +++ b/app/guides_cmds.c @@ -442,7 +442,7 @@ static ProcArg image_get_guide_orientation_outargs[] = { PDB_INT32, "orientation", - "The guide's orientation: { HORIZONTAL (0), VERTICAL (1) }" + "The guide's orientation: { HORIZONTAL (1), VERTICAL (2) }" } }; diff --git a/tools/pdbgen/enums.pl b/tools/pdbgen/enums.pl index a771f44737..6fb3aaba33 100644 --- a/tools/pdbgen/enums.pl +++ b/tools/pdbgen/enums.pl @@ -83,11 +83,11 @@ package Gimp::CodeGen::enums; INDEXED => '2' } }, GuideOrientation => - { contig => 1, + { contig => 0, header => 'gimpimage.h', symbols => [ qw(HORIZONTAL_GUIDE VERTICAL_GUIDE) ], - mapping => { HORIZONTAL_GUIDE => '0', - VERTICAL_GUIDE => '1' }, + mapping => { HORIZONTAL_GUIDE => '1', + VERTICAL_GUIDE => '2' }, nicks => { HORIZONTAL_GUIDE => 'HORIZONTAL', VERTICAL_GUIDE => 'VERTICAL' } },