diff --git a/video/gtk4/src/sink/imp.rs b/video/gtk4/src/sink/imp.rs index 188d52a6..e1056ed9 100644 --- a/video/gtk4/src/sink/imp.rs +++ b/video/gtk4/src/sink/imp.rs @@ -140,7 +140,7 @@ impl ObjectImpl for PaintableSink { // GtkBin was dropped for GTK4 https://gitlab.gnome.org/GNOME/gtk/-/commit/3c165b3b77 if glib::types::Type::from_name("GtkBin").is_some() { gst::error!(CAT, imp = self, "Skipping the creation of paintable to avoid segfault between GTK3 and GTK4"); - return None::<&gdk::Paintable>.to_value(); + return None::<&Paintable>.to_value(); } let mut paintable_guard = self.paintable.lock().unwrap(); @@ -154,7 +154,7 @@ impl ObjectImpl for PaintableSink { Some(ref paintable) => paintable, None => { gst::error!(CAT, imp = self, "Failed to create paintable"); - return None::<&gdk::Paintable>.to_value(); + return None::<&Paintable>.to_value(); } }; @@ -165,7 +165,7 @@ impl ObjectImpl for PaintableSink { imp = self, "Can't retrieve Paintable from non-main thread" ); - return None::<&gdk::Paintable>.to_value(); + return None::<&Paintable>.to_value(); } let paintable = paintable.get_ref().clone();