diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-11-20 13:25:14 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-11-20 15:31:06 +0300 |
commit | 55aad51141907ea7834eb0cbcdf6f92e3fdce5d1 (patch) | |
tree | f556878f25667e079ce6d0dac96bda76f5f8be31 /text | |
parent | 288acaa7ccb596e63af47b8ef7b8408a84f973b3 (diff) |
Update for glib constructor renames
See https://github.com/gtk-rs/gtk-rs-core/pull/384
Diffstat (limited to 'text')
-rw-r--r-- | text/regex/src/gstregex/imp.rs | 6 | ||||
-rw-r--r-- | text/wrap/src/gsttextwrap/imp.rs | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/text/regex/src/gstregex/imp.rs b/text/regex/src/gstregex/imp.rs index 0dd73b3ac..857d39d35 100644 --- a/text/regex/src/gstregex/imp.rs +++ b/text/regex/src/gstregex/imp.rs @@ -156,17 +156,17 @@ impl ObjectSubclass for RegEx { impl ObjectImpl for RegEx { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { - vec![glib::ParamSpec::new_array( + vec![gst::ParamSpecArray::new( "commands", "Commands", "A set of commands to apply on input text", - &glib::ParamSpec::new_boxed( + Some(&glib::ParamSpecBoxed::new( "command", "Command", "A command to apply on input text", gst::Structure::static_type(), glib::ParamFlags::READWRITE, - ), + )), glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, )] }); diff --git a/text/wrap/src/gsttextwrap/imp.rs b/text/wrap/src/gsttextwrap/imp.rs index 369afa2b1..b7395a95b 100644 --- a/text/wrap/src/gsttextwrap/imp.rs +++ b/text/wrap/src/gsttextwrap/imp.rs @@ -498,7 +498,7 @@ impl ObjectImpl for TextWrap { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::new_string( + glib::ParamSpecString::new( "dictionary", "Dictionary", "Path to a dictionary to load at runtime to perform hyphenation, see \ @@ -506,7 +506,7 @@ impl ObjectImpl for TextWrap { None, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "columns", "Columns", "Maximum number of columns for any given line", @@ -515,7 +515,7 @@ impl ObjectImpl for TextWrap { DEFAULT_COLUMNS, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "lines", "Lines", "Split input buffer into output buffers with max lines (0=do not split)", @@ -524,7 +524,7 @@ impl ObjectImpl for TextWrap { DEFAULT_LINES, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, ), - glib::ParamSpec::new_uint64( + glib::ParamSpecUInt64::new( "accumulate-time", "accumulate-time", "Cut-off time for input text accumulation (0=do not accumulate)", |