1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use crate::MediaStream;
use glib::translate::*;
use glib::IsA;
pub trait MediaStreamExtManual: 'static {
#[doc(alias = "gtk_media_stream_gerror")]
#[doc(alias = "gtk_media_stream_error")]
#[doc(alias = "gerror")]
fn set_error(&self, error: glib::Error);
}
impl<O: IsA<MediaStream>> MediaStreamExtManual for O {
fn set_error(&self, error: glib::Error) {
unsafe {
ffi::gtk_media_stream_gerror(
self.as_ref().to_glib_none().0,
mut_override(error.to_glib_full()),
);
}
}
}