Value: use new union for GValue_data

This commit is contained in:
François Laignel 2018-02-04 13:32:22 +01:00 committed by Sebastian Dröge
parent ce28fed070
commit ac31688fbd

View file

@ -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 {