gcompris r3526 - branches/gcomprixogoo/src/babymatch-activity



Author: bcoudoin
Date: Tue Sep  2 22:26:50 2008
New Revision: 3526
URL: http://svn.gnome.org/viewvc/gcompris?rev=3526&view=rev

Log:
The points are no more displayed once the shape is placed.
points are annoying children willing to look at paintings


Modified:
   branches/gcomprixogoo/src/babymatch-activity/shapegame.c

Modified: branches/gcomprixogoo/src/babymatch-activity/shapegame.c
==============================================================================
--- branches/gcomprixogoo/src/babymatch-activity/shapegame.c	(original)
+++ branches/gcomprixogoo/src/babymatch-activity/shapegame.c	Tue Sep  2 22:26:50 2008
@@ -924,6 +924,9 @@
 	{
 	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 @@
 				+ 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]