summaryrefslogtreecommitdiff
path: root/champlain
diff options
context:
space:
mode:
authorMarius Stanciu <stanciumarius94@gmail.com>2016-08-10 15:11:56 +0300
committerMarius Stanciu <stanciumarius94@gmail.com>2016-08-10 15:11:56 +0300
commit08624901af6b45004eb7d3ce94e8e2a196876c44 (patch)
tree5e5ce314a55bbab70fcbdd76241467b9692b18a8 /champlain
parentdc5e31232a2cbf3c37b13ec0dc9491251d2b310a (diff)
downloadlibchamplain-08624901af6b45004eb7d3ce94e8e2a196876c44.tar.gz
Hide left_actor in path layer when no clone is visible.
Diffstat (limited to 'champlain')
-rw-r--r--champlain/champlain-path-layer.c6
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;