Re: [g-a-devel] How to set an AtkAttribute?
- From: "Quiring, Sam" <Sam Quiring windriver com>
- To: "Quiring, Sam" <Sam Quiring windriver com>, <Li Yuan sun com>
- Cc: Gnome-accessibility-devel gnome org
- Subject: Re: [g-a-devel] How to set an AtkAttribute?
- Date: Thu, 10 Sep 2009 09:01:45 -0700
Li,
Aha. I think I get it. I am supposed to replace the value of
get_attributes (as defined in atk/atkobject.h):
AtkAttributeSet* (*get_attributes) (AtkObject *accessible);
with my own routine which will return the AtkAttributeSet*. Right?
I got faked out because many (all?) of the strongly-typed attributes
(e.g., name, description) can be explicitly set in Atk:
atk_object_set_name()
atk_object_set_description()
I was searching for a routine in the Atk library that would follow this
same pattern for an object attribute, like this:
atk_object_set_attribute()
Mea culpa.
-Sam
-----Original Message-----
From: gnome-accessibility-devel-bounces gnome org
[mailto:gnome-accessibility-devel-bounces gnome org] On Behalf Of
Quiring, Sam
Sent: Thursday, September 10, 2009 6:45 AM
To: Li Yuan sun com
Cc: Gnome-accessibility-devel gnome org
Subject: Re: [g-a-devel] How to set an AtkAttribute?
Li,
I read the reference. I had already seen it in my search for an answer
It describes what is and is not normally in the AttributeSet returned
from Accessible:getAttributes(). It does *not* describe how to
programmatically introduce an attribute into the
Accessibility::AttributeSet for an object.
What ATK methods do I call to associate an attribute:
Wireframe=cylinder
with my AtkObject so that an AT-SPI client calling
Accessible_getAttributes() will retrieve this attribute.
I've searched the ATK interfaces and I do not see a way to do it.
-Sam
-----Original Message-----
From: Li Yuan sun com [mailto:Li Yuan sun com]
Sent: Wednesday, September 09, 2009 7:46 PM
To: Quiring, Sam
Cc: Gnome-accessibility-devel gnome org
Subject: Re: [g-a-devel] How to set an AtkAttribute?
Hi Quiring,
You can find the document at
http://www.gnome.org/~billh/at-spi-idl/html/namespaceAccessibility.html#
a1
Li
On Wed, 2009-09-09 at 15:38 -0700, Quiring, Sam wrote:
> Greetings,
>
> I'm adding ATK support to a Python platform that implements its own
> graphics library. I would like to create an attribute:
>
> Wireframe=cylinder
>
> attribute name: "Wireframe"
> attribute value: "cylinder"
>
> I want to add this attribute to the set of attributes associated with
my
> AtkObject so when an AT-SPI client calls Accessible_getAttributes()
this
> attribute will be returned among the set.
>
> Is this supported? How do you do it in ATK?
>
> -Sam
> _______________________________________________
> Gnome-accessibility-devel mailing list
> Gnome-accessibility-devel gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel
_______________________________________________
Gnome-accessibility-devel mailing list
Gnome-accessibility-devel gnome org
http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]