[libchamplain] ChamplainView: Emit animation-completed::zoom



commit adf500d71116ddc90255b0d5ec6bec961ee5122e
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Tue Nov 4 20:57:31 2014 +0100

    ChamplainView: Emit animation-completed::zoom
    
    https://bugzilla.gnome.org/show_bug.cgi?id=739641

 champlain/champlain-view.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c
index 5431a11..cca78a6 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -975,7 +975,7 @@ champlain_view_class_init (ChamplainViewClass *champlainViewClass)
    * The #ChamplainView::animation-completed signal is emitted when any animation in the view
    * ends.  This is a detailed signal.  For example, if you want to be signaled
    * only for go-to animation, you should connect to
-   * "animation-completed::go-to".
+   * "animation-completed::go-to". And for zoom, connect to "animation-completed::zoom".
    *
    * Since: 0.4
    */
@@ -2536,6 +2536,7 @@ zoom_animation_completed (ClutterActor *actor,
   clutter_actor_show (priv->user_layers);
 
   g_signal_handlers_disconnect_by_func (actor, zoom_animation_completed, view);
+  g_signal_emit_by_name (view, "animation-completed::zoom", NULL);
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]