Skip to content
Merged
Show file tree
Hide file tree
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
File renamed without changes.
2 changes: 1 addition & 1 deletion data/gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<gresources>
<gresource prefix="/io/elementary/wingpanel/notifications">
<file compressed="true">AppEntry.css</file>
<file compressed="true">NotificationEntry.css</file>
<file compressed="true">ListItem.css</file>
<file compressed="true" preprocess="xml-stripblanks">icons/notification.svg</file>
</gresource>
</gresources>
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ shared_module(
meson.project_name(),
'src/Indicator.vala',
'src/Widgets/NotificationsList.vala',
'src/Widgets/NotificationEntry.vala',
'src/Widgets/ListItem.vala',
'src/Widgets/AppEntry.vala',
'src/Widgets/Symbol.vala',
'src/Services/NotificationsMonitor.vala',
Expand Down
2 changes: 1 addition & 1 deletion po/POTFILES
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
src/Indicator.vala
src/Widgets/NotificationsList.vala
src/Widgets/NotificationEntry.vala
src/Widgets/ListItem.vala
src/Widgets/AppEntry.vala
src/Services/NotificationsMonitor.vala
src/Services/Notification.vala
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-FileCopyrightText: 2015-2025 elementary, Inc. (https://elementary.io)
*/

public class Notifications.NotificationEntry : Gtk.ListBoxRow {
public class Notifications.ListItem : Granite.Bin {
public signal void remove (Notification notification);

public Notification notification { get; private set; }
Expand Down Expand Up @@ -38,7 +38,7 @@ public class Notifications.NotificationEntry : Gtk.ListBoxRow {
set_css_name ("notification");

var provider = new Gtk.CssProvider ();
provider.load_from_resource ("io/elementary/wingpanel/notifications/NotificationEntry.css");
provider.load_from_resource ("io/elementary/wingpanel/notifications/ListItem.css");

Gtk.StyleContext.add_provider_for_display (
Gdk.Display.get_default (),
Expand Down
6 changes: 3 additions & 3 deletions src/Widgets/NotificationsList.vala
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public class Notifications.NotificationsList : Granite.Bin {
}

private void setup_factory (Object item) {
var notification_entry = new NotificationEntry ();
var notification_entry = new ListItem ();
notification_entry.remove.connect (remove_notification);

((Gtk.ListItem) item).child = notification_entry;
Expand All @@ -137,14 +137,14 @@ public class Notifications.NotificationsList : Granite.Bin {
private void bind_factory (Object item) {
var list_item = (Gtk.ListItem) item;

var notification_entry = (NotificationEntry) list_item.child;
var notification_entry = (ListItem) list_item.child;
notification_entry.bind ((Notification) list_item.item);
}

private void unbind_factory (Object item) {
var list_item = (Gtk.ListItem) item;

var notification_entry = (NotificationEntry) list_item.child;
var notification_entry = (ListItem) list_item.child;
notification_entry.unbind ();
}

Expand Down
Loading