summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src/main.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 /plugins/SmileyAdd/src/main.cpp
parent37a022d37e79dbe9892f376ef7c3b6b8878c4aff (diff)
Icon_Register(g_plugin.getInst() => g_plugin.registerIcon
Icon_RegisterT(g_plugin.getInst() => g_plugin.registerIconW
Diffstat (limited to 'plugins/SmileyAdd/src/main.cpp')
-rw-r--r--plugins/SmileyAdd/src/main.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/SmileyAdd/src/main.cpp b/plugins/SmileyAdd/src/main.cpp
index a4322180af..44496c2994 100644
--- a/plugins/SmileyAdd/src/main.cpp
+++ b/plugins/SmileyAdd/src/main.cpp
@@ -49,14 +49,17 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD /* mira
/////////////////////////////////////////////////////////////////////////////////////////
-static IconItem icon = { LPGEN("Button smiley"), "SmileyAdd_ButtonSmiley", IDI_SMILINGICON };
+static IconItem iconList[] =
+{
+ { LPGEN("Button smiley"), "SmileyAdd_ButtonSmiley", IDI_SMILINGICON }
+};
static int ModulesLoaded(WPARAM, LPARAM)
{
CMenuItem mi;
SET_UID(mi, 0x5ba238de, 0xe16b, 0x4928, 0xa0, 0x70, 0xff, 0x43, 0xf6, 0x1f, 0x16, 0xd4);
mi.position = 2000070050;
- mi.hIcolibItem = icon.hIcolib;
+ mi.hIcolibItem = iconList[0].hIcolib;
mi.name.a = LPGEN("Assign smiley category");
hContactMenuItem = Menu_AddContactMenuItem(&mi);
@@ -95,7 +98,7 @@ extern "C" __declspec(dllexport) int Load(void)
InitImageCache();
- Icon_Register(g_plugin.getInst(), MODULENAME, &icon, 1);
+ g_plugin.registerIcon(MODULENAME, iconList);
g_SmileyCategories.SetSmileyPackStore(&g_SmileyPacks);