[timeline] Whitespace fixes

This commit is contained in:
Emmanuele Bassi 2009-01-27 10:31:53 +00:00
parent 2be9cdc267
commit 7863ca4a55

View File

@ -148,7 +148,7 @@ enum
LAST_SIGNAL LAST_SIGNAL
}; };
static guint timeline_signals[LAST_SIGNAL] = { 0 }; static guint timeline_signals[LAST_SIGNAL] = { 0, };
static gint timeline_use_pool = -1; static gint timeline_use_pool = -1;
static ClutterTimeoutPool *timeline_pool = NULL; static ClutterTimeoutPool *timeline_pool = NULL;
@ -254,21 +254,27 @@ clutter_timeline_set_property (GObject *object,
case PROP_FPS: case PROP_FPS:
clutter_timeline_set_speed (timeline, g_value_get_uint (value)); clutter_timeline_set_speed (timeline, g_value_get_uint (value));
break; break;
case PROP_NUM_FRAMES: case PROP_NUM_FRAMES:
clutter_timeline_set_n_frames (timeline, g_value_get_uint (value)); clutter_timeline_set_n_frames (timeline, g_value_get_uint (value));
break; break;
case PROP_LOOP: case PROP_LOOP:
priv->loop = g_value_get_boolean (value); priv->loop = g_value_get_boolean (value);
break; break;
case PROP_DELAY: case PROP_DELAY:
priv->delay = g_value_get_uint (value); priv->delay = g_value_get_uint (value);
break; break;
case PROP_DURATION: case PROP_DURATION:
clutter_timeline_set_duration (timeline, g_value_get_uint (value)); clutter_timeline_set_duration (timeline, g_value_get_uint (value));
break; break;
case PROP_DIRECTION: case PROP_DIRECTION:
clutter_timeline_set_direction (timeline, g_value_get_enum (value)); clutter_timeline_set_direction (timeline, g_value_get_enum (value));
break; break;
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break; break;
@ -292,21 +298,27 @@ clutter_timeline_get_property (GObject *object,
case PROP_FPS: case PROP_FPS:
g_value_set_uint (value, priv->fps); g_value_set_uint (value, priv->fps);
break; break;
case PROP_NUM_FRAMES: case PROP_NUM_FRAMES:
g_value_set_uint (value, priv->n_frames); g_value_set_uint (value, priv->n_frames);
break; break;
case PROP_LOOP: case PROP_LOOP:
g_value_set_boolean (value, priv->loop); g_value_set_boolean (value, priv->loop);
break; break;
case PROP_DELAY: case PROP_DELAY:
g_value_set_uint (value, priv->delay); g_value_set_uint (value, priv->delay);
break; break;
case PROP_DURATION: case PROP_DURATION:
g_value_set_uint (value, clutter_timeline_get_duration (timeline)); g_value_set_uint (value, clutter_timeline_get_duration (timeline));
break; break;
case PROP_DIRECTION: case PROP_DIRECTION:
g_value_set_enum (value, priv->direction); g_value_set_enum (value, priv->direction);
break; break;
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break; break;
@ -811,6 +823,7 @@ timeline_timeout_add (ClutterTimeline *timeline,
g_get_current_time (&timeval); g_get_current_time (&timeval);
priv->prev_frame_timeval = timeval; priv->prev_frame_timeval = timeval;
} }
priv->skipped_frames = 0; priv->skipped_frames = 0;
priv->msecs_delta = 0; priv->msecs_delta = 0;