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:
Diffstat (limited to 'tutorial/src/progressbin/imp.rs')
-rw-r--r--tutorial/src/progressbin/imp.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/tutorial/src/progressbin/imp.rs b/tutorial/src/progressbin/imp.rs
index e00d6c0a3..9499147bc 100644
--- a/tutorial/src/progressbin/imp.rs
+++ b/tutorial/src/progressbin/imp.rs
@@ -7,7 +7,6 @@
// except according to those terms.
use glib::prelude::*;
-use glib::subclass;
use glib::subclass::prelude::*;
use gst::gst_info;
use gst::prelude::*;
@@ -44,16 +43,12 @@ pub struct ProgressBin {
// This trait registers our type with the GObject object system and
// provides the entry points for creating a new instance and setting
// up the class data
+#[glib::object_subclass]
impl ObjectSubclass for ProgressBin {
const NAME: &'static str = "RsProgressBin";
type Type = super::ProgressBin;
type ParentType = gst::Bin;
- type Interfaces = ();
type Instance = gst::subclass::ElementInstanceStruct<Self>;
- type Class = subclass::simple::ClassStruct<Self>;
-
- // This macro provides some boilerplate.
- glib::object_subclass!();
// Called when a new instance is to be created. We need to return an instance
// of our struct here and also get the class struct passed in case it's needed