From 55aad51141907ea7834eb0cbcdf6f92e3fdce5d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 20 Nov 2021 12:25:14 +0200 Subject: Update for glib constructor renames See https://github.com/gtk-rs/gtk-rs-core/pull/384 --- text/regex/src/gstregex/imp.rs | 6 +++--- text/wrap/src/gsttextwrap/imp.rs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'text') 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> = 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> = 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)", -- cgit v1.2.3