aboutsummaryrefslogtreecommitdiff
path: root/include/ChatMessage.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-11-03 22:49:29 +0100
committerdec05eba <dec05eba@protonmail.com>2018-11-03 22:49:32 +0100
commitc7138bca7ea7d007198c544b2d8bc27ae414d2e2 (patch)
treeb27752bc5e4e452a9a4c047e884b8952a22a0f0a /include/ChatMessage.hpp
parent405459e93be718b0e6aad26746036105dd3f3226 (diff)
Start with gif/image widget
Diffstat (limited to 'include/ChatMessage.hpp')
-rw-r--r--include/ChatMessage.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/ChatMessage.hpp b/include/ChatMessage.hpp
index c1ef459..5259a9c 100644
--- a/include/ChatMessage.hpp
+++ b/include/ChatMessage.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include "DynamicImage.hpp"
#include <dchat/types.hpp>
#include <gtkmm/grid.h>
#include <gtkmm/label.h>
@@ -12,11 +13,9 @@ namespace dchat
public:
ChatMessage(const Glib::ustring &username, const Glib::ustring &text, uint32_t timestampSeconds);
- Gtk::Grid avatar;
+ DynamicImage avatar;
Gtk::Label username;
Gtk::Label text;
uint32_t timestampSeconds;
- private:
- bool updateContent(const Cairo::RefPtr<Cairo::Context> &cairo);
};
} \ No newline at end of file