Port all dbus server/client to to zbus
Seems to generally be working well. May still need a few fixes.
This commit is contained in:
parent
8b5e1a7f12
commit
8b2a9c6359
13 changed files with 592 additions and 821 deletions
|
|
@ -39,7 +39,10 @@ impl ObjectImpl for NotificationPopoverInner {
|
|||
return;
|
||||
}
|
||||
if let Some(id) = obj.id() {
|
||||
obj.inner().notifications.invoke_action(id, "default");
|
||||
let notifications = obj.inner().notifications.clone();
|
||||
glib::MainContext::default().spawn_local(async move {
|
||||
notifications.invoke_action(id, "default").await;
|
||||
});
|
||||
}
|
||||
obj.popdown();
|
||||
}));
|
||||
|
|
@ -83,7 +86,7 @@ impl NotificationPopover {
|
|||
|
||||
obj.inner().notifications.set(notifications.clone());
|
||||
*obj.inner().ids.borrow_mut() = vec![
|
||||
notifications.connect_notification_recieved(clone!(@weak obj => move |notification| {
|
||||
notifications.connect_notification_received(clone!(@weak obj => move |notification| {
|
||||
obj.handle_notification(¬ification);
|
||||
})),
|
||||
notifications.connect_notification_closed(clone!(@weak obj => move |id| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue