| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Consumers of the GValue-based API for GtkAccessible need to have a way
to initialize the GValue with the correct type for the given attribute.
|
|
|
|
|
| |
We need to be able to go from a string representation of an accessible
value to its GtkAccessibleValue instance.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We're currently overloading NULL to mean both "this value is undefined,
and should be reset to its default" and "the value collection failed".
Let's do error reporting right, by using GError to mean "the collection
failed, for this specific reason"; then, we can use a NULL return value
to signal that the accessible attribute should be reset to its default
value.
This is only relevant for pointer-sized attribute values: strings,
references, and reference lists; numeric, boolean, tristate, and token
values either cannot be undefined, or have a specific "undefined" value.
|
|
|
|
| |
It's one of the fundamental accessible value types in ARIA.
|
|
|
|
|
| |
Since we split relation attributes from the generic properties, we need
to add API for setting and retrieving their values.
|
|
|
|
|
|
|
|
| |
Reduce the amount of subclassing, by handling collection of fundamental
types directly from the generic code paths. We now handle boolean,
tristate, integer, number, string, and relation values in the generic
code path; if an attribute supports the "undefined" value, we return the
undefined value singleton.
|
|
|
|
|
|
|
|
| |
Drop roles and properties that were deprecated in WAI-ARIA 1.1, and add
new roles and properties defined in WAI-ARIA 1.2 and later.
We also split the relationship properties into their own enumeration, so
we can keep the GtkAccessibleProperty type more compact.
|
|
|
|
|
| |
We propagate the accessible state and properties to each ATContext in
the same virtual function, since they are functionally similar.
|
|
|
|
| |
Similarly to how we deal with GtkAccessibleState.
|
|
All accessible properties and states may have one of the following
types:
- true/false
- true/false/undefined
- true/false/mixed/undefined
- reference (to another UI element)
- reference list
- integer
- number (real numerical value)
- string
- token (one of a limited set of allowed values)
- token list
See: https://www.w3.org/WAI/PF/aria/states_and_properties#propcharacteristic_value
The GtkAccessibleValue is a simple reference counted type that can be
"subclassed" to implement each value type.
This initial commit adds GtkAccessibleValue and the basic subclasses for
plain boolean, tristate (true/false/undefined), and token types,
including statically allocated values that can be shared instead of
allocated.
|