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

Damon Chaplin commit at pdx.freedesktop.org
Wed Apr 19 02:40:46 EEST 2006


Committed by: damon

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

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

	* src/goocanvasitem.c (goo_canvas_item_base_init): added "title" and
	"description" properties for accessibility. Note that we only support
	per-item settings for the standard canvas items, though more complex
	items may want to support per-view settings.

	* src/goocanvasitemsimple.c: 
	* src/goocanvasgroup.c: implemented "title" and "description"
	properties.

	* src/goocanvas*view.c: set the accessible name & description based
	on the item's settings, and update them if changed.

	* src/goocanvasatk.c (goo_canvas_item_view_accessible_ref_child): 
	return the accessible rather than the item view.



Index: demo.c
===================================================================
RCS file: /cvs/cairo/goocanvas/demo/demo.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- demo.c	16 Apr 2006 22:29:44 -0000	1.2
+++ demo.c	18 Apr 2006 23:40:44 -0000	1.3
@@ -199,6 +199,7 @@
 		    "fill-color", "red",
 		    "stroke-color", "midnightblue",
 		    "line-width", 4.0,
+		    "title", "A red ellipse",
 		    NULL);
       last_state = 1;
     }
@@ -209,9 +210,10 @@
 		    "center-y", 150.0,
 		    "radius-x", 45.0,
 		    "radius-y", 40.0,
-		    "fill-color", "wheat",
+		    "fill-color", "brown",
 		    "stroke-color", "midnightblue",
 		    "line-width", 4.0,
+		    "title", "A brown ellipse",
 		    NULL);
       last_state = 2;
     }
@@ -222,9 +224,10 @@
 		    "center-y", 70.0,
 		    "radius-x", 45.0,
 		    "radius-y", 30.0,
-		    "fill-color", "wheat",
+		    "fill-color", "purple",
 		    "stroke-color", "midnightblue",
 		    "line-width", 4.0,
+		    "title", "A purple ellipse",
 		    NULL);
       last_state = 0;
     }
@@ -754,6 +757,7 @@
 				     "fill-color", "wheat",
 				     "stroke-color", "midnightblue",
 				     "line-width", 4.0,
+				     "title", "An ellipse",
 				     NULL);
 #if 0
   goo_canvas_item_rotate (ellipse2, 45, 335, 70);



More information about the cairo-commit mailing list