aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-26 20:08:01 +0200
committerdec05eba <dec05eba@protonmail.com>2018-10-26 20:08:04 +0200
commit009d2f850e8fdd27d961423892920e0b6817c031 (patch)
tree4bac2fc384cf23c8a6c27610f588968228f9e997 /include
parent000295e724345aed5c3bcf08edaf76069a9e2cfb (diff)
Add window notification
Diffstat (limited to 'include')
-rw-r--r--include/WindowNotification.hpp19
1 files changed, 19 insertions, 0 deletions
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 <gtkmm/overlay.h>
+#include <gtkmm/revealer.h>
+#include <gtkmm/label.h>
+
+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