make ChannelList directly subclass a container

This commit is contained in:
ouwou
2021-07-05 17:35:53 -04:00
parent 3565ec885e
commit 9ec52e3473
3 changed files with 11 additions and 18 deletions

View File

@@ -81,10 +81,9 @@ private:
Glib::Property<bool> m_property_expanded; // category
};
class ChannelList {
class ChannelList : public Gtk::ScrolledWindow {
public:
ChannelList();
Gtk::Widget *GetRoot() const;
void UpdateListing();
void UpdateNewGuild(Snowflake id);
void UpdateRemoveGuild(Snowflake id);
@@ -97,7 +96,6 @@ public:
void SetActiveChannel(Snowflake id);
protected:
Gtk::ScrolledWindow *m_main;
Gtk::TreeView m_view;
class ModelColumns : public Gtk::TreeModel::ColumnRecord {