summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_icons.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-01-17 22:34:45 +0300
committeraunsane <aunsane@gmail.com>2018-01-17 22:34:45 +0300
commitbf928bd6cfa3df39b4cfda0ff5a5825105cf4a56 (patch)
tree3c7ce179ea9f6a43e671c96186fcbec804170c9a /protocols/Tox/src/tox_icons.cpp
parent5f96f1919d2d8210c4a67fe5a4fd9c0f84f9ee27 (diff)
Tox: updated libtox to 0.2.0
- support of message correction - version bump
Diffstat (limited to 'protocols/Tox/src/tox_icons.cpp')
-rw-r--r--protocols/Tox/src/tox_icons.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_icons.cpp b/protocols/Tox/src/tox_icons.cpp
index 928685ebf3..5e95d49c24 100644
--- a/protocols/Tox/src/tox_icons.cpp
+++ b/protocols/Tox/src/tox_icons.cpp
@@ -2,7 +2,9 @@
IconItemT CToxProto::Icons[] =
{
- { LPGENW("Protocol icon"), "main", IDI_TOX },
+ { LPGENW("Protocol icon"), "main", IDI_TOX },
+ { LPGENW("Action icon"), "main", IDI_ME },
+ { LPGENW("Correction icon"), "edit", IDI_EDIT },
};
void CToxProto::InitIcons()
@@ -15,6 +17,13 @@ HANDLE CToxProto::GetIconHandle(int iconId)
for (size_t i = 0; i < _countof(Icons); i++)
if (Icons[i].defIconID == iconId)
return Icons[i].hIcolib;
+ return nullptr;
+}
+HICON CToxProto::GetIcon(int iconId)
+{
+ for (size_t i = 0; i < _countof(Icons); i++)
+ if (Icons[i].defIconID == iconId)
+ return IcoLib_GetIconByHandle(Icons[i].hIcolib);
return nullptr;
}