diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-09-05 11:45:47 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-09-05 11:45:47 +0300 |
commit | 1a401864856022be9103253e7374bde51aa1a226 (patch) | |
tree | fb2a4646bb28e4a0e9142ba0c296114ee4014d85 /text | |
parent | 3924e2e563320ab2669befe2dd0ab9324f325353 (diff) |
Update for GLib ParamSpec builder API changes
Diffstat (limited to 'text')
-rw-r--r-- | text/ahead/src/textahead/imp.rs | 6 | ||||
-rw-r--r-- | text/regex/src/gstregex/imp.rs | 2 |
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(), |