From 280fe38fe48db58c732ec9f344a5421e105f4a26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 22 Jan 2020 17:14:38 +0200 Subject: [PATCH] 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. --- gstreamer/src/subclass/child_proxy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gstreamer/src/subclass/child_proxy.rs b/gstreamer/src/subclass/child_proxy.rs index bc925306e..373db7288 100644 --- a/gstreamer/src/subclass/child_proxy.rs +++ b/gstreamer/src/subclass/child_proxy.rs @@ -40,8 +40,8 @@ pub trait ChildProxyImpl: super::element::ElementImpl + Send + Sync + 'static { fn get_child_by_index(&self, object: &ChildProxy, index: u32) -> Option; 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 IsImplementable for ChildProxy {