2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

savedgifs -> contextitems in stickers panel, fixed atomic uint64, now with mutex :(

This commit is contained in:
John Preston
2015-12-30 14:47:39 +08:00
parent 96a698a4dc
commit cbb0219812
15 changed files with 661 additions and 448 deletions

View File

@@ -102,8 +102,8 @@ namespace Ui {
return false;
}
bool isGifBeingChosen() {
if (MainWidget *m = App::main()) return m->ui_isGifBeingChosen();
bool isContextItemBeingChosen() {
if (MainWidget *m = App::main()) return m->ui_isContextItemBeingChosen();
return false;
}
@@ -112,13 +112,13 @@ namespace Ui {
if (MainWidget *m = App::main()) m->ui_repaintHistoryItem(item);
}
void repaintSavedGif(const LayoutSavedGif *layout) {
void repaintContextItem(const LayoutContextItem *layout) {
if (!layout) return;
if (MainWidget *m = App::main()) m->ui_repaintSavedGif(layout);
if (MainWidget *m = App::main()) m->ui_repaintContextItem(layout);
}
bool isSavedGifVisible(const LayoutSavedGif *layout) {
if (MainWidget *m = App::main()) return m->ui_isSavedGifVisible(layout);
bool isContextItemVisible(const LayoutContextItem *layout) {
if (MainWidget *m = App::main()) return m->ui_isContextItemVisible(layout);
return false;
}