~cimi/overlay-scrollbar/fix-window-group

« back to all changes in this revision

Viewing changes to os/os-animation.c

  • Committer: Andrea Cimitan
  • Date: 2011-06-09 14:52:24 UTC
  • mfrom: (244.2.1 coding-style-on-pointers)
  • Revision ID: andrea.cimitan@canonical.com-20110609145224-tl702cwc8mttojhi
Merged branch coding-style-on-pointers-and-removed-whitelist

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
  guint32 source_id;
38
38
};
39
39
 
40
 
static void os_animation_dispose (GObject* object);
41
 
static void os_animation_finalize (GObject* object);
 
40
static void os_animation_dispose (GObject *object);
 
41
static void os_animation_finalize (GObject *object);
42
42
 
43
43
G_DEFINE_TYPE (OsAnimation, os_animation, G_TYPE_OBJECT);
44
44
 
69
69
}
70
70
 
71
71
static void
72
 
os_animation_dispose (GObject* object)
 
72
os_animation_dispose (GObject *object)
73
73
{
74
74
  OsAnimation *animation;
75
75
  OsAnimationPrivate *priv;
87
87
}
88
88
 
89
89
static void
90
 
os_animation_finalize (GObject* object)
 
90
os_animation_finalize (GObject *object)
91
91
{
92
92
  G_OBJECT_CLASS (os_animation_parent_class)->finalize (object);
93
93
}
107
107
 * Returns: the pointer to the #OsAnimation
108
108
 */
109
109
OsAnimation*
110
 
os_animation_new (gint32 rate,
111
 
                  gint32 duration,
 
110
os_animation_new (gint32                rate,
 
111
                  gint32                duration,
112
112
                  OsAnimationUpdateFunc update_func,
113
 
                  OsAnimationEndFunc end_func,
114
 
                  gpointer user_data)
 
113
                  OsAnimationEndFunc    end_func,
 
114
                  gpointer              user_data)
115
115
{
116
 
  OsAnimation* animation;
117
 
  OsAnimationPrivate* priv;
 
116
  OsAnimation *animation;
 
117
  OsAnimationPrivate *priv;
118
118
 
119
119
  g_return_val_if_fail (rate != 0, NULL);
120
120
  g_return_val_if_fail (duration != 0, NULL);
140
140
 * Sets the new duration of the animation
141
141
 **/
142
142
void
143
 
os_animation_set_duration (OsAnimation* animation,
144
 
                           gint32 duration)
 
143
os_animation_set_duration (OsAnimation *animation,
 
144
                           gint32       duration)
145
145
{
146
 
  OsAnimationPrivate* priv;
 
146
  OsAnimationPrivate *priv;
147
147
 
148
148
  g_return_if_fail (animation != NULL);
149
149
  g_return_if_fail (duration != 0);
192
192
 * Starts the animation
193
193
 **/
194
194
void
195
 
os_animation_start (OsAnimation* animation)
 
195
os_animation_start (OsAnimation *animation)
196
196
{
197
 
  OsAnimationPrivate* priv;
 
197
  OsAnimationPrivate *priv;
198
198
 
199
199
  g_return_if_fail (animation != NULL);
200
200
 
217
217
 * or end_func (if not NULL).
218
218
 **/
219
219
void
220
 
os_animation_stop (OsAnimation*        animation,
 
220
os_animation_stop (OsAnimation        *animation,
221
221
                   OsAnimationStopFunc stop_func)
222
222
{
223
 
  OsAnimationPrivate* priv;
 
223
  OsAnimationPrivate *priv;
224
224
 
225
225
  g_return_if_fail (animation != NULL);
226
226