[libchamplain] When re-creating scale, remove all actors first
- From: JiÅÃ Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] When re-creating scale, remove all actors first
- Date: Thu, 6 Oct 2011 22:07:16 +0000 (UTC)
commit 864e445974de7c843cdb4ee008bad0a550e5af6e
Author: JiÅÃ Techet <techet gmail com>
Date: Fri Oct 7 00:06:59 2011 +0200
When re-creating scale, remove all actors first
Otherwise the previously inserted actors are still used for redrawing.
champlain/champlain-scale.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/champlain/champlain-scale.c b/champlain/champlain-scale.c
index 34f5f06..a4befcd 100644
--- a/champlain/champlain-scale.c
+++ b/champlain/champlain-scale.c
@@ -476,6 +476,8 @@ create_scale (ChamplainScale *scale)
gfloat width;
ChamplainScalePrivate *priv = scale->priv;
+ clutter_group_remove_all (priv->content_group);
+
text = clutter_text_new_with_text ("Sans 9", "X km");
clutter_actor_set_name (text, "scale-far-label");
clutter_container_add_actor (CLUTTER_CONTAINER (priv->content_group), text);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]