From 458b2386ed5c3cdfde45b0eab127220f0431bf0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 21 Jan 2023 18:13:48 +0200 Subject: Update for glib API changes --- video/png/src/pngenc/imp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/png') diff --git a/video/png/src/pngenc/imp.rs b/video/png/src/pngenc/imp.rs index 8d7b3259..fc022515 100644 --- a/video/png/src/pngenc/imp.rs +++ b/video/png/src/pngenc/imp.rs @@ -67,7 +67,7 @@ impl ObjectImpl for PngEncoder { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy> = Lazy::new(|| { vec![ - glib::ParamSpecEnum::builder::( + glib::ParamSpecEnum::builder_with_default( "compression-level", DEFAULT_COMPRESSION_LEVEL, ) @@ -75,7 +75,7 @@ impl ObjectImpl for PngEncoder { .blurb("Selects the compression algorithm to use") .mutable_ready() .build(), - glib::ParamSpecEnum::builder::("filter", DEFAULT_FILTER_TYPE) + glib::ParamSpecEnum::builder_with_default("filter", DEFAULT_FILTER_TYPE) .nick("Filter") .blurb("Selects the filter type to applied") .mutable_ready() -- cgit v1.2.3