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>2021-11-22 12:04:26 +0300
committerSebastian Dröge <sebastian@centricular.com>2021-11-22 12:04:26 +0300
commit86f422592b160f9aff2eb58c5ab05a0612c152e5 (patch)
treecd15a1e6f8a9f5344e50bc4f450d23dc614579f8 /tutorial
parent651ea7de5ff0947ed3e6641a65e9b05d1c36a74a (diff)
Update for `glib::Enum` / `glib::Boxed` / `glib::flags!` macro renames
Diffstat (limited to 'tutorial')
-rw-r--r--tutorial/src/progressbin/mod.rs8
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"
)]