mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 02:51:10 +00:00
Rename ChildProxy::set/get_property() to set/get_child_property() to prevent conflict with glib::ObjectExt
This commit is contained in:
parent
96a0668c5f
commit
eb567a5048
1 changed files with 4 additions and 4 deletions
|
@ -14,12 +14,12 @@ use std::ptr;
|
|||
use ChildProxy;
|
||||
|
||||
pub trait ChildProxyExtManual {
|
||||
fn get_property(&self, name: &str) -> Option<glib::Value>;
|
||||
fn set_property(&self, name: &str, value: &glib::Value) -> Result<(), glib::BoolError>;
|
||||
fn get_child_property(&self, name: &str) -> Option<glib::Value>;
|
||||
fn set_child_property(&self, name: &str, value: &glib::Value) -> Result<(), glib::BoolError>;
|
||||
}
|
||||
|
||||
impl<O: IsA<ChildProxy>> ChildProxyExtManual for O {
|
||||
fn get_property(&self, name: &str) -> Option<glib::Value> {
|
||||
fn get_child_property(&self, name: &str) -> Option<glib::Value> {
|
||||
unsafe {
|
||||
let found: bool = from_glib(ffi::gst_child_proxy_lookup(
|
||||
self.to_glib_none().0,
|
||||
|
@ -41,7 +41,7 @@ impl<O: IsA<ChildProxy>> ChildProxyExtManual for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn set_property(&self, name: &str, value: &glib::Value) -> Result<(), glib::BoolError> {
|
||||
fn set_child_property(&self, name: &str, value: &glib::Value) -> Result<(), glib::BoolError> {
|
||||
unsafe {
|
||||
let found: bool = from_glib(ffi::gst_child_proxy_lookup(
|
||||
self.to_glib_none().0,
|
||||
|
|
Loading…
Reference in a new issue