summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-01-11 18:27:46 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2021-01-11 18:27:46 -0500
commite8cbb9d3d1ecca25f1e0a31a75fac70c7a3ea0cb (patch)
treeecb21c74221f320422ff2390c940b921d02331f2 /windows
parentdef598941a74d6960985171ef5f446bdf8858182 (diff)
downloadabaddon-portaudio-e8cbb9d3d1ecca25f1e0a31a75fac70c7a3ea0cb.tar.gz
abaddon-portaudio-e8cbb9d3d1ecca25f1e0a31a75fac70c7a3ea0cb.zip
add typing indicator with optional res/typing_indicator.gif
Diffstat (limited to 'windows')
-rw-r--r--windows/mainwindow.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/windows/mainwindow.cpp b/windows/mainwindow.cpp
index 30a79fa..883801f 100644
--- a/windows/mainwindow.cpp
+++ b/windows/mainwindow.cpp
@@ -35,6 +35,7 @@ MainWindow::MainWindow()
m_menu_bar.append(m_menu_file);
m_menu_bar.append(m_menu_discord);
+ m_menu_bar.show_all();
m_menu_discord_connect.signal_activate().connect([this] {
m_signal_action_connect.emit();
@@ -66,9 +67,11 @@ MainWindow::MainWindow()
m_content_box.set_hexpand(true);
m_content_box.set_vexpand(true);
+ m_content_box.show();
m_main_box.add(m_menu_bar);
m_main_box.add(m_content_box);
+ m_main_box.show();
auto *channel_list = m_channel_list.GetRoot();
auto *member_list = m_members.GetRoot();
@@ -84,17 +87,21 @@ MainWindow::MainWindow()
chat->set_vexpand(true);
chat->set_hexpand(true);
+ chat->show();
channel_list->set_vexpand(true);
channel_list->set_size_request(-1, -1);
+ channel_list->show();
member_list->set_vexpand(true);
+ member_list->show();
m_chan_chat_paned.pack1(*channel_list);
m_chan_chat_paned.pack2(m_chat_members_paned);
m_chan_chat_paned.child_property_shrink(*channel_list) = false;
m_chan_chat_paned.child_property_resize(*channel_list) = false;
m_chan_chat_paned.set_position(200);
+ m_chan_chat_paned.show();
m_content_box.add(m_chan_chat_paned);
m_chat_members_paned.pack1(*chat);
@@ -104,10 +111,9 @@ MainWindow::MainWindow()
int w, h;
get_default_size(w, h); // :s
m_chat_members_paned.set_position(w - m_chan_chat_paned.get_position() - 150);
+ m_chat_members_paned.show();
add(m_main_box);
-
- show_all_children();
}
void MainWindow::UpdateComponents() {