From 5dd0a23986352fa363b002c8495951e6a3593673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 25 Feb 2021 13:12:12 +0200 Subject: [PATCH] threadshare: Update for glib::Type API changes --- generic/threadshare/src/jitterbuffer/imp.rs | 2 +- generic/threadshare/src/udpsink/imp.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/generic/threadshare/src/jitterbuffer/imp.rs b/generic/threadshare/src/jitterbuffer/imp.rs index 22027398..f679a03b 100644 --- a/generic/threadshare/src/jitterbuffer/imp.rs +++ b/generic/threadshare/src/jitterbuffer/imp.rs @@ -1439,7 +1439,7 @@ impl ObjectImpl for JitterBuffer { vec![glib::subclass::Signal::builder( "clear-pt-map", &[], - glib::types::Type::Unit.into(), + glib::types::Type::UNIT.into(), ) .action() .class_handler(|_, args| { diff --git a/generic/threadshare/src/udpsink/imp.rs b/generic/threadshare/src/udpsink/imp.rs index 3b31ac6f..ad1333bf 100644 --- a/generic/threadshare/src/udpsink/imp.rs +++ b/generic/threadshare/src/udpsink/imp.rs @@ -1117,7 +1117,7 @@ impl ObjectImpl for UdpSink { glib::subclass::Signal::builder( "add", &[String::static_type().into(), i32::static_type().into()], - glib::types::Type::Unit.into(), + glib::types::Type::UNIT.into(), ) .action() .class_handler(|_, args| { @@ -1145,7 +1145,7 @@ impl ObjectImpl for UdpSink { glib::subclass::Signal::builder( "remove", &[String::static_type().into(), i32::static_type().into()], - glib::types::Type::Unit.into(), + glib::types::Type::UNIT.into(), ) .action() .class_handler(|_, args| { @@ -1170,7 +1170,7 @@ impl ObjectImpl for UdpSink { None }) .build(), - glib::subclass::Signal::builder("clear", &[], glib::types::Type::Unit.into()) + glib::subclass::Signal::builder("clear", &[], glib::types::Type::UNIT.into()) .action() .class_handler(|_, args| { let element = args[0]