From b89a28517802da00e73bfd00de3ac04ed3fb6d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 12 Oct 2022 14:30:19 +0300 Subject: [PATCH] Use correct `gobject-sys::GObject` type in the examples/tutorials --- examples/src/bin/gtkvideooverlay.rs | 4 ++-- tutorials/src/bin/basic-tutorial-5.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/src/bin/gtkvideooverlay.rs b/examples/src/bin/gtkvideooverlay.rs index 5f5e0e28c..ed11ea47a 100644 --- a/examples/src/bin/gtkvideooverlay.rs +++ b/examples/src/bin/gtkvideooverlay.rs @@ -43,7 +43,7 @@ fn set_window_handle(video_overlay: &gst_video::VideoOverlay, gdk_window: &gdk:: // Check if we're using X11 or ... if display_type_name == "GdkX11Display" { extern "C" { - pub fn gdk_x11_window_get_xid(window: *mut glib::object::GObject) -> *mut c_void; + pub fn gdk_x11_window_get_xid(window: *mut glib::gobject_ffi::GObject) -> *mut c_void; } // This is unsafe because the "window handle" we pass here is basically like a raw pointer. @@ -77,7 +77,7 @@ fn set_window_handle(video_overlay: &gst_video::VideoOverlay, gdk_window: &gdk:: if display_type_name == "GdkQuartzDisplay" { extern "C" { - pub fn gdk_quartz_window_get_nsview(window: *mut glib::object::GObject) -> *mut c_void; + pub fn gdk_quartz_window_get_nsview(window: *mut glib::gobject_ffi::GObject) -> *mut c_void; } // This is unsafe because the "window handle" we pass here is basically like a raw pointer. diff --git a/tutorials/src/bin/basic-tutorial-5.rs b/tutorials/src/bin/basic-tutorial-5.rs index 72369d16b..3bf3f6f58 100644 --- a/tutorials/src/bin/basic-tutorial-5.rs +++ b/tutorials/src/bin/basic-tutorial-5.rs @@ -181,7 +181,7 @@ mod tutorial5 { if display_type_name == "GdkX11Display" { extern "C" { pub fn gdk_x11_window_get_xid( - window: *mut glib::object::GObject, + window: *mut glib::gobject_ffi::GObject, ) -> *mut c_void; } @@ -200,7 +200,7 @@ mod tutorial5 { if display_type_name == "GdkQuartzDisplay" { extern "C" { pub fn gdk_quartz_window_get_nsview( - window: *mut glib::object::GObject, + window: *mut glib::gobject_ffi::GObject, ) -> *mut c_void; }