From 65fd79f9730e08166f43d342ba9dff84c1a4fbbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Laignel?= Date: Thu, 6 May 2021 21:40:19 +0200 Subject: [PATCH] ParamSpec: conform to glib naming for constructors --- gstreamer/src/param_spec.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gstreamer/src/param_spec.rs b/gstreamer/src/param_spec.rs index c61467b8e..edd7c17b9 100644 --- a/gstreamer/src/param_spec.rs +++ b/gstreamer/src/param_spec.rs @@ -5,7 +5,7 @@ use glib::translate::*; pub trait GstParamSpecExt { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] - fn array( + fn new_array( name: &str, nick: &str, blurb: &str, @@ -13,7 +13,7 @@ pub trait GstParamSpecExt { flags: glib::ParamFlags, ) -> Self; - fn fraction( + fn new_fraction( name: &str, nick: &str, blurb: &str, @@ -27,7 +27,7 @@ pub trait GstParamSpecExt { impl GstParamSpecExt for glib::ParamSpec { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] - fn array( + fn new_array( name: &str, nick: &str, blurb: &str, @@ -46,7 +46,7 @@ impl GstParamSpecExt for glib::ParamSpec { } } - fn fraction( + fn new_fraction( name: &str, nick: &str, blurb: &str, @@ -81,7 +81,7 @@ mod tests { fn test_trait() { crate::init().unwrap(); - let _pspec = glib::ParamSpec::fraction( + let _pspec = glib::ParamSpec::new_fraction( "foo", "Foo", "Foo Bar",