diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-02-28 20:23:34 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-02-28 20:23:34 -0500 |
commit | e212b364b969b7918fbe9152dc4b7c04da303d12 (patch) | |
tree | 43a7ae7462cf5af50b3ef612bba57dd4ce14dce1 /src/notifications/notifier_gio.cpp | |
parent | ba9d9997d4c4c4e9228632a962d6f0d3b1f35a6e (diff) | |
download | abaddon-portaudio-e212b364b969b7918fbe9152dc4b7c04da303d12.tar.gz abaddon-portaudio-e212b364b969b7918fbe9152dc4b7c04da303d12.zip |
rudimentary dm notifications
Diffstat (limited to 'src/notifications/notifier_gio.cpp')
-rw-r--r-- | src/notifications/notifier_gio.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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 <giomm/notification.h> + +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); +} |