From f719c8b921c7a46b76453476204224d40c682914 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 11 Jul 2018 21:32:58 +0300 Subject: int hLangpack/m_hLang removed and replaced with HPLUGIN --- protocols/SkypeWeb/src/skype_chatrooms.cpp | 4 ++-- protocols/SkypeWeb/src/skype_menus.cpp | 4 ++-- protocols/SkypeWeb/src/skype_options.cpp | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'protocols/SkypeWeb') diff --git a/protocols/SkypeWeb/src/skype_chatrooms.cpp b/protocols/SkypeWeb/src/skype_chatrooms.cpp index b19d812c29..83b851aa5f 100644 --- a/protocols/SkypeWeb/src/skype_chatrooms.cpp +++ b/protocols/SkypeWeb/src/skype_chatrooms.cpp @@ -577,7 +577,7 @@ int CSkypeProto::OnGroupChatMenuHook(WPARAM, LPARAM lParam) { LPGENW("&Leave chat session"), 20, MENU_ITEM, FALSE }, { LPGENW("&Change topic..."), 30, MENU_ITEM, FALSE } }; - Chat_AddMenuItems(gcmi->hMenu, _countof(Items), Items, g_plugin.m_hLang); + Chat_AddMenuItems(gcmi->hMenu, _countof(Items), Items, &g_plugin); } else if (gcmi->Type == MENU_ON_NICKLIST) { static const struct gc_item Items[] = @@ -589,7 +589,7 @@ int CSkypeProto::OnGroupChatMenuHook(WPARAM, LPARAM lParam) { LPGENW("&User"), 40, MENU_POPUPITEM }, { LPGENW("Change nick..."), 50, MENU_ITEM }, }; - Chat_AddMenuItems(gcmi->hMenu, _countof(Items), Items, g_plugin.m_hLang); + Chat_AddMenuItems(gcmi->hMenu, _countof(Items), Items, &g_plugin); } return 0; diff --git a/protocols/SkypeWeb/src/skype_menus.cpp b/protocols/SkypeWeb/src/skype_menus.cpp index 7b16743df0..58c036f47f 100644 --- a/protocols/SkypeWeb/src/skype_menus.cpp +++ b/protocols/SkypeWeb/src/skype_menus.cpp @@ -58,7 +58,7 @@ void CSkypeProto::InitMenus() //hChooserMenu = Menu_AddObject("SkypeAccountChooser", LPGEN("Skype menu chooser"), 0, "Skype/MenuChoose"); - CMenuItem mi(g_plugin); + CMenuItem mi(&g_plugin); mi.flags = CMIF_UNICODE; mi.pszService = MODULE"/GetHistory"; @@ -88,7 +88,7 @@ void CSkypeProto::InitMenus() void CSkypeProto::OnBuildProtoMenu() { - CMenuItem mi(g_plugin); + CMenuItem mi(&g_plugin); mi.root = Menu_GetProtocolRoot(this); mi.pszService = "/CreateNewChat"; diff --git a/protocols/SkypeWeb/src/skype_options.cpp b/protocols/SkypeWeb/src/skype_options.cpp index 7e689c427f..61872dd5ca 100644 --- a/protocols/SkypeWeb/src/skype_options.cpp +++ b/protocols/SkypeWeb/src/skype_options.cpp @@ -72,7 +72,6 @@ bool CSkypeOptionsMain::OnApply() int CSkypeProto::OnOptionsInit(WPARAM wParam, LPARAM) { OPTIONSDIALOGPAGE odp = { sizeof(odp) }; - odp.hInstance = g_plugin.getInst(); odp.szTitle.w = m_tszUserName; odp.flags = ODPF_BOLDGROUPS | ODPF_UNICODE | ODPF_DONTTRANSLATE; odp.szGroup.w = LPGENW("Network"); -- cgit v1.2.3