mirror of
https://github.com/TakeV-Lambda/Tooth.git
synced 2024-09-27 13:13:20 +00:00
23 lines
522 B
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
|
|
);
|
|
}
|
|
|
|
}
|