aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
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);