Add Bus::remove_watch()

It was accidentially ignored before
This commit is contained in:
Sebastian Dröge 2018-05-19 10:37:09 +03:00
parent da6b04abfd
commit 4692806b00
2 changed files with 6 additions and 5 deletions

View file

@ -117,11 +117,6 @@ status = "generate"
name = "Gst.Bus"
status = "generate"
trait = false
[[object.function]]
name = "remove_watch"
# Needs manual bindings and GSource support in glib-rs
ignore = true
[[object.function]]
name = "add_signal_watch_full"
# Priority

View file

@ -98,6 +98,12 @@ impl Bus {
}
}
pub fn remove_watch(&self) -> bool {
unsafe {
from_glib(ffi::gst_bus_remove_watch(self.to_glib_none().0))
}
}
pub fn set_flushing(&self, flushing: bool) {
unsafe {
ffi::gst_bus_set_flushing(self.to_glib_none().0, flushing.to_glib());