From a535703add6bf29878845cb270997514489cfc16 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 31 Oct 2018 18:12:49 +0100 Subject: Start with images/gif, resize chat input --- src/Window.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/Window.cpp') diff --git a/src/Window.cpp b/src/Window.cpp index b1efc20..6a0ab64 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -1,7 +1,7 @@ #include "../include/Window.hpp" -#include "../include/Cache.hpp" #include "../include/ChannelDataType.hpp" #include "../include/WindowNotification.hpp" +#include #include #include #include @@ -181,6 +181,7 @@ namespace dchat prevTimeMillis = std::chrono::duration_cast(std::chrono::system_clock::now().time_since_epoch()).count() - 5000; drawBackgroundConnection = signal_draw().connect(sigc::mem_fun(*this, &Window::drawBackground)); set_size_request(640, 480); + //set_app_paintable(true); } Window::~Window() @@ -201,6 +202,11 @@ namespace dchat { int windowWidth, windowHeight; get_size(windowWidth, windowHeight); + + //cairo->set_source_rgb(0.1843137254901961, 0.19215686274509805, 0.21176470588235294); + //cairo->rectangle(0.0, 0.0, windowWidth, windowHeight); + //cairo->fill(); + cairo->set_source_rgb(0.5, 0.5, 0.5); int currentTimeMillis = std::chrono::duration_cast(std::chrono::system_clock::now().time_since_epoch()).count(); -- cgit v1.2.3