[cairo-commit] goocanvas/demo demo-item.c,1.2,1.3

Damon Chaplin commit at pdx.freedesktop.org
Fri Feb 9 05:41:08 PST 2007


Committed by: damon

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

Modified Files:
	demo-item.c 
Log Message:
2007-02-09  Damon Chaplin  <damon at gnome.org>

	* demo/demo-item.c (goo_demo_item_update): don't convert bounds to
	device space.

	* src/*.h: added padding to all *Class structs, to allow a bit of
	expansion without breaking backwards compatibility.

	* docs/*.xml: added example code to the introductory sections.
	Needs more explanation at some point.

	* configure.in: 
	* src/Makefile.am: added libtool version numbers.



Index: demo-item.c
===================================================================
RCS file: /cvs/cairo/goocanvas/demo/demo-item.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- demo-item.c	30 Nov 2006 14:35:05 -0000	1.2
+++ demo-item.c	9 Feb 2007 13:41:03 -0000	1.3
@@ -68,8 +68,8 @@
 
 /* The update method. This is called when the canvas is initially shown and
    also whenever the object is updated and needs to change its size and/or
-   shape. It should calculate its new bounds, storing them in simple->bounds,
-   and it should convert these to device coordinates. */
+   shape. It should calculate its new bounds in its own coordinate space,
+   storing them in simple->bounds. */
 static void
 goo_demo_item_update  (GooCanvasItemSimple *simple,
 		       cairo_t             *cr)
@@ -81,9 +81,6 @@
   simple->bounds.y1 = demo_item->y;
   simple->bounds.x2 = demo_item->x + demo_item->width;
   simple->bounds.y2 = demo_item->y + demo_item->height;
-
-  /* Convert to device coordinates. */
-  goo_canvas_item_simple_user_bounds_to_device (simple, cr, &simple->bounds);
 }
 
 



More information about the cairo-commit mailing list