Commit eb0daabc authored by Bruno Coudoin's avatar Bruno Coudoin

The points are no more displayed once the shape is placed.

points are annoying children willing to look at paintings

svn path=/branches/gcomprixogoo/; revision=3526
parent 576e2d10
......@@ -924,6 +924,9 @@ item_event_drag(GooCanvasItem *item,
{
case SHAPE_TARGET:
/* unplace this shape */
if (shape->placed)
g_object_set (shape->placed->target_point, "visibility",
GOO_CANVAS_ITEM_VISIBLE, NULL);
shape->placed->shape_place = NULL;
shape->placed = NULL;
/* No break on purpose */
......@@ -1045,6 +1048,8 @@ item_event_drag(GooCanvasItem *item,
+ BOARDWIDTH/SHAPE_BOX_WIDTH_RATIO,
found_shape->y - (bounds.y2 - bounds.y1) / 2);
g_object_set (found_shape->target_point, "visibility",
GOO_CANVAS_ITEM_INVISIBLE, NULL);
g_object_set (target_item, "visibility",
GOO_CANVAS_ITEM_VISIBLE, NULL);
goo_canvas_item_raise(target_item, NULL);
......
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