mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
2007-12-24 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-color.c: * clutter/clutter-event.c: * clutter/clutter-stage.c: Intern more strings using the I_() macro * clutter/clutter-enum-types.c.in: Call g_intern_static_string() in the enum types template
This commit is contained in:
parent
48f3ffeb95
commit
87a9232d8a
@ -1,3 +1,12 @@
|
||||
2007-12-24 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* clutter/clutter-color.c:
|
||||
* clutter/clutter-event.c:
|
||||
* clutter/clutter-stage.c: Intern more strings using the I_() macro
|
||||
|
||||
* clutter/clutter-enum-types.c.in: Call g_intern_static_string()
|
||||
in the enum types template
|
||||
|
||||
2007-12-24 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* clutter.symbols: Add clutter_actor_set_clipu() and
|
||||
|
@ -621,7 +621,7 @@ clutter_color_get_type (void)
|
||||
static GType our_type = 0;
|
||||
|
||||
if (!our_type)
|
||||
our_type = g_boxed_type_register_static ("ClutterColor",
|
||||
our_type = g_boxed_type_register_static (I_("ClutterColor"),
|
||||
(GBoxedCopyFunc) clutter_color_copy,
|
||||
(GBoxedFreeFunc) clutter_color_free);
|
||||
return our_type;
|
||||
|
@ -10,8 +10,8 @@
|
||||
/*** BEGIN value-header ***/
|
||||
GType
|
||||
@enum_name@_get_type(void) {
|
||||
static GType enum_type_id = 0;
|
||||
if (G_UNLIKELY (!enum_type_id))
|
||||
static GType etype = 0;
|
||||
if (G_UNLIKELY (!etype))
|
||||
{
|
||||
static const G@Type@Value values[] = {
|
||||
/*** END value-header ***/
|
||||
@ -23,7 +23,7 @@ GType
|
||||
/*** BEGIN value-tail ***/
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
enum_type_id = g_@type@_register_static("@EnumName@", values);
|
||||
etype = g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
|
||||
}
|
||||
return enum_type_id;
|
||||
}
|
||||
|
@ -298,7 +298,7 @@ clutter_event_get_type (void)
|
||||
static GType our_type = 0;
|
||||
|
||||
if (!our_type)
|
||||
our_type = g_boxed_type_register_static ("ClutterEvent",
|
||||
our_type = g_boxed_type_register_static (I_("ClutterEvent"),
|
||||
(GBoxedCopyFunc) clutter_event_copy,
|
||||
(GBoxedFreeFunc) clutter_event_free);
|
||||
return our_type;
|
||||
|
@ -1291,7 +1291,7 @@ clutter_perspective_get_type (void)
|
||||
|
||||
if (!our_type)
|
||||
our_type =
|
||||
g_boxed_type_register_static ("ClutterPerspective",
|
||||
g_boxed_type_register_static (I_("ClutterPerspective"),
|
||||
(GBoxedCopyFunc) clutter_perspective_copy,
|
||||
(GBoxedFreeFunc) clutter_perspective_free);
|
||||
return our_type;
|
||||
@ -1324,7 +1324,7 @@ clutter_fog_get_type (void)
|
||||
|
||||
if (G_UNLIKELY (our_type == 0))
|
||||
our_type =
|
||||
g_boxed_type_register_static ("ClutterFog",
|
||||
g_boxed_type_register_static (I_("ClutterFog"),
|
||||
(GBoxedCopyFunc) clutter_fog_copy,
|
||||
(GBoxedFreeFunc) clutter_fog_free);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user