diff --git a/demos/gtk-demo/errorstates.c b/demos/gtk-demo/errorstates.c index bdd765ee97..af5ab1073b 100644 --- a/demos/gtk-demo/errorstates.c +++ b/demos/gtk-demo/errorstates.c @@ -55,7 +55,7 @@ mode_switch_state_set (GtkSwitch *sw, { gtk_widget_set_visible (label, TRUE); gtk_accessible_update_relation (GTK_ACCESSIBLE (sw), - GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE, label, + GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE, label, NULL, -1); gtk_accessible_update_state (GTK_ACCESSIBLE (sw), GTK_ACCESSIBLE_STATE_INVALID, GTK_ACCESSIBLE_INVALID_TRUE, diff --git a/docs/reference/gtk/section-accessibility.md b/docs/reference/gtk/section-accessibility.md index 471a71e44d..a33ba0c382 100644 --- a/docs/reference/gtk/section-accessibility.md +++ b/docs/reference/gtk/section-accessibility.md @@ -171,7 +171,7 @@ Each relation name is part of the `GtkAccessibleRelation` enumeration. | %GTK_ACCESSIBLE_RELATION_CONTROLS | “aria-controls” | a list of `GtkAccessible` | | %GTK_ACCESSIBLE_RELATION_DESCRIBED_BY | “aria-describedby” | a list of `GtkAccessible` | | %GTK_ACCESSIBLE_RELATION_DETAILS | “aria-details” | a list of `GtkAccessible` | -| %GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE | “aria-errormessage” | `GtkAccessible` | +| %GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE | “aria-errormessage” | a list of `GtkAccessible` | | %GTK_ACCESSIBLE_RELATION_FLOW_TO | “aria-flowto” | a list of `GtkAccessible` | | %GTK_ACCESSIBLE_RELATION_LABELLED_BY | “aria-labelledby” | a list of `GtkAccessible` | | %GTK_ACCESSIBLE_RELATION_OWNS | “aria-owns” | a list of `GtkAccessible` | diff --git a/gtk/gtkaccessiblevalue.c b/gtk/gtkaccessiblevalue.c index 14e0b7ca0f..9e84d27d1b 100644 --- a/gtk/gtkaccessiblevalue.c +++ b/gtk/gtkaccessiblevalue.c @@ -859,7 +859,7 @@ static const GtkAccessibleCollect collect_rels[] = { }, [GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE] = { .value = GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE, - .ctype = GTK_ACCESSIBLE_COLLECT_REFERENCE, + .ctype = GTK_ACCESSIBLE_COLLECT_REFERENCE_LIST, .name = "errormessage" }, [GTK_ACCESSIBLE_RELATION_FLOW_TO] = { diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h index e0ee0e8845..6e6517d654 100644 --- a/gtk/gtkenums.h +++ b/gtk/gtkenums.h @@ -1684,8 +1684,8 @@ typedef enum { * that describes the object. Value type: reference * @GTK_ACCESSIBLE_RELATION_DETAILS: Identifies the element (or elements) that * provide additional information related to the object. Value type: reference - * @GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE: Identifies the element that provides - * an error message for an object. Value type: reference + * @GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE: Identifies the element (or elements) that + * provide an error message for an object. Value type: reference * @GTK_ACCESSIBLE_RELATION_FLOW_TO: Identifies the next element (or elements) * in an alternate reading order of content which, at the user's discretion, * allows assistive technology to override the general default of reading in diff --git a/testsuite/a11y/accessible.c b/testsuite/a11y/accessible.c index b6580ca5e9..bb624222c7 100644 --- a/testsuite/a11y/accessible.c +++ b/testsuite/a11y/accessible.c @@ -661,7 +661,7 @@ main (int argc, char *argv[]) g_test_add_data_func ("/a11y/relation/controls", GUINT_TO_POINTER (GTK_ACCESSIBLE_RELATION_CONTROLS), test_reflist_relation); g_test_add_data_func ("/a11y/relation/described-by", GUINT_TO_POINTER (GTK_ACCESSIBLE_RELATION_DESCRIBED_BY), test_reflist_relation); g_test_add_data_func ("/a11y/relation/details", GUINT_TO_POINTER (GTK_ACCESSIBLE_RELATION_DETAILS), test_reflist_relation); - g_test_add_data_func ("/a11y/relation/error-message", GUINT_TO_POINTER (GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE), test_ref_relation); + g_test_add_data_func ("/a11y/relation/error-message", GUINT_TO_POINTER (GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE), test_reflist_relation); g_test_add_data_func ("/a11y/relation/flow-to", GUINT_TO_POINTER (GTK_ACCESSIBLE_RELATION_FLOW_TO), test_reflist_relation); g_test_add_data_func ("/a11y/relation/labelled-by", GUINT_TO_POINTER (GTK_ACCESSIBLE_RELATION_LABELLED_BY), test_reflist_relation); g_test_add_data_func ("/a11y/relation/owns", GUINT_TO_POINTER (GTK_ACCESSIBLE_RELATION_OWNS), test_reflist_relation);