[gimp/soc-2013-combined-selection-tool] minor enum to boolean error



commit 7f21332564cbdd5b96797a0ed3a015a2eb576f28
Author: Ajay Ramanathan <ajay 010293 gmail com>
Date:   Thu Sep 26 17:38:28 2013 +0530

    minor enum to boolean error

 app/core/core-enums.c                  |   11 +++++------
 app/tools/gimprectangleselectoptions.c |    2 +-
 2 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/app/core/core-enums.c b/app/core/core-enums.c
index 1a59baa..0b7be47 100644
--- a/app/core/core-enums.c
+++ b/app/core/core-enums.c
@@ -8,7 +8,6 @@
 #include "gimp-intl.h"
 
 /* enumerations from "./core-enums.h" */
-
 GType
 gimp_shape_type_get_type (void)
 {
@@ -24,11 +23,11 @@ gimp_shape_type_get_type (void)
 
   static const GimpEnumDesc descs[] =
   {
-    { GIMP_SHAPE_RECTANGLE, NC_("shape-type", "Rectnagle"), NULL },
-    { GIMP_SHAPE_ELLIPSE, NC_("shape-type", "Ellipse"), NULL },
-    { GIMP_SHAPE_ROUNDED_RECT, NC_("shape-type", "Rounded Rectangle"), NULL },
-    { GIMP_SHAPE_N_POLYGON, NC_("shape-type", "n Polygon"), NULL },
-    { GIMP_SHAPE_SINGLE_ROW, NC_("shaoe-type", "Single Row"), NULL },
+    { GIMP_SHAPE_RECTANGLE, "GIMP_SHAPE_RECTANGLE", NULL },
+    { GIMP_SHAPE_ELLIPSE, "GIMP_SHAPE_ELLIPSE", NULL },
+    { GIMP_SHAPE_ROUNDED_RECT, "GIMP_SHAPE_ROUNDED_RECT", NULL },
+    { GIMP_SHAPE_N_POLYGON, "GIMP_SHAPE_N_POLYGON", NULL },
+    { GIMP_SHAPE_SINGLE_ROW, "GIMP_SHAPE_SINGLE_ROW", NULL },
     { 0, NULL, NULL }
   };
 
diff --git a/app/tools/gimprectangleselectoptions.c b/app/tools/gimprectangleselectoptions.c
index 49d0e7e..3c1308c 100644
--- a/app/tools/gimprectangleselectoptions.c
+++ b/app/tools/gimprectangleselectoptions.c
@@ -149,7 +149,7 @@ gimp_rectangle_select_options_set_property (GObject      *object,
       break; 
 
     case PROP_LINE_ORIENTATION:
-      options->line_orientation = g_value_get_boolean (value);
+      options->line_orientation = g_value_get_enum (value);
       break;   
     
     case PROP_N_SIDES:


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