diff options
author | George Hazan <ghazan@miranda.im> | 2018-07-11 21:32:58 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-07-11 21:33:11 +0300 |
commit | f719c8b921c7a46b76453476204224d40c682914 (patch) | |
tree | c6d92dc450893e7f5abe60c2046ec9c2d1e3db36 /plugins/New_GPG | |
parent | 16ad355c8bdc438c3107ee3ba3ad0bf0b8c395fa (diff) |
int hLangpack/m_hLang removed and replaced with HPLUGIN
Diffstat (limited to 'plugins/New_GPG')
-rwxr-xr-x | plugins/New_GPG/src/init.cpp | 6 | ||||
-rwxr-xr-x | plugins/New_GPG/src/utilities.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/New_GPG/src/init.cpp b/plugins/New_GPG/src/init.cpp index 907c4cffb1..d2e50a0ffb 100755 --- a/plugins/New_GPG/src/init.cpp +++ b/plugins/New_GPG/src/init.cpp @@ -109,12 +109,12 @@ static int OnModulesLoaded(WPARAM, LPARAM) sid.dwId = 0x00000001; sid.hIcon = IcoLib_GetIcon("secured"); sid.szTooltip = LPGEN("GPG Turn off encryption"); - Srmm_AddIcon(&sid, g_plugin.m_hLang); + Srmm_AddIcon(&sid, &g_plugin); sid.dwId = 0x00000002; sid.hIcon = IcoLib_GetIcon("unsecured"); sid.szTooltip = LPGEN("GPG Turn on encryption"); - Srmm_AddIcon(&sid, g_plugin.m_hLang); + Srmm_AddIcon(&sid, &g_plugin); if(globals.bJabberAPI) GetJabberInterface(0,0); @@ -151,7 +151,7 @@ int CMPlugin::Load() CreateServiceFunction("/ExportGPGKeys",ExportGpGKeys); CreateServiceFunction("/ImportGPGKeys",ImportGpGKeys); - CMenuItem mi(g_plugin); + CMenuItem mi(&g_plugin); SET_UID(mi, 0xbd22e3f8, 0xc19c, 0x45a8, 0xb7, 0x37, 0x6b, 0x3b, 0x27, 0xf0, 0x8c, 0xbb); mi.position = -0x7FFFFFFF; diff --git a/plugins/New_GPG/src/utilities.cpp b/plugins/New_GPG/src/utilities.cpp index fddc9e357a..b4da20d147 100755 --- a/plugins/New_GPG/src/utilities.cpp +++ b/plugins/New_GPG/src/utilities.cpp @@ -217,7 +217,7 @@ int OnPreBuildContactMenu(WPARAM w, LPARAM) { MCONTACT hContact = db_mc_tryMeta(w); { - CMenuItem mi2(g_plugin); + CMenuItem mi2(&g_plugin); LPSTR proto = GetContactProto(hContact); PROTOACCOUNT *acc = Proto_GetAccount(proto); std::string setting; |