aboutsummaryrefslogtreecommitdiff
path: root/include/ChatMessage.hpp
diff options
context:
space:
mode:
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