Skip to content

Commit 2456561

Browse files
felinirabilelmoussaoui
authored andcommitted
accessible_value: Fix errormessage relation layout
The type was recently changed because it was inconsistent within GTK. See https://gitlab.gnome.org/GNOME/gtk/-/commit/649782b547aa837196344e3b2e51803ee94be74e
1 parent 35a3844 commit 2456561

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gtk4/src/accessible.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ pub enum Relation<'r> {
161161
Controls(&'r [&'r Accessible]),
162162
DescribedBy(&'r [&'r Accessible]),
163163
Details(&'r [&'r Accessible]),
164-
ErrorMessage(&'r Accessible),
164+
ErrorMessage(&'r [&'r Accessible]),
165165
FlowTo(&'r [&'r Accessible]),
166166
LabelledBy(&'r [&'r Accessible]),
167167
Owns(&'r [&'r Accessible]),
@@ -202,7 +202,7 @@ impl<'r> Relation<'r> {
202202
Controls(v) => (AccessibleRelation::Controls, to_ref_list_value(v)),
203203
DescribedBy(v) => (AccessibleRelation::DescribedBy, to_ref_list_value(v)),
204204
Details(v) => (AccessibleRelation::Details, to_ref_list_value(v)),
205-
ErrorMessage(v) => (AccessibleRelation::ErrorMessage, v.to_value()),
205+
ErrorMessage(v) => (AccessibleRelation::ErrorMessage, to_ref_list_value(v)),
206206
FlowTo(v) => (AccessibleRelation::FlowTo, to_ref_list_value(v)),
207207
LabelledBy(v) => (AccessibleRelation::LabelledBy, to_ref_list_value(v)),
208208
Owns(v) => (AccessibleRelation::Owns, to_ref_list_value(v)),
@@ -301,7 +301,7 @@ mod tests {
301301
Relation::Controls(&[other1.upcast_ref(), other2.upcast_ref()]),
302302
Relation::DescribedBy(&[other1.upcast_ref(), other2.upcast_ref()]),
303303
Relation::Details(&[other1.upcast_ref(), other2.upcast_ref()]),
304-
Relation::ErrorMessage(other1.upcast_ref()),
304+
Relation::ErrorMessage(&[other1.upcast_ref()]),
305305
Relation::FlowTo(&[other1.upcast_ref(), other2.upcast_ref()]),
306306
Relation::LabelledBy(&[other1.upcast_ref(), other2.upcast_ref()]),
307307
Relation::Owns(&[other1.upcast_ref(), other2.upcast_ref()]),

0 commit comments

Comments
 (0)