diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-07-26 23:15:44 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-07-27 00:26:55 +0800 |
commit | 36b9debed099b1ad0b5d6a8af792f620bf7f124a (patch) | |
tree | 797f5587b1a6503ca0751c0243989a21eafab700 /mail/message-list.c | |
parent | 9279429501af7858716b0e317810a264192bb763 (diff) | |
download | gsoc2013-evolution-36b9debed099b1ad0b5d6a8af792f620bf7f124a.tar gsoc2013-evolution-36b9debed099b1ad0b5d6a8af792f620bf7f124a.tar.gz gsoc2013-evolution-36b9debed099b1ad0b5d6a8af792f620bf7f124a.tar.bz2 gsoc2013-evolution-36b9debed099b1ad0b5d6a8af792f620bf7f124a.tar.lz gsoc2013-evolution-36b9debed099b1ad0b5d6a8af792f620bf7f124a.tar.xz gsoc2013-evolution-36b9debed099b1ad0b5d6a8af792f620bf7f124a.tar.zst gsoc2013-evolution-36b9debed099b1ad0b5d6a8af792f620bf7f124a.zip |
More code cleanup.
Diffstat (limited to 'mail/message-list.c')
-rw-r--r-- | mail/message-list.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 0a2a5d446d..8296ea8143 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -4120,20 +4120,6 @@ message_list_set_hidedeleted (MessageList *ml, gboolean hidedeleted) } } -#if HAVE_CLUTTER -static void -on_timeline_started (ClutterTimeline *timeline, ClutterActor *actor) -{ - clutter_actor_show(actor); -} - -static void -on_timeline_stopped (ClutterTimeline *timeline, ClutterActor *actor) -{ - clutter_actor_hide(actor); -} -#endif - void message_list_set_search (MessageList *ml, const gchar *search) { @@ -4175,9 +4161,12 @@ message_list_set_search (MessageList *ml, const gchar *search) clutter_behaviour_apply (behaviour, texture); clutter_timeline_set_loop (ml->priv->timeline, TRUE); - g_signal_connect(ml->priv->timeline, "started", G_CALLBACK(on_timeline_started), texture); - g_signal_connect(ml->priv->timeline, "paused", G_CALLBACK(on_timeline_stopped), texture); - //g_signal_connect(ml->priv->timeline, "completed", G_CALLBACK(on_timeline_stopped), texture); + g_signal_connect_swapped ( + ml->priv->timeline, "started", + G_CALLBACK (clutter_actor_show), texture); + g_signal_connect ( + ml->priv->timeline, "paused", + G_CALLBACK (clutter_actor_hide), texture); clutter_timeline_pause (ml->priv->timeline); clutter_timeline_stop (ml->priv->timeline); |