Update for GLib prelude re-organization

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1444>
This commit is contained in:
Sebastian Dröge 2024-02-03 12:30:15 +02:00
parent 59ef053f50
commit ffa830ae9b
2 changed files with 3 additions and 3 deletions

View file

@ -109,7 +109,7 @@ impl Settings {
cat: &gst::DebugCategory,
) -> anyhow::Result<Session>
where
T: glib::IsA<glib::Object>,
T: IsA<glib::Object>,
{
let credentials_cache = if self.cache_credentials.is_empty() {
None

View file

@ -409,7 +409,7 @@ unsafe impl prelude::ObjectInterface for Signallable {
unsafe impl<Obj: SignallableImpl> types::IsImplementable<Obj> for super::Signallable
where
<Obj as types::ObjectSubclass>::Type: glib::IsA<glib::Object>,
<Obj as types::ObjectSubclass>::Type: IsA<glib::Object>,
{
fn interface_init(iface: &mut glib::Interface<Self>) {
let iface = ::std::convert::AsMut::as_mut(iface);
@ -503,7 +503,7 @@ pub trait SignallableExt: 'static {
fn end_session(&self, session_id: &str);
}
impl<Obj: glib::IsA<super::Signallable>> SignallableExt for Obj {
impl<Obj: IsA<super::Signallable>> SignallableExt for Obj {
fn start(&self) {
self.emit_by_name::<bool>("start", &[]);
}