[cogl/lionel/introspection-next: 43/44] cogl: gtype: remove string quotes from gtype definitions



commit 879425b83d774cd2f021b3e238003713e7158381
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Sun Jan 12 03:47:29 2014 +0000

    cogl: gtype: remove string quotes from gtype definitions

 cogl/cogl-color.c         |    2 +-
 cogl/cogl-euler.c         |    2 +-
 cogl/cogl-gtype-private.h |    2 +-
 cogl/cogl-matrix-stack.c  |    4 +++-
 cogl/cogl-matrix.c        |    2 +-
 cogl/cogl-quaternion.c    |    2 +-
 6 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/cogl/cogl-color.c b/cogl/cogl-color.c
index 5a6af18..b625073 100644
--- a/cogl/cogl-color.c
+++ b/cogl/cogl-color.c
@@ -33,7 +33,7 @@
 #include "cogl-color-private.h"
 #include "cogl-gtype-private.h"
 
-COGL_GTYPE_DEFINE_BOXED ("Color", color, cogl_color_copy, cogl_color_free);
+COGL_GTYPE_DEFINE_BOXED (Color, color, cogl_color_copy, cogl_color_free);
 
 CoglColor *
 cogl_color_new (void)
diff --git a/cogl/cogl-euler.c b/cogl/cogl-euler.c
index 65a26db..73325f3 100644
--- a/cogl/cogl-euler.c
+++ b/cogl/cogl-euler.c
@@ -36,7 +36,7 @@
 #include <math.h>
 #include <string.h>
 
-COGL_GTYPE_DEFINE_BOXED ("Euler", euler,
+COGL_GTYPE_DEFINE_BOXED (Euler, euler,
                          cogl_euler_copy,
                          cogl_euler_free);
 
diff --git a/cogl/cogl-gtype-private.h b/cogl/cogl-gtype-private.h
index 12281f3..63b5d32 100644
--- a/cogl/cogl-gtype-private.h
+++ b/cogl/cogl-gtype-private.h
@@ -62,7 +62,7 @@ cogl_##underscore_name##_get_gtype (void) \
    if (g_once_init_enter (&type_volatile)) \
      { \
        GType type = \
-         g_boxed_type_register_static (g_intern_static_string ("Cogl" Name), \
+         g_boxed_type_register_static (g_intern_static_string (I_("Cogl" # Name)), \
                                        (GBoxedCopyFunc)copy_func, \
                                        (GBoxedFreeFunc)free_func); \
        g_once_init_leave (&type_volatile, type); \
diff --git a/cogl/cogl-matrix-stack.c b/cogl/cogl-matrix-stack.c
index 0ee0e12..c71f5d9 100644
--- a/cogl/cogl-matrix-stack.c
+++ b/cogl/cogl-matrix-stack.c
@@ -43,7 +43,9 @@ static void _cogl_matrix_stack_free (CoglMatrixStack *stack);
 
 COGL_OBJECT_DEFINE (MatrixStack, matrix_stack);
 COGL_GTYPE_DEFINE_CLASS (MatrixStack, matrix_stack);
-COGL_GTYPE_DEFINE_BOXED ("MatrixEntry", matrix_entry, cogl_matrix_entry_ref, cogl_matrix_entry_unref);
+COGL_GTYPE_DEFINE_BOXED (MatrixEntry, matrix_entry,
+                         cogl_matrix_entry_ref,
+                         cogl_matrix_entry_unref);
 
 static CoglMagazine *cogl_matrix_stack_magazine;
 static CoglMagazine *cogl_matrix_stack_matrices_magazine;
diff --git a/cogl/cogl-matrix.c b/cogl/cogl-matrix.c
index cc82531..c806052 100644
--- a/cogl/cogl-matrix.c
+++ b/cogl/cogl-matrix.c
@@ -78,7 +78,7 @@
 #include <string.h>
 
 #include <cogl-gtype-private.h>
-COGL_GTYPE_DEFINE_BOXED ("Matrix", matrix,
+COGL_GTYPE_DEFINE_BOXED (Matrix, matrix,
                          cogl_matrix_copy,
                          cogl_matrix_free);
 
diff --git a/cogl/cogl-quaternion.c b/cogl/cogl-quaternion.c
index 0e1b057..e56ef8d 100644
--- a/cogl/cogl-quaternion.c
+++ b/cogl/cogl-quaternion.c
@@ -51,7 +51,7 @@
 
 #define FLOAT_EPSILON 1e-03
 
-COGL_GTYPE_DEFINE_BOXED ("Quaternion", quaternion,
+COGL_GTYPE_DEFINE_BOXED (Quaternion, quaternion,
                          cogl_quaternion_copy,
                          cogl_quaternion_free);
 


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