Commit 8c769a60 authored by Jiří Techet's avatar Jiří Techet
Browse files

Resize containing clutter actor together with the point

parent 8bf1dc26
......@@ -418,7 +418,14 @@ champlain_point_set_size (ChamplainPoint *point,
{
g_return_if_fail (CHAMPLAIN_IS_POINT (point));
ChamplainPointPrivate *priv = point->priv;
if (priv->point_actor)
clutter_actor_unparent (CLUTTER_ACTOR (priv->point_actor));
point->priv->size = size;
priv->point_actor = clutter_cairo_texture_new (size, size);
clutter_actor_set_parent (CLUTTER_ACTOR (priv->point_actor), CLUTTER_ACTOR (point));
g_object_notify (G_OBJECT (point), "size");
draw_point (point);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment