diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-11-03 22:49:29 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-11-03 22:49:32 +0100 |
commit | c7138bca7ea7d007198c544b2d8bc27ae414d2e2 (patch) | |
tree | b27752bc5e4e452a9a4c047e884b8952a22a0f0a /src/Window.cpp | |
parent | 405459e93be718b0e6aad26746036105dd3f3226 (diff) |
Start with gif/image widget
Diffstat (limited to 'src/Window.cpp')
-rw-r--r-- | src/Window.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Window.cpp b/src/Window.cpp index 8b23aa9..b5a9f26 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -43,7 +43,7 @@ namespace dchat { fprintf(stderr, "Trying to login with username %s\n", username.raw().c_str()); rooms->loginUser(username.raw(), password.raw()); - windowNotification->show(Glib::ustring("Successfully logged in as ") + username); + //windowNotification->show(Glib::ustring("Successfully logged in as ") + username); drawBackgroundConnection.disconnect(); chatWindow.show_all(); stack.set_visible_child(chatWindow); @@ -260,7 +260,10 @@ namespace dchat //cairo->paint(); */ - overlay.draw(cairo); + Gtk::Allocation alloc = overlay.get_allocation(); + // For some reason gtk sometimes needs time to allocate the overlay, and it freezes the application if you do not wait for it + if(!alloc.has_zero_area()) + overlay.draw(cairo); queue_draw(); return true; } |