diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-05-21 22:41:42 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-05-21 22:41:42 -0400 |
commit | a1c7d14efa0960e1339b62a7221985e8fb6cecd2 (patch) | |
tree | 2f3f1c3d3f9585e9d17c88f994c235aa20ad3f45 /components/channels.hpp | |
parent | acbe03157ccbbeb725c23029e32fae0862377651 (diff) | |
download | abaddon-portaudio-a1c7d14efa0960e1339b62a7221985e8fb6cecd2.tar.gz abaddon-portaudio-a1c7d14efa0960e1339b62a7221985e8fb6cecd2.zip |
some memory usage optimizations pending proper rewrite
Diffstat (limited to 'components/channels.hpp')
-rw-r--r-- | components/channels.hpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/components/channels.hpp b/components/channels.hpp index 8515d02..08b69fa 100644 --- a/components/channels.hpp +++ b/components/channels.hpp @@ -14,7 +14,7 @@ class ChannelListRow : public Gtk::ListBoxRow { public: bool IsUserCollapsed; Snowflake ID; - std::unordered_set<ChannelListRow *> Children; + std::vector<ChannelListRow *> Children; ChannelListRow *Parent = nullptr; virtual void Collapse(); @@ -111,21 +111,9 @@ class ChannelListRowChannel : public ChannelListRow { public: ChannelListRowChannel(const ChannelData *data); -protected: - Gtk::EventBox *m_ev; - Gtk::Box *m_box; - Gtk::TextView *m_lbl; - - Gtk::Menu m_menu; - Gtk::MenuItem *m_menu_copyid; - private: - typedef sigc::signal<void> type_signal_copy_id; - - type_signal_copy_id m_signal_copy_id; - -public: - type_signal_copy_id signal_copy_id(); + static Gtk::Menu *m_menu; + static bool m_menu_init; }; class ChannelList { |