diff --git a/src/Widgets/NotificationsList.vala b/src/Widgets/NotificationsList.vala index 766a46c9..cea7a677 100644 --- a/src/Widgets/NotificationsList.vala +++ b/src/Widgets/NotificationsList.vala @@ -108,7 +108,7 @@ public class Notifications.NotificationsList : Granite.Bin { var notification_entry = new NotificationEntry (); notification_entry.bind (notification); - notification_entry.remove.connect (remove_notification); + notification_entry.remove.connect (() => remove_notification (notification)); return notification_entry; } @@ -167,13 +167,13 @@ public class Notifications.NotificationsList : Granite.Bin { items_changed (); } - private void remove_notification (NotificationEntry notification_entry) { - var app_id = notification_entry.notification.desktop_id; + private void remove_notification (Notification notification) { + var app_id = notification.desktop_id; uint pos = -1; - if (list_store.find (notification_entry, out pos)) { + if (list_store.find (notification, out pos)) { list_store.remove (pos); - Session.get_instance ().remove_notification (notification_entry.notification); + Session.get_instance ().remove_notification (notification); } var items_for_appid = new Gtk.FilterListModel (