added gif emotes

This commit is contained in:
fourtf
2017-02-07 00:03:15 +01:00
parent 5673efa0db
commit 5b03712a82
9 changed files with 118 additions and 16 deletions
+20 -2
View File
@@ -44,7 +44,7 @@ MainWindow::layoutVisibleChatWidgets(Channel *channel)
if (channel == NULL || channel == widget->getChannel().get()) {
if (widget->getView().layoutMessages()) {
widget->update();
widget->getView().update();
}
}
}
@@ -66,11 +66,29 @@ MainWindow::repaintVisibleChatWidgets(Channel *channel)
if (channel == NULL || channel == widget->getChannel().get()) {
widget->getView().layoutMessages();
widget->update();
widget->getView().update();
}
}
}
void
MainWindow::repaintGifEmotes()
{
auto *page = notebook.getSelectedPage();
if (page == NULL) {
return;
}
const std::vector<ChatWidget *> &widgets = page->getChatWidgets();
for (auto it = widgets.begin(); it != widgets.end(); ++it) {
ChatWidget *widget = *it;
widget->getView().updateGifEmotes();
}
}
void
MainWindow::load(const boost::property_tree::ptree &tree)
{