summaryrefslogtreecommitdiff
path: root/protocols/Twitter/src/theme.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-18 21:56:03 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-18 21:56:03 +0300
commitcb4d31922f0690f5a3c79526245c963bfd118864 (patch)
treea6826371092617844c19772e73bf4e5756400140 /protocols/Twitter/src/theme.cpp
parent37a022d37e79dbe9892f376ef7c3b6b8878c4aff (diff)
Icon_Register(g_plugin.getInst() => g_plugin.registerIcon
Icon_RegisterT(g_plugin.getInst() => g_plugin.registerIconW
Diffstat (limited to 'protocols/Twitter/src/theme.cpp')
-rw-r--r--protocols/Twitter/src/theme.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Twitter/src/theme.cpp b/protocols/Twitter/src/theme.cpp
index e3b967caf3..d30633d1fb 100644
--- a/protocols/Twitter/src/theme.cpp
+++ b/protocols/Twitter/src/theme.cpp
@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "theme.h"
#include "proto.h"
-static IconItem icons[] =
+static IconItem iconList[] =
{
{ LPGEN("Twitter Icon"), "twitter", IDI_TWITTER },
{ LPGEN("Tweet"), "tweet", IDI_TWITTER },
@@ -38,13 +38,13 @@ void TwitterInitSounds(void)
// TODO: uninit
void InitIcons(void)
{
- Icon_Register(g_plugin.getInst(), "Protocols/Twitter", icons, _countof(icons), "Twitter");
- icons[_countof(icons) - 1].hIcolib = Skin_GetIconHandle(SKINICON_EVENT_URL);
+ g_plugin.registerIcon("Protocols/Twitter", iconList, "Twitter");
+ iconList[_countof(iconList) - 1].hIcolib = Skin_GetIconHandle(SKINICON_EVENT_URL);
}
HANDLE GetIconHandle(const char *name)
{
- for (auto &it : icons)
+ for (auto &it : iconList)
if (mir_strcmp(it.szName, name) == 0)
return it.hIcolib;