Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Widgets/NotificationsList.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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 (
Expand Down
Loading