roundabout,
created on Tuesday, 21 October 2025, 18:47:10 (1761072430),
received on Tuesday, 21 October 2025, 18:47:13 (1761072433)
Author identity: Vlad <vlad.muntoiu@gmail.com>
bf795483d31c35765cce7d36e011092ed00c157b
applets/notifier/__init__.py
@@ -107,6 +107,7 @@ class NotificationsService:
self.applet.notification_list.remove(self.applet.notifications_by_id[notification_id])
self.applet.notification_count_label.set_text(locale.format_string('%d', self.applet.notification_count - 1))
self.applet.notification_count -= 1
del self.applet.notifications_by_id[notification_id]
class BriefNotification(Gtk.Box):
@@ -121,7 +122,7 @@ class BriefNotification(Gtk.Box):
class DetailedNotification(Gtk.ListBoxRow):
def __init__(self, applet, app_name, replaces_id, app_icon, summary, body, actions, hints, expire_timeout):
def __init__(self, applet, app_name, replaces_id, app_icon, summary, body, actions, hints, expire_timeout, id):
Gtk.ListBoxRow.__init__(self)
self.applet = applet
if not app_icon:
@@ -129,6 +130,7 @@ class DetailedNotification(Gtk.ListBoxRow):
self.box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=8)
self.set_child(self.box)
self.id = id
self.icon = Gtk.Image.new_from_icon_name(app_icon)
self.icon.set_icon_size(Gtk.IconSize.LARGE)
@@ -158,6 +160,7 @@ class DetailedNotification(Gtk.ListBoxRow):
def delete(self, button):
self.get_parent().remove(self)
del self.applet.notifications_by_id[self.id]
self.applet.notification_count_label.set_text(locale.format_string('%d', self.applet.notification_count - 1))
self.applet.notification_count -= 1
@@ -227,7 +230,7 @@ class NotifierApplet(panorama_panel.Applet):
expire_timeout = 2500
GLib.timeout_add(expire_timeout, remove_notification)
notification_info = DetailedNotification(self, app_name, replaces_id, app_icon, summary, body, actions, hints, expire_timeout)
notification_info = DetailedNotification(self, app_name, replaces_id, app_icon, summary, body, actions, hints, expire_timeout, notification_id)
self.notifications_by_id[notification_id] = notification_info
self.notification_list.append(notification_info)
self.notification_count_label.set_text(locale.format_string('%d', self.notification_count + 1))