[cairo-commit] goocanvas/demo demo-fifteen.c,1.1,1.2

Damon Chaplin commit at pdx.freedesktop.org
Wed Jul 19 06:42:35 PDT 2006


Committed by: damon

Update of /cvs/cairo/goocanvas/demo
In directory kemper:/tmp/cvs-serv24116/demo

Modified Files:
	demo-fifteen.c 
Log Message:
2006-07-19  Damon Chaplin  <damon at gnome.org>

	* demo/demo-fifteen.c: use generic goo_canvas_item_view_get_item()
	method to get the item rather than private struct members.



Index: demo-fifteen.c
===================================================================
RCS file: /cvs/cairo/goocanvas/demo/demo-fifteen.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- demo-fifteen.c	12 Apr 2006 10:45:52 -0000	1.1
+++ demo-fifteen.c	19 Jul 2006 13:42:33 -0000	1.2
@@ -67,7 +67,7 @@
   g_print ("In piece_enter_notify\n");
 #endif
 
-  item = (GooCanvasItem*) GOO_CANVAS_GROUP_VIEW (view)->group;
+  item = goo_canvas_item_view_get_item (view);
   text = g_object_get_data (G_OBJECT (item), "text");
 
   g_object_set (text,
@@ -90,7 +90,7 @@
   g_print ("In piece_leave_notify\n");
 #endif
 
-  item = (GooCanvasItem*) GOO_CANVAS_GROUP_VIEW (view)->group;
+  item = goo_canvas_item_view_get_item (view);
   text = g_object_get_data (G_OBJECT (item), "text");
 
   g_object_set (text,
@@ -115,7 +115,7 @@
 	double dx = 0.0, dy = 0.0;
 	int move;
 
-	item = (GooCanvasItem*) GOO_CANVAS_GROUP_VIEW (view)->group;
+	item = goo_canvas_item_view_get_item (view);
 	canvas = goo_canvas_item_view_get_canvas_view (view);
 	board = g_object_get_data (G_OBJECT (canvas), "board");
 	num = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (item), "piece_num"));



More information about the cairo-commit mailing list