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
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 /tutorial
parent3924e2e563320ab2669befe2dd0ab9324f325353 (diff)
Update for GLib ParamSpec builder API changes
Diffstat (limited to 'tutorial')
-rw-r--r--tutorial/src/progressbin/imp.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tutorial/src/progressbin/imp.rs b/tutorial/src/progressbin/imp.rs
index 26b7f85b5..d80e2a88e 100644
--- a/tutorial/src/progressbin/imp.rs
+++ b/tutorial/src/progressbin/imp.rs
@@ -83,10 +83,9 @@ impl ObjectImpl for ProgressBin {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpecEnum::builder("output", ProgressBinOutput::static_type())
+ glib::ParamSpecEnum::builder::<ProgressBinOutput>("output", DEFAULT_OUTPUT_TYPE)
.nick("Output")
.blurb("Defines the output type of the progressbin")
- .default_value(DEFAULT_OUTPUT_TYPE as i32)
.mutable_playing()
.build(),
]