diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-07-07 03:09:54 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-07-07 03:09:54 -0400 |
commit | 41776fbd023df1c4a70ffa46e8f81c6aea9f7b7f (patch) | |
tree | 12529298666543801a0e46c1fa83099e69968ddc /src/components/chatwindow.cpp | |
parent | 5c7631e71382b0c1727bd8e1487a7e41feaf2efc (diff) | |
download | abaddon-portaudio-41776fbd023df1c4a70ffa46e8f81c6aea9f7b7f.tar.gz abaddon-portaudio-41776fbd023df1c4a70ffa46e8f81c6aea9f7b7f.zip |
add upload progress bar
Diffstat (limited to 'src/components/chatwindow.cpp')
-rw-r--r-- | src/components/chatwindow.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/components/chatwindow.cpp b/src/components/chatwindow.cpp index d9d490b..5cbeea1 100644 --- a/src/components/chatwindow.cpp +++ b/src/components/chatwindow.cpp @@ -9,7 +9,8 @@ #endif ChatWindow::ChatWindow() { - Abaddon::Get().GetDiscordClient().signal_message_send_fail().connect(sigc::mem_fun(*this, &ChatWindow::OnMessageSendFail)); + auto &discord = Abaddon::Get().GetDiscordClient(); + discord.signal_message_send_fail().connect(sigc::mem_fun(*this, &ChatWindow::OnMessageSendFail)); m_main = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL)); m_chat = Gtk::manage(new ChatList); @@ -59,11 +60,11 @@ ChatWindow::ChatWindow() { m_input->show(); m_completer.SetBuffer(m_input->GetBuffer()); - m_completer.SetGetChannelID([this]() -> auto { + m_completer.SetGetChannelID([this]() { return m_active_channel; }); - m_completer.SetGetRecentAuthors([this]() -> auto { + m_completer.SetGetRecentAuthors([this]() { return m_chat->GetRecentAuthors(); }); @@ -109,6 +110,10 @@ ChatWindow::ChatWindow() { m_main->add(m_completer); m_main->add(*m_input); m_main->add(*m_meta); + m_main->add(m_progress); + + m_progress.show(); + m_main->show(); } |