Tooth/src/Widgets/Notification.vala

23 lines
522 B
Vala

using Gtk;
public class Tooth.Widgets.Notification : Widgets.Status {
public API.Notification notification { get; construct set; }
public Notification (API.Notification obj) {
API.Status status;
if (obj.status != null)
status = obj.status;
else
status = new API.Status.from_account (obj.account);
Object (
notification: obj,
kind_instigator: obj.account,
kind: obj.kind,
status: status
);
}
}