From 1a401864856022be9103253e7374bde51aa1a226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 5 Sep 2022 11:45:47 +0300 Subject: Update for GLib ParamSpec builder API changes --- tutorial/src/progressbin/imp.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tutorial/src') 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> = Lazy::new(|| { vec![ - glib::ParamSpecEnum::builder("output", ProgressBinOutput::static_type()) + glib::ParamSpecEnum::builder::("output", DEFAULT_OUTPUT_TYPE) .nick("Output") .blurb("Defines the output type of the progressbin") - .default_value(DEFAULT_OUTPUT_TYPE as i32) .mutable_playing() .build(), ] -- cgit v1.2.3