gstreamer/childproxy: Don't require implementing child_added/removed() signal vfuncs

Most implementers will not care about default handlers for these signals
so requiring to implement them is only unnecessarily verbose.
This commit is contained in:
Sebastian Dröge 2020-01-22 17:14:38 +02:00
parent b17f04e866
commit 280fe38fe4

View file

@ -40,8 +40,8 @@ pub trait ChildProxyImpl: super::element::ElementImpl + Send + Sync + 'static {
fn get_child_by_index(&self, object: &ChildProxy, index: u32) -> Option<glib::Object>;
fn get_children_count(&self, object: &ChildProxy) -> u32;
fn child_added(&self, object: &ChildProxy, child: &glib::Object, name: &str);
fn child_removed(&self, object: &ChildProxy, child: &glib::Object, name: &str);
fn child_added(&self, object: &ChildProxy, child: &glib::Object, name: &str) {}
fn child_removed(&self, object: &ChildProxy, child: &glib::Object, name: &str) {}
}
unsafe impl<T: ObjectSubclass + ChildProxyImpl> IsImplementable<T> for ChildProxy {