diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-08-19 21:08:57 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-08-19 21:08:57 -0400 |
commit | 4b903bbd3e8436e1d63b8c12e76d8a3c924da5fc (patch) | |
tree | aaf25a464d5a308322afd82805bbbcb31ab2f65c /components/channels.hpp | |
parent | 0cd0260f2e4cfe11678cdac4f965c9abf64b3592 (diff) | |
download | abaddon-portaudio-4b903bbd3e8436e1d63b8c12e76d8a3c924da5fc.tar.gz abaddon-portaudio-4b903bbd3e8436e1d63b8c12e76d8a3c924da5fc.zip |
add http client and channel reordering (waste of time)
Diffstat (limited to 'components/channels.hpp')
-rw-r--r-- | components/channels.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
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<Gtk::ListBoxRow *> 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<DiscordClient::Guilds_t> m_update_queue; void SetListingFromGuildsInternal(); + void AttachMenuHandler(Gtk::ListBoxRow* row); Abaddon *m_abaddon = nullptr; }; |