[libchamplain] Hide user layers when animating zoom
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] Hide user layers when animating zoom
- Date: Fri, 12 Apr 2013 12:07:59 +0000 (UTC)
commit 7490bd49d852963e8f1e98b7d32debc6707bb5aa
Author: Jiří Techet <techet gmail com>
Date: Fri Apr 12 07:42:26 2013 +0200
Hide user layers when animating zoom
champlain/champlain-view.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c
index 2cb3da3..fde787d 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -2483,8 +2483,10 @@ zoom_animation_completed (ClutterActor *actor,
ChamplainView *view)
{
ChamplainViewPrivate *priv = view->priv;
+
priv->animating_zoom = FALSE;
position_zoom_actor (view);
+ clutter_actor_show (priv->user_layers);
g_signal_handlers_disconnect_by_func (actor, zoom_animation_completed, view);
}
@@ -2592,7 +2594,10 @@ show_zoom_actor (ChamplainView *view,
clutter_actor_restore_easing_state (priv->map_layer);
if (!priv->animating_zoom)
- g_signal_connect (zoom_actor, "transition-stopped::scale-x", G_CALLBACK (zoom_animation_completed),
view);
+ {
+ clutter_actor_hide (priv->user_layers);
+ g_signal_connect (zoom_actor, "transition-stopped::scale-x", G_CALLBACK
(zoom_animation_completed), view);
+ }
priv->animating_zoom = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]