aboutsummaryrefslogtreecommitdiff
path: root/src/ChatWindow.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-02-16 23:17:26 +0100
committerdec05eba <dec05eba@protonmail.com>2020-08-19 00:14:44 +0200
commit9c37b2dca4edaf8e9d487c6a18ab53b178161f37 (patch)
tree998514073ef5747745ea0f7c42ae4d3b16095ecc /src/ChatWindow.cpp
parent4a23517b6beddad8f4e2c5264d309fec590847e7 (diff)
asdf
Diffstat (limited to 'src/ChatWindow.cpp')
-rw-r--r--src/ChatWindow.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ChatWindow.cpp b/src/ChatWindow.cpp
index 76df69e..437282a 100644
--- a/src/ChatWindow.cpp
+++ b/src/ChatWindow.cpp
@@ -249,7 +249,7 @@ namespace dchat
{
Gtk::Grid *chatArea = Gtk::manage(new Gtk::Grid());
chatArea->set_name("chat-area");
- rightPanel->attach(*chatArea, 0, 2, 1, 1);
+ rightPanel->attach(*chatArea, 0, 3, 1, 1);
Gtk::ScrolledWindow *chatScrollWindow = Gtk::manage(new Gtk::ScrolledWindow());
chatScrollWindow->set_hexpand(true);
@@ -372,12 +372,13 @@ namespace dchat
Gtk::ScrolledWindow *messageArea = Gtk::manage(new Gtk::ScrolledWindow());
messageArea->set_vexpand(true);
messageArea->set_overlay_scrolling(false);
- messageArea->set_policy(Gtk::PolicyType::POLICY_NEVER, Gtk::PolicyType::POLICY_AUTOMATIC);
+ messageArea->set_policy(Gtk::PolicyType::POLICY_NEVER, Gtk::PolicyType::POLICY_ALWAYS);
messageAreaStack.add(*messageArea, roomIdStr, "Room name");
if(!messageAreaStack.get_visible_child())
messageAreaStack.set_visible_child(roomIdStr);
Gtk::Grid *messageAreaLayout = new Gtk::Grid();
+ messageAreaLayout->set_valign(Gtk::ALIGN_START);
messageArea->add(*messageAreaLayout);
messageArea->show_all();
@@ -477,8 +478,8 @@ namespace dchat
message->avatar.url = "https://discordemoji.com/assets/emoji/PeepoHide.png";
else
message->avatar.url = request.message->creator->avatarUrl;
- message->set_valign(Gtk::Align::ALIGN_START);
- message->set_hexpand(true);
+ //message->set_valign(Gtk::Align::ALIGN_START);
+ //message->set_hexpand(true);
message->show_all();
messageById[request.message->id] = message;
RoomData *roomData = roomDataById[*request.room->id];