mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 08:36:31 +00:00
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:
parent
b17f04e866
commit
280fe38fe4
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue