Use G_VALUE_INIT instead of { 0, }

The macro avoids warnings from anal-retentive compilers.
This commit is contained in:
Emmanuele Bassi
2012-03-17 16:38:06 +00:00
parent be5921e6fb
commit b3b1994c13
13 changed files with 39 additions and 34 deletions

View File

@@ -339,7 +339,7 @@ clutter_state_key_new (State *state,
{
ClutterStatePrivate *priv = state->clutter_state->priv;
ClutterStateKey *state_key;
GValue value = { 0, };
GValue value = G_VALUE_INIT;
state_key = g_slice_new0 (ClutterStateKey);
@@ -600,7 +600,7 @@ clutter_state_new_frame (ClutterTimeline *timeline,
if (key->is_animatable)
{
ClutterAnimatable *animatable;
GValue value = { 0, };
GValue value = G_VALUE_INIT;
gboolean res;
animatable = CLUTTER_ANIMATABLE (key->object);
@@ -735,7 +735,7 @@ clutter_state_change (ClutterState *state,
for (k = new_state->keys; k != NULL; k = k->next)
{
ClutterStateKey *key = k->data;
GValue initial = { 0, };
GValue initial = G_VALUE_INIT;
/* Reset the pre-pre-delay - this is only used for setting keys
* during transitions.
@@ -985,7 +985,7 @@ clutter_state_set (ClutterState *state,
while (object != NULL)
{
GParamSpec *pspec;
GValue value = { 0, };
GValue value = G_VALUE_INIT;
gchar *error = NULL;
gboolean is_delayed = FALSE;
@@ -1095,7 +1095,7 @@ clutter_state_set_key_internal (ClutterState *state,
else
{
/* Set the ClutterInterval associated with the state */
GValue initial = { 0, };
GValue initial = G_VALUE_INIT;
gdouble progress = clutter_timeline_get_progress (priv->timeline);
g_value_init (&initial,