From 4b903bbd3e8436e1d63b8c12e76d8a3c924da5fc Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 19 Aug 2020 21:08:57 -0400 Subject: add http client and channel reordering (waste of time) --- components/channels.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'components/channels.hpp') diff --git a/components/channels.hpp b/components/channels.hpp index d15846d..b98f094 100644 --- a/components/channels.hpp +++ b/components/channels.hpp @@ -21,6 +21,7 @@ protected: Gtk::ScrolledWindow *m_main; struct ListItemInfo { + int GuildIndex; Snowflake ID; std::unordered_set Children; bool IsUserCollapsed; @@ -32,10 +33,18 @@ protected: void on_row_activated(Gtk::ListBoxRow *row); + int m_guild_count; + Gtk::Menu m_guild_menu; + Gtk::MenuItem *m_guild_menu_up; + Gtk::MenuItem *m_guild_menu_down; + void on_menu_move_up(); + void on_menu_move_down(); + Glib::Dispatcher m_update_dispatcher; mutable std::mutex m_update_mutex; std::queue m_update_queue; void SetListingFromGuildsInternal(); + void AttachMenuHandler(Gtk::ListBoxRow* row); Abaddon *m_abaddon = nullptr; }; -- cgit v1.2.3