[gimp/soc-2013-combined-selection-tool: 229/230] enums list



commit 61fde4961dd01d8a1283a17e0e16ae1a3aba069e
Author: Ajay Ramanathan <ajay 010293 gmail com>
Date:   Fri Sep 20 18:59:58 2013 +0530

    enums list

 libgimp/gimpenums.c.tail |    2 ++
 libgimp/gimpenums.h      |   14 ++++++++++++++
 tools/pdbgen/enums.pl    |   12 ++++++++++++
 3 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/libgimp/gimpenums.c.tail b/libgimp/gimpenums.c.tail
index 8094ec0..ddec9cb 100644
--- a/libgimp/gimpenums.c.tail
+++ b/libgimp/gimpenums.c.tail
@@ -48,6 +48,7 @@ static const GimpGetTypeFunc get_type_funcs[] =
   gimp_rotation_type_get_type,
   gimp_run_mode_get_type,
   gimp_select_criterion_get_type,
+  gimp_shape_type_get_type,
   gimp_size_type_get_type,
   gimp_stack_trace_mode_get_type,
   gimp_text_direction_get_type,
@@ -107,6 +108,7 @@ static const gchar * const type_names[] =
   "GimpRotationType",
   "GimpRunMode",
   "GimpSelectCriterion",
+  "GimpShapeType",
   "GimpSizeType",
   "GimpStackTraceMode",
   "GimpTextDirection",
diff --git a/libgimp/gimpenums.h b/libgimp/gimpenums.h
index 77c0c63..7b36c90 100644
--- a/libgimp/gimpenums.h
+++ b/libgimp/gimpenums.h
@@ -319,6 +319,20 @@ typedef enum
 } GimpSelectCriterion;
 
 
+#define GIMP_TYPE_SHAPE_TYPE (gimp_shape_type_get_type ())
+
+GType gimp_shape_type_get_type (void) G_GNUC_CONST;
+
+typedef enum
+{
+  GIMP_SHAPE_RECTANGLE,
+  GIMP_SHAPE_ELLIPSE,
+  GIMP_SHAPE_ROUNDED_RECT,
+  GIMP_SHAPE_N_POLYGON,
+  GIMP_SHAPE_SINGLE_ROW
+} GimpShapeType;
+
+
 void           gimp_enums_init           (void);
 
 const gchar ** gimp_enums_get_type_names (gint *n_type_names);
diff --git a/tools/pdbgen/enums.pl b/tools/pdbgen/enums.pl
index 6132b72..cd4f1b4 100644
--- a/tools/pdbgen/enums.pl
+++ b/tools/pdbgen/enums.pl
@@ -415,6 +415,18 @@ package Gimp::CodeGen::enums;
          symbols => [ qw(GIMP_VECTORS_STROKE_TYPE_BEZIER) ],
          mapping => { GIMP_VECTORS_STROKE_TYPE_BEZIER => '0' }
        },
+    GimpShapeType =>
+       { contig => 1,
+         header => 'core/core-enums.h',
+         symbols => [ qw(GIMP_SHAPE_RECTANGLE GIMP_SHAPE_ELLIPSE
+                         GIMP_SHAPE_ROUNDED_RECT GIMP_SHAPE_N_POLYGON
+                         GIMP_SHAPE_SINGLE_ROW) ],
+         mapping => { GIMP_SHAPE_RECTANGLE => '0',
+                      GIMP_SHAPE_ELLIPSE => '1',
+                      GIMP_SHAPE_ROUNDED_RECT => '2',
+                      GIMP_SHAPE_N_POLYGON => '3',
+                      GIMP_SHAPE_SINGLE_ROW => '4' }
+       },
     GimpComponentType =>
        { contig => 0,
          header => 'core/core-enums.h',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]