diff options
Diffstat (limited to 'tutorial')
-rw-r--r-- | tutorial/src/progressbin/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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" )] |