[libchamplain: 44/45] Hide left_actor in path layer when no clone is visible.
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain: 44/45] Hide left_actor in path layer when no clone is visible.
- Date: Sun, 14 Aug 2016 12:32:01 +0000 (UTC)
commit 08624901af6b45004eb7d3ce94e8e2a196876c44
Author: Marius Stanciu <stanciumarius94 gmail com>
Date: Wed Aug 10 15:11:56 2016 +0300
Hide left_actor in path layer when no clone is visible.
champlain/champlain-path-layer.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/champlain/champlain-path-layer.c b/champlain/champlain-path-layer.c
index 0872c04..47956ad 100644
--- a/champlain/champlain-path-layer.c
+++ b/champlain/champlain-path-layer.c
@@ -593,13 +593,19 @@ invalidate_canvas (ChamplainPathLayer *layer)
priv->right_surface_updated = FALSE;
clutter_content_invalidate (priv->right_canvas);
+ /* Since the left actor only renders paths visible on the clone, it should be hidden
+ * when no clone is visible.
+ */
if (left_actor_width != 0)
{
clutter_actor_set_size (priv->left_actor, left_actor_width, left_actor_height);
clutter_canvas_set_size (CLUTTER_CANVAS (priv->left_canvas), left_actor_width, left_actor_height);
priv->left_surface_updated = FALSE;
clutter_content_invalidate (priv->left_canvas);
+ clutter_actor_show (priv->left_actor);
}
+ else
+ clutter_actor_hide (priv->left_actor);
priv->redraw_scheduled = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]