diff options
author | George Hazan <ghazan@miranda.im> | 2022-12-14 18:23:36 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-12-14 18:23:36 +0300 |
commit | 1885f8d2173768ae3a4bbd80b6a12dad24591fd9 (patch) | |
tree | bf8f6353f1c0d69915182d989b7714528be6f520 /protocols/Telegram/src/main.cpp | |
parent | e72ccc740bfa7c6493a56abc168eb270f76f0cba (diff) |
Telegram: setting premium icon
Diffstat (limited to 'protocols/Telegram/src/main.cpp')
-rw-r--r-- | protocols/Telegram/src/main.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/protocols/Telegram/src/main.cpp b/protocols/Telegram/src/main.cpp index f2fb0cd153..6af8517ab7 100644 --- a/protocols/Telegram/src/main.cpp +++ b/protocols/Telegram/src/main.cpp @@ -43,15 +43,10 @@ static IconItem iconList[] = { LPGEN("Premium user"), "premuim", IDI_PREMIUM }, }; -extern "C" int __declspec(dllexport) Load(void) -{ - g_plugin.registerIcon("Protocols/Telegram", iconList, "tg"); - return 0; -} - -///////////////////////////////////////////////////////////////////////////////////////// - -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Load() { + registerIcon("Protocols/Telegram", iconList, "tg"); + + m_hIcon = ExtraIcon_RegisterIcolib("tg_premium", "Telegram Premium User", getIconHandle(IDI_PREMIUM)); return 0; } |