From df243a40b5febcf7b9834e66f0ade770c3b483a0 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Mon, 26 Jul 2021 00:56:14 -0400 Subject: let channel list manage itself instead of window --- components/channels.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'components/channels.hpp') diff --git a/components/channels.hpp b/components/channels.hpp index 3e9d9e0..69f1f77 100644 --- a/components/channels.hpp +++ b/components/channels.hpp @@ -118,17 +118,18 @@ private: class ChannelList : public Gtk::ScrolledWindow { public: ChannelList(); + void UpdateListing(); - void UpdateNewGuild(Snowflake id); + void SetActiveChannel(Snowflake id); + +protected: + void UpdateNewGuild(const GuildData &guild); void UpdateRemoveGuild(Snowflake id); void UpdateRemoveChannel(Snowflake id); void UpdateChannel(Snowflake id); void UpdateCreateChannel(Snowflake id); void UpdateGuild(Snowflake id); - void SetActiveChannel(Snowflake id); - -protected: Gtk::TreeView m_view; class ModelColumns : public Gtk::TreeModel::ColumnRecord { -- cgit v1.2.3