diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-12-05 03:57:26 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-12-05 03:57:26 -0500 |
commit | af567847970121765674dc8d0542b9c4a1f89ed1 (patch) | |
tree | a67af688c82fb3e49fee9fe60d5ab69ac2173b20 /src/components/channelscellrenderer.hpp | |
parent | 246140688714936820b5c977665ad2a904fa7222 (diff) | |
download | abaddon-portaudio-af567847970121765674dc8d0542b9c4a1f89ed1.tar.gz abaddon-portaudio-af567847970121765674dc8d0542b9c4a1f89ed1.zip |
basic unread indicators for channels
Diffstat (limited to 'src/components/channelscellrenderer.hpp')
-rw-r--r-- | src/components/channelscellrenderer.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
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 <gdkmm/pixbufanimation.h> #include <glibmm/property.h> #include <map> +#include "discord/snowflake.hpp" enum class RenderType : uint8_t { Guild, @@ -20,6 +21,7 @@ public: virtual ~CellRendererChannels(); Glib::PropertyProxy<RenderType> property_type(); + Glib::PropertyProxy<uint64_t> property_id(); Glib::PropertyProxy<Glib::ustring> property_name(); Glib::PropertyProxy<Glib::RefPtr<Gdk::Pixbuf>> property_icon(); Glib::PropertyProxy<Glib::RefPtr<Gdk::PixbufAnimation>> property_icon_animation(); @@ -106,8 +108,9 @@ protected: private: Gtk::CellRendererText m_renderer_text; - Glib::Property<RenderType> m_property_type; // all - Glib::Property<Glib::ustring> m_property_name; // all + Glib::Property<RenderType> m_property_type; // all + Glib::Property<Glib::ustring> m_property_name; // all + Glib::Property<uint64_t> m_property_id; Glib::Property<Glib::RefPtr<Gdk::Pixbuf>> m_property_pixbuf; // guild, dm Glib::Property<Glib::RefPtr<Gdk::PixbufAnimation>> m_property_pixbuf_animation; // guild Glib::Property<bool> m_property_expanded; // category |