summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Discord/src/main.cpp2
-rw-r--r--protocols/Gadu-Gadu/src/icolib.cpp2
-rw-r--r--protocols/ICQ-WIM/src/main.cpp2
-rw-r--r--protocols/IRCG/src/options.cpp2
-rw-r--r--protocols/JabberG/src/jabber_icolib.cpp2
-rw-r--r--protocols/Omegle/src/theme.cpp2
-rw-r--r--protocols/Sametime/src/sametime.cpp2
-rw-r--r--protocols/Telegram/src/main.cpp2
-rw-r--r--protocols/Twitter/src/theme.cpp2
-rw-r--r--protocols/YAMN/src/main.cpp2
10 files changed, 10 insertions, 10 deletions
diff --git a/protocols/Discord/src/main.cpp b/protocols/Discord/src/main.cpp
index 98f0b120de..0af99505b7 100644
--- a/protocols/Discord/src/main.cpp
+++ b/protocols/Discord/src/main.cpp
@@ -66,6 +66,6 @@ int CMPlugin::Load()
{
HookEvent(ME_SYSTEM_MODULESLOADED, &OnModulesLoaded);
- g_plugin.registerIcon("Protocols/Discord", g_iconList);
+ g_plugin.registerIcon(LPGEN("Protocols") "/" LPGEN("Discord"), g_iconList);
return 0;
}
diff --git a/protocols/Gadu-Gadu/src/icolib.cpp b/protocols/Gadu-Gadu/src/icolib.cpp
index db210254ed..1a119c0f4d 100644
--- a/protocols/Gadu-Gadu/src/icolib.cpp
+++ b/protocols/Gadu-Gadu/src/icolib.cpp
@@ -43,5 +43,5 @@ extern IconItem iconList[] =
void gg_icolib_init()
{
- g_plugin.registerIcon("Protocols/" GGDEF_PROTO, iconList, GGDEF_PROTO);
+ g_plugin.registerIcon(LPGEN("Protocols") "/" LPGEN("GG"), iconList, GGDEF_PROTO);
}
diff --git a/protocols/ICQ-WIM/src/main.cpp b/protocols/ICQ-WIM/src/main.cpp
index b445bc7b29..f74dac11c7 100644
--- a/protocols/ICQ-WIM/src/main.cpp
+++ b/protocols/ICQ-WIM/src/main.cpp
@@ -93,7 +93,7 @@ int CMPlugin::Load()
// register the second instance of this plugin as MRA
g_pluginMra.Register();
- registerIcon("Protocols/ICQ", iconList, "ICQ");
+ registerIcon(LPGEN("Protocols") "/" LPGEN("ICQ"), iconList, "ICQ");
HookEvent(ME_SYSTEM_MODULELOAD, ModuleLoad);
HookEvent(ME_SYSTEM_MODULEUNLOAD, ModuleLoad);
diff --git a/protocols/IRCG/src/options.cpp b/protocols/IRCG/src/options.cpp
index 4f3439540d..8822b2e532 100644
--- a/protocols/IRCG/src/options.cpp
+++ b/protocols/IRCG/src/options.cpp
@@ -144,7 +144,7 @@ static IconItem iconList[] =
void InitIcons(void)
{
- g_plugin.registerIcon("Protocols/IRC", iconList, "IRC");
+ g_plugin.registerIcon(LPGEN("Protocols") "/" LPGEN("IRC"), iconList, "IRC");
}
/////////////////////////////////////////////////////////////////////////////////////////
diff --git a/protocols/JabberG/src/jabber_icolib.cpp b/protocols/JabberG/src/jabber_icolib.cpp
index 7e08277418..f49324efaa 100644
--- a/protocols/JabberG/src/jabber_icolib.cpp
+++ b/protocols/JabberG/src/jabber_icolib.cpp
@@ -120,7 +120,7 @@ void CIconPool::RegisterIcon(const char *name, wchar_t *filename, int iconid, wc
sid.description.w = szDescription;
sid.flags = SIDF_ALL_UNICODE;
sid.iDefaultIndex = iconid;
- item->m_hIcolibItem = IcoLib_AddIcon(&sid, &g_plugin);
+ item->m_hIcolibItem = g_plugin.addIcon(&sid);
m_items.insert(item);
}
diff --git a/protocols/Omegle/src/theme.cpp b/protocols/Omegle/src/theme.cpp
index f9899adbe9..4c047d5d12 100644
--- a/protocols/Omegle/src/theme.cpp
+++ b/protocols/Omegle/src/theme.cpp
@@ -31,5 +31,5 @@ static IconItem iconList[] =
void InitIcons(void)
{
- g_plugin.registerIcon("Protocols/Omegle", iconList, "Omegle");
+ g_plugin.registerIcon(LPGEN("Protocols") "/" LPGEN("Omegle"), iconList, "Omegle");
}
diff --git a/protocols/Sametime/src/sametime.cpp b/protocols/Sametime/src/sametime.cpp
index 238f559d6b..56c3f54c98 100644
--- a/protocols/Sametime/src/sametime.cpp
+++ b/protocols/Sametime/src/sametime.cpp
@@ -82,7 +82,7 @@ static IconItem iconList[] =
void SametimeInitIcons(void)
{
- g_plugin.registerIcon("Protocols/Sametime", iconList, "SAMETIME");
+ g_plugin.registerIcon(LPGEN("Protocols") "/" LPGEN("Sametime"), iconList, "SAMETIME");
}
// Copied from MSN plugin - sent acks need to be from different thread
diff --git a/protocols/Telegram/src/main.cpp b/protocols/Telegram/src/main.cpp
index ee1aa1ecee..590a1ecd1b 100644
--- a/protocols/Telegram/src/main.cpp
+++ b/protocols/Telegram/src/main.cpp
@@ -47,7 +47,7 @@ static IconItem iconList[] =
int CMPlugin::Load()
{
- registerIcon("Protocols/Telegram", iconList, "tg");
+ registerIcon(LPGEN("Protocols") "/" LPGEN("Telegram"), iconList, "tg");
m_hIcon = ExtraIcon_RegisterIcolib("tg_premium", LPGEN("Telegram Premium user"), getIconHandle(IDI_PREMIUM));
return 0;
diff --git a/protocols/Twitter/src/theme.cpp b/protocols/Twitter/src/theme.cpp
index b7b8c01e97..566bcdb576 100644
--- a/protocols/Twitter/src/theme.cpp
+++ b/protocols/Twitter/src/theme.cpp
@@ -37,7 +37,7 @@ void TwitterInitSounds(void)
// TODO: uninit
void InitIcons(void)
{
- g_plugin.registerIcon("Protocols/Twitter", iconList, "Twitter");
+ g_plugin.registerIcon(LPGEN("Protocols") "/" LPGEN("Twitter"), iconList, "Twitter");
iconList[_countof(iconList) - 1].hIcolib = Skin_GetIconHandle(SKINICON_EVENT_URL);
}
diff --git a/protocols/YAMN/src/main.cpp b/protocols/YAMN/src/main.cpp
index 7522c4c0e8..7a17dd78d4 100644
--- a/protocols/YAMN/src/main.cpp
+++ b/protocols/YAMN/src/main.cpp
@@ -126,7 +126,7 @@ static IconItem iconList[] =
void LoadIcons()
{
- g_plugin.registerIcon("YAMN", iconList);
+ g_plugin.registerIcon(LPGEN("YAMN"), iconList);
}
int CMPlugin::Load()