From 59b6fb0fe20c274743fbd1b9742be94b1e5134a4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 22 Jul 2015 17:53:20 +0000 Subject: - extra icons services converted into functions; - more Kill* functions exported; git-svn-id: http://svn.miranda-ng.org/main/trunk@14635 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/New_GPG/src/icons.cpp | 4 ++-- plugins/New_GPG/src/init.cpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/New_GPG/src') diff --git a/plugins/New_GPG/src/icons.cpp b/plugins/New_GPG/src/icons.cpp index d5206f3858..6d89633710 100644 --- a/plugins/New_GPG/src/icons.cpp +++ b/plugins/New_GPG/src/icons.cpp @@ -40,9 +40,9 @@ void setClistIcon(MCONTACT hContact) extern HANDLE g_hCLIcon; MCONTACT hMC = db_mc_tryMeta(hContact); const char *szIconId = (enabled) ? "secured" : NULL; - ExtraIcon_SetIcon(g_hCLIcon, hContact, szIconId); + ExtraIcon_SetIconByName(g_hCLIcon, hContact, szIconId); if(hMC != hContact) - ExtraIcon_SetIcon(g_hCLIcon, hMC, szIconId); + ExtraIcon_SetIconByName(g_hCLIcon, hMC, szIconId); } void setSrmmIcon(MCONTACT h) diff --git a/plugins/New_GPG/src/init.cpp b/plugins/New_GPG/src/init.cpp index 47f7733ec3..56b307e177 100644 --- a/plugins/New_GPG/src/init.cpp +++ b/plugins/New_GPG/src/init.cpp @@ -214,8 +214,7 @@ extern "C" int __declspec(dllexport) Load() InitIconLib(); - g_hCLIcon = ExtraIcon_Register(szGPGModuleName, Translate("GPG encryption status"), "secured", onExtraImageListRebuilding, onExtraImageApplying); - + g_hCLIcon = ExtraIcon_RegisterCallack(szGPGModuleName, Translate("GPG encryption status"), "secured", onExtraImageListRebuilding, onExtraImageApplying); return 0; } -- cgit v1.2.3