[gimp/metadata-browser] Bug 667427 - Bad ink shape hint



commit d65958305f438422ccaa4b603d62bad81dbda91e
Author: Michael Natterer <mitch gimp org>
Date:   Sat Jan 7 22:09:18 2012 +0100

    Bug 667427 - Bad ink shape hint
    
    Add translatable descriptions to enum GimpInkBlobType so they appear
    as tooltips instead of "GIMP_INK_BLOB_TYPE_FOO".

 app/paint/paint-enums.c |    6 +++---
 app/paint/paint-enums.h |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/app/paint/paint-enums.c b/app/paint/paint-enums.c
index b565a95..eacf695 100644
--- a/app/paint/paint-enums.c
+++ b/app/paint/paint-enums.c
@@ -141,9 +141,9 @@ gimp_ink_blob_type_get_type (void)
 
   static const GimpEnumDesc descs[] =
   {
-    { GIMP_INK_BLOB_TYPE_CIRCLE, "GIMP_INK_BLOB_TYPE_CIRCLE", NULL },
-    { GIMP_INK_BLOB_TYPE_SQUARE, "GIMP_INK_BLOB_TYPE_SQUARE", NULL },
-    { GIMP_INK_BLOB_TYPE_DIAMOND, "GIMP_INK_BLOB_TYPE_DIAMOND", NULL },
+    { GIMP_INK_BLOB_TYPE_CIRCLE, NC_("ink-blob-type", "Circle"), NULL },
+    { GIMP_INK_BLOB_TYPE_SQUARE, NC_("ink-blob-type", "Square"), NULL },
+    { GIMP_INK_BLOB_TYPE_DIAMOND, NC_("ink-blob-type", "Diamond"), NULL },
     { 0, NULL, NULL }
   };
 
diff --git a/app/paint/paint-enums.h b/app/paint/paint-enums.h
index 8a92931..1bfcd81 100644
--- a/app/paint/paint-enums.h
+++ b/app/paint/paint-enums.h
@@ -88,9 +88,9 @@ GType gimp_ink_blob_type_get_type (void) G_GNUC_CONST;
 
 typedef enum  /*< pdb-skip >*/
 {
-  GIMP_INK_BLOB_TYPE_CIRCLE,
-  GIMP_INK_BLOB_TYPE_SQUARE,
-  GIMP_INK_BLOB_TYPE_DIAMOND
+  GIMP_INK_BLOB_TYPE_CIRCLE,  /*< desc="Circle"  >*/
+  GIMP_INK_BLOB_TYPE_SQUARE,  /*< desc="Square"  >*/
+  GIMP_INK_BLOB_TYPE_DIAMOND  /*< desc="Diamond" >*/
 } GimpInkBlobType;
 
 



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