Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/text
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2022-09-05 11:45:47 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-09-05 11:45:47 +0300
commit1a401864856022be9103253e7374bde51aa1a226 (patch)
treefb2a4646bb28e4a0e9142ba0c296114ee4014d85 /text
parent3924e2e563320ab2669befe2dd0ab9324f325353 (diff)
Update for GLib ParamSpec builder API changes
Diffstat (limited to 'text')
-rw-r--r--text/ahead/src/textahead/imp.rs6
-rw-r--r--text/regex/src/gstregex/imp.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/text/ahead/src/textahead/imp.rs b/text/ahead/src/textahead/imp.rs
index b658fcf89..61bb0277b 100644
--- a/text/ahead/src/textahead/imp.rs
+++ b/text/ahead/src/textahead/imp.rs
@@ -116,20 +116,20 @@ impl ObjectImpl for TextAhead {
glib::ParamSpecString::builder("separator")
.nick("Separator")
.blurb("Text inserted between each text buffers")
- .default_value(Some(&default.separator))
+ .default_value(&*default.separator)
.mutable_playing()
.build(),
// See https://developer.gimp.org/api/2.0/pango/PangoMarkupFormat.html for pango attributes
glib::ParamSpecString::builder("current-attributes")
.nick("Current attributes")
.blurb("Pango span attributes to set on the text from the current buffer")
- .default_value(Some(&default.current_attributes))
+ .default_value(&*default.current_attributes)
.mutable_playing()
.build(),
glib::ParamSpecString::builder("ahead-attributes")
.nick("Ahead attributes")
.blurb("Pango span attributes to set on the ahead text")
- .default_value(Some(&default.ahead_attributes))
+ .default_value(&*default.ahead_attributes)
.mutable_playing()
.build(),
glib::ParamSpecBoolean::builder("buffer-start-segment")
diff --git a/text/regex/src/gstregex/imp.rs b/text/regex/src/gstregex/imp.rs
index 6a97bb4c2..bfb8faa9e 100644
--- a/text/regex/src/gstregex/imp.rs
+++ b/text/regex/src/gstregex/imp.rs
@@ -145,7 +145,7 @@ impl ObjectImpl for RegEx {
.nick("Commands")
.blurb("A set of commands to apply on input text")
.element_spec(
- &glib::ParamSpecBoxed::builder("command", gst::Structure::static_type())
+ &glib::ParamSpecBoxed::builder::<gst::Structure>("command")
.nick("Command")
.blurb("A command to apply on input text")
.build(),