From 86f422592b160f9aff2eb58c5ab05a0612c152e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 22 Nov 2021 11:04:26 +0200 Subject: Update for `glib::Enum` / `glib::Boxed` / `glib::flags!` macro renames --- tutorial/src/progressbin/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tutorial/src') diff --git a/tutorial/src/progressbin/mod.rs b/tutorial/src/progressbin/mod.rs index 0e38f75a9..a7bf70e62 100644 --- a/tutorial/src/progressbin/mod.rs +++ b/tutorial/src/progressbin/mod.rs @@ -14,16 +14,16 @@ mod imp; // This enum may be used to control what type of output the progressbin should produce. // It also serves the secondary purpose of illustrating how to add enum-type properties // to a plugin written in rust. -#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy, glib::GEnum)] +#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy, glib::Enum)] #[repr(u32)] -#[genum(type_name = "GstProgressBinOutput")] +#[enum_type(name = "GstProgressBinOutput")] pub enum ProgressBinOutput { - #[genum( + #[enum_value( name = "Println: Outputs the progress using a println! macro.", nick = "println" )] Println = 0, - #[genum( + #[enum_value( name = "Debug Category: Outputs the progress as info logs under the element's debug category.", nick = "debug-category" )] -- cgit v1.2.3