From 009d2f850e8fdd27d961423892920e0b6817c031 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 26 Oct 2018 20:08:01 +0200 Subject: Add window notification --- include/WindowNotification.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/WindowNotification.hpp (limited to 'include') diff --git a/include/WindowNotification.hpp b/include/WindowNotification.hpp new file mode 100644 index 0000000..87111de --- /dev/null +++ b/include/WindowNotification.hpp @@ -0,0 +1,19 @@ +#pragma once + +#include +#include +#include + +namespace dchat +{ + class WindowNotification : public Gtk::Overlay + { + public: + WindowNotification(); + void show(const Glib::ustring &text); + private: + Gtk::Revealer revealer; + Gtk::Label label; + sigc::connection hideTimer; + }; +} \ No newline at end of file -- cgit v1.2.3