aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-11-03 01:10:08 +0100
committerdec05eba <dec05eba@protonmail.com>2018-11-03 01:10:11 +0100
commit8cc8853c3c1e5dfd7681bc0c31bc0eb88a4ef959 (patch)
tree844cb300de80e41aac38a1b481368c6ae6eb6c58 /src/Window.cpp
parent3c5eb7000709606eccd34114e8bf4e851dcacd6a (diff)
Add room name change event, create new room button, multiple rooms
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/Window.cpp b/src/Window.cpp
index b9e1490..e8129f0 100644
--- a/src/Window.cpp
+++ b/src/Window.cpp
@@ -5,7 +5,6 @@
#include <sibs/SafeDeserializer.hpp>
#include <math.h>
#include <chrono>
-#include <gtkmm.h>
namespace dchat
{
@@ -48,13 +47,7 @@ namespace dchat
drawBackgroundConnection.disconnect();
chatWindow.show_all();
stack.set_visible_child(chatWindow);
-
- Glib::signal_timeout().connect([this]
- {
- printf("scroll to bottom!\n");
- chatWindow.scrollToBottom();
- return false;
- }, 100);
+ chatWindow.scrollToBottom();
}
catch(std::exception &e)
{
@@ -130,6 +123,10 @@ namespace dchat
{
chatWindow.setUserNickname(request);
};
+ roomCallbackFuncs.changeRoomNameCallbackFunc = [this](const RoomChangeNameRequest &request)
+ {
+ chatWindow.changeRoomName(request);
+ };
windowNotification->show("Connecting to 83.252.53.188:27130");
Rooms::connect("83.252.53.188", 27130, roomCallbackFuncs);