Commit ac31688f authored by François Laignel's avatar François Laignel Committed by Sebastian Dröge

Value: use new union for GValue_data

parent ce28fed0
......@@ -560,7 +560,7 @@ impl<'a> From<&'a [glib::SendValue]> for Array<'a> {
impl<'a> FromValue<'a> for Array<'a> {
unsafe fn from_value(v: &'a Value) -> Self {
let arr = (*v.to_glib_none().0).data[0] as *const glib_ffi::GArray;
let arr = (*v.to_glib_none().0).data[0].v_pointer as *const glib_ffi::GArray;
if arr.is_null() {
Array(Cow::Borrowed(&[]))
} else {
......@@ -631,7 +631,7 @@ impl<'a> From<&'a [glib::SendValue]> for List<'a> {
impl<'a> FromValue<'a> for List<'a> {
unsafe fn from_value(v: &'a Value) -> Self {
let arr = (*v.to_glib_none().0).data[0] as *const glib_ffi::GArray;
let arr = (*v.to_glib_none().0).data[0].v_pointer as *const glib_ffi::GArray;
if arr.is_null() {
List(Cow::Borrowed(&[]))
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment