From e212b364b969b7918fbe9152dc4b7c04da303d12 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Tue, 28 Feb 2023 20:23:34 -0500 Subject: rudimentary dm notifications --- src/notifications/notifier_gio.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/notifications/notifier_gio.cpp (limited to 'src/notifications/notifier_gio.cpp') diff --git a/src/notifications/notifier_gio.cpp b/src/notifications/notifier_gio.cpp new file mode 100644 index 0000000..6106114 --- /dev/null +++ b/src/notifications/notifier_gio.cpp @@ -0,0 +1,11 @@ +#include "notifier.hpp" +#include + +Notifier::Notifier() {} + +void Notifier::Notify(const Glib::ustring &title, const Glib::ustring &text, const Glib::ustring &default_action) { + auto n = Gio::Notification::create(title); + n->set_body(text); + n->set_default_action(default_action); + Abaddon::Get().GetApp()->send_notification(n); +} -- cgit v1.2.3