forked from mirrors/gstreamer-rs
ParamSpec: conform to glib naming for constructors
This commit is contained in:
parent
d203745cfc
commit
65fd79f973
1 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@ use glib::translate::*;
|
||||||
pub trait GstParamSpecExt {
|
pub trait GstParamSpecExt {
|
||||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||||
fn array(
|
fn new_array(
|
||||||
name: &str,
|
name: &str,
|
||||||
nick: &str,
|
nick: &str,
|
||||||
blurb: &str,
|
blurb: &str,
|
||||||
|
@ -13,7 +13,7 @@ pub trait GstParamSpecExt {
|
||||||
flags: glib::ParamFlags,
|
flags: glib::ParamFlags,
|
||||||
) -> Self;
|
) -> Self;
|
||||||
|
|
||||||
fn fraction(
|
fn new_fraction(
|
||||||
name: &str,
|
name: &str,
|
||||||
nick: &str,
|
nick: &str,
|
||||||
blurb: &str,
|
blurb: &str,
|
||||||
|
@ -27,7 +27,7 @@ pub trait GstParamSpecExt {
|
||||||
impl GstParamSpecExt for glib::ParamSpec {
|
impl GstParamSpecExt for glib::ParamSpec {
|
||||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||||
fn array(
|
fn new_array(
|
||||||
name: &str,
|
name: &str,
|
||||||
nick: &str,
|
nick: &str,
|
||||||
blurb: &str,
|
blurb: &str,
|
||||||
|
@ -46,7 +46,7 @@ impl GstParamSpecExt for glib::ParamSpec {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn fraction(
|
fn new_fraction(
|
||||||
name: &str,
|
name: &str,
|
||||||
nick: &str,
|
nick: &str,
|
||||||
blurb: &str,
|
blurb: &str,
|
||||||
|
@ -81,7 +81,7 @@ mod tests {
|
||||||
fn test_trait() {
|
fn test_trait() {
|
||||||
crate::init().unwrap();
|
crate::init().unwrap();
|
||||||
|
|
||||||
let _pspec = glib::ParamSpec::fraction(
|
let _pspec = glib::ParamSpec::new_fraction(
|
||||||
"foo",
|
"foo",
|
||||||
"Foo",
|
"Foo",
|
||||||
"Foo Bar",
|
"Foo Bar",
|
||||||
|
|
Loading…
Reference in a new issue