diff options
| author | George Hazan <ghazan@miranda.im> | 2018-05-18 21:56:03 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2018-05-18 21:56:03 +0300 |
| commit | cb4d31922f0690f5a3c79526245c963bfd118864 (patch) | |
| tree | a6826371092617844c19772e73bf4e5756400140 /plugins/AvatarHistory/src | |
| parent | 37a022d37e79dbe9892f376ef7c3b6b8878c4aff (diff) | |
Icon_Register(g_plugin.getInst() => g_plugin.registerIcon
Icon_RegisterT(g_plugin.getInst() => g_plugin.registerIconW
Diffstat (limited to 'plugins/AvatarHistory/src')
| -rw-r--r-- | plugins/AvatarHistory/src/icolib.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/AvatarHistory/src/icolib.cpp b/plugins/AvatarHistory/src/icolib.cpp index 665cb0d867..c7acb20385 100644 --- a/plugins/AvatarHistory/src/icolib.cpp +++ b/plugins/AvatarHistory/src/icolib.cpp @@ -2,13 +2,11 @@ enum IconIndex
{
- I_HISTORY,
I_OVERLAY
};
static IconItem iconList[] =
{
- { LPGEN("History"), "", IDI_AVATARHIST },
{ LPGEN("Avatar overlay"), "avh_overlay", IDI_AVATAROVERLAY }
};
@@ -37,8 +35,8 @@ int IcoLibIconsChanged(WPARAM, LPARAM) void SetupIcoLib()
{
- iconList[0].hIcolib = Skin_GetIconHandle(SKINICON_OTHER_HISTORY);
- Icon_Register(g_plugin.getInst(), LPGEN("Avatar history"), iconList + 1, _countof(iconList) - 1);
+ g_plugin.registerIcon(LPGEN("Avatar history"), iconList);
+
IcoLibUpdateMenus();
}
@@ -60,7 +58,7 @@ static HICON getOverlayedIcon(HICON icon, HICON overlay, BOOL big) HICON createDefaultOverlayedIcon(BOOL)
{
- HICON icon0 = LoadIconEx(I_HISTORY);
+ HICON icon0 = Skin_LoadIcon(SKINICON_OTHER_HISTORY);
HICON icon1 = LoadIconEx(I_OVERLAY);
HICON resIcon = getOverlayedIcon(icon0, icon1, FALSE);
|
