[cairo-commit] goocanvas/demo mv-demo.c,1.13,1.14

Damon Chaplin commit at pdx.freedesktop.org
Mon Feb 25 06:34:07 PST 2008


Committed by: damon

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

Modified Files:
	mv-demo.c 
Log Message:
removed goo_canvas_text_model_get_natural_extents()


Index: mv-demo.c
===================================================================
RCS file: /cvs/cairo/goocanvas/demo/mv-demo.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- mv-demo.c	25 Feb 2008 14:12:25 -0000	1.13
+++ mv-demo.c	25 Feb 2008 14:35:02 -0000	1.14
@@ -650,20 +650,12 @@
   double x = (pos % 3) * 200 + 100;
   double y = (pos / 3) * 150 + 5;
   GooCanvasItemModel *item;
-  PangoRectangle ink_rect, logical_rect;
 
   item = goo_canvas_text_model_new (root, text, x, y, -1, GTK_ANCHOR_N,
 				    "font", "Sans 12",
 				    NULL);
   goo_canvas_item_model_skew_y (item, 30, x, y);
   /*goo_canvas_item_rotate (item, 30, x, y);*/
-
-  goo_canvas_text_model_get_natural_extents (GOO_CANVAS_TEXT_MODEL (item),
-					     &ink_rect, &logical_rect);
-  g_print ("Ink Extents: %i,%i %ix%i  Logical: %i,%i %ix%i\n",
-	   ink_rect.x, ink_rect.y, ink_rect.width, ink_rect.height,
-	   logical_rect.x, logical_rect.y,
-	   logical_rect.width, logical_rect.height);
 }
 
 



More information about the cairo-commit mailing list