Glade 2.0 DTD patch for accessibility
- From: Bill Haneman <bill haneman sun com>
- To: gtk-devel-list gnome org
- Subject: Glade 2.0 DTD patch for accessibility
- Date: Mon, 24 Sep 2001 21:56:41 +0100
Hi all:
The glade-2.0 dtd from libglade HEAD includes initial support for
accessibility properties. I attach (inline) a patch that I believe
will extend this to provide the level of accessibility support which
we need for Gnome 2.0.
Note that the <accessibility> element has <atkproperty> children
rather than <property> children: this is because some atk properties
are themselves atkobjects, and thus can't easily be specified using
#CDATA. Also <atkaction> and <atkrelation> are subelements and not
properties, since there may be multiple instances of <atkaction> and
<atkrelation> associated with an <accessibility> element.
If this patch is acceptable, I am willing to take responsibility for
seeing that the necessary code is added to libglade to parse the
<atkproperty> elements and call the appropriate ATK API.
Thanks,
Bill
--- diff follows ---
Index: glade-2.0.dtd
===================================================================
RCS file: /cvs/gnome/libglade/glade-2.0.dtd,v
retrieving revision 1.3
diff -u -r1.3 glade-2.0.dtd
--- glade-2.0.dtd 2001/05/14 23:59:50 1.3
+++ glade-2.0.dtd 2001/06/05 13:35:20
@@ -24,7 +24,24 @@
name CDATA #REQUIRED
type CDATA #IMPLIED >
-<!ELEMENT accessibility (property*) >
+<!-- atkproperty allows accessibility element child, since some
accessibility
+ properties of widgets are themselves "accessible" objects. -->
+<!ELEMENT atkproperty (accessibility | #PCDATA)? >
+<!ATTLIST atkproperty
+ name CDATA #REQUIRED
+ type CDATA #IMPLIED >
+
+<!ELEMENT atkrelation >
+<!ATTLIST atkrelation
+ target CDATA #REQUIRED
+ type CDATA #REQUIRED >
+
+<!ELEMENT atkaction >
+<!ATTLIST atkaction
+ name CDATA #REQUIRED
+ description CDATA #IMPLIED >
+
+<!ELEMENT accessibility (atkrelation | atkaction | atkproperty)* >
<!ELEMENT signal EMPTY >
<!ATTLIST signal
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]