public
Fork of ebassi/tweet
Description: A Clutter-based Twitter client
Clone URL: git://github.com/patoh/tweet.git
Fade out the status info overlay

Instead of just destroying the StatusInfo on button-press, fade it
out and destroy it when the animation is complete.
Emmanuele Bassi (author)
Sat May 24 02:13:13 -0700 2008
commit  17411e6cff8a5ab018d1fa63e4cf86a42fd09b93
tree    12c03231e4939bcb7e09c4a8bb2f3d5c2928bca1
parent  4126a5b0b8fa244edd60a0a56c5426d1e3855bae
...
200
201
202
 
 
 
 
 
 
 
 
 
203
204
205
206
207
208
209
210
211
212
213
...
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
 
 
218
219
220
0
@@ -200,14 +200,21 @@ on_info_button_press (ClutterActor *actor,
0
                       TweetWindow *window)
0
 {
0
   TweetWindowPrivate *priv = window->priv;
0
+ TweetAnimation *animation;
0
+
0
+ animation =
0
+ tweet_actor_animate (actor, TWEET_LINEAR, 250,
0
+ "opacity", tweet_interval_new (G_TYPE_UCHAR, 196, 0),
0
+ NULL);
0
+ g_signal_connect_swapped (animation,
0
+ "completed", G_CALLBACK (clutter_actor_destroy),
0
+ actor);
0
 
0
   clutter_actor_set_reactive (priv->status_view, TRUE);
0
   tweet_actor_animate (priv->status_view, TWEET_LINEAR, 250,
0
                        "opacity", tweet_interval_new (G_TYPE_UCHAR, 128, 255),
0
                        NULL);
0
 
0
- clutter_actor_destroy (actor);
0
-
0
   return TRUE;
0
 }
0
 

Comments

    No one has commented yet.