~oem-solutions-group/unity-2d/clutter-1.0

« back to all changes in this revision

Viewing changes to tests/interactive/test-easing.c

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2010-03-21 13:27:56 UTC
  • mto: (2.1.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20100321132756-nf8yd30yxo3zzwcm
Tags: upstream-1.2.2
ImportĀ upstreamĀ versionĀ 1.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
static ClutterActor *main_stage        = NULL;
49
49
static ClutterActor *easing_mode_label = NULL;
50
50
 
 
51
static ClutterAnimation *last_animation = NULL;
 
52
 
51
53
static void
52
54
on_animation_completed (ClutterAnimation *animation,
53
55
                        ClutterActor     *rectangle)
113
115
                               "y", event->y,
114
116
                               NULL);
115
117
 
116
 
      if (recenter)
 
118
      if (recenter && last_animation != animation)
117
119
        g_signal_connect_after (animation, "completed",
118
120
                                G_CALLBACK (on_animation_completed),
119
121
                                rectangle);
 
122
 
 
123
      last_animation = animation;
120
124
    }
121
125
 
122
126
  return TRUE;