threadshare: Update for glib::Type API changes

This commit is contained in:
Sebastian Dröge 2021-02-25 13:12:12 +02:00
parent 0616c18703
commit 5dd0a23986
2 changed files with 4 additions and 4 deletions

View file

@ -1439,7 +1439,7 @@ impl ObjectImpl for JitterBuffer {
vec![glib::subclass::Signal::builder( vec![glib::subclass::Signal::builder(
"clear-pt-map", "clear-pt-map",
&[], &[],
glib::types::Type::Unit.into(), glib::types::Type::UNIT.into(),
) )
.action() .action()
.class_handler(|_, args| { .class_handler(|_, args| {

View file

@ -1117,7 +1117,7 @@ impl ObjectImpl for UdpSink {
glib::subclass::Signal::builder( glib::subclass::Signal::builder(
"add", "add",
&[String::static_type().into(), i32::static_type().into()], &[String::static_type().into(), i32::static_type().into()],
glib::types::Type::Unit.into(), glib::types::Type::UNIT.into(),
) )
.action() .action()
.class_handler(|_, args| { .class_handler(|_, args| {
@ -1145,7 +1145,7 @@ impl ObjectImpl for UdpSink {
glib::subclass::Signal::builder( glib::subclass::Signal::builder(
"remove", "remove",
&[String::static_type().into(), i32::static_type().into()], &[String::static_type().into(), i32::static_type().into()],
glib::types::Type::Unit.into(), glib::types::Type::UNIT.into(),
) )
.action() .action()
.class_handler(|_, args| { .class_handler(|_, args| {
@ -1170,7 +1170,7 @@ impl ObjectImpl for UdpSink {
None None
}) })
.build(), .build(),
glib::subclass::Signal::builder("clear", &[], glib::types::Type::Unit.into()) glib::subclass::Signal::builder("clear", &[], glib::types::Type::UNIT.into())
.action() .action()
.class_handler(|_, args| { .class_handler(|_, args| {
let element = args[0] let element = args[0]