gdk: ContentFormats use transfer none instead of container
@@ -11,7 +11,7 @@ impl ContentFormats {
let types =
ffi::gdk_content_formats_get_gtypes(self.to_glib_none().0, n_types.as_mut_ptr());
- FromGlibContainer::from_glib_container_num(types, n_types.assume_init() as usize)
+ FromGlibContainer::from_glib_none_num(types, n_types.assume_init() as usize)
}
}
@@ -23,10 +23,7 @@ impl ContentFormats {
self.to_glib_none().0,
n_mime_types.as_mut_ptr(),
);
- FromGlibContainer::from_glib_container_num(
- mime_types,
- n_mime_types.assume_init() as usize,
- )
+ FromGlibContainer::from_glib_none_num(mime_types, n_mime_types.assume_init() as usize)
}
}
}
