From af567847970121765674dc8d0542b9c4a1f89ed1 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sun, 5 Dec 2021 03:57:26 -0500 Subject: basic unread indicators for channels --- src/components/channelscellrenderer.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/components/channelscellrenderer.hpp') diff --git a/src/components/channelscellrenderer.hpp b/src/components/channelscellrenderer.hpp index ce8da54..4a9d428 100644 --- a/src/components/channelscellrenderer.hpp +++ b/src/components/channelscellrenderer.hpp @@ -3,6 +3,7 @@ #include #include #include +#include "discord/snowflake.hpp" enum class RenderType : uint8_t { Guild, @@ -20,6 +21,7 @@ public: virtual ~CellRendererChannels(); Glib::PropertyProxy property_type(); + Glib::PropertyProxy property_id(); Glib::PropertyProxy property_name(); Glib::PropertyProxy> property_icon(); Glib::PropertyProxy> property_icon_animation(); @@ -106,8 +108,9 @@ protected: private: Gtk::CellRendererText m_renderer_text; - Glib::Property m_property_type; // all - Glib::Property m_property_name; // all + Glib::Property m_property_type; // all + Glib::Property m_property_name; // all + Glib::Property m_property_id; Glib::Property> m_property_pixbuf; // guild, dm Glib::Property> m_property_pixbuf_animation; // guild Glib::Property m_property_expanded; // category -- cgit v1.2.3