summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-22 14:34:57 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-22 14:34:57 +0300
commit9300399ed59f4d82f5e62f5ef43b752da4dd0735 (patch)
tree3b3454be313297cb33d5e550043217b467915581 /protocols/SkypeWeb/src
parent1a71e02f8edb73943f3ce7de693c7f3c3e9ebc48 (diff)
EV_PROTO_ONMENU removed
Diffstat (limited to 'protocols/SkypeWeb/src')
-rw-r--r--protocols/SkypeWeb/src/skype_menus.cpp3
-rw-r--r--protocols/SkypeWeb/src/skype_proto.cpp10
-rw-r--r--protocols/SkypeWeb/src/skype_proto.h4
3 files changed, 2 insertions, 15 deletions
diff --git a/protocols/SkypeWeb/src/skype_menus.cpp b/protocols/SkypeWeb/src/skype_menus.cpp
index 5811ab33da..079d36e38b 100644
--- a/protocols/SkypeWeb/src/skype_menus.cpp
+++ b/protocols/SkypeWeb/src/skype_menus.cpp
@@ -86,7 +86,7 @@ void CSkypeProto::InitMenus()
CreateServiceFunction(mi.pszService, GlobalService<&CSkypeProto::UnblockContact>);
}
-int CSkypeProto::OnInitStatusMenu()
+void CSkypeProto::OnBuildProtoMenu()
{
CMenuItem mi;
mi.root = Menu_GetProtocolRoot(this);
@@ -97,5 +97,4 @@ int CSkypeProto::OnInitStatusMenu()
mi.position = SMI_POSITION + SMI_CREATECHAT;
mi.hIcolibItem = GetIconHandle(IDI_CONFERENCE);
Menu_AddProtoMenuItem(&mi, m_szModuleName);
- return 0;
}
diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp
index cd5baa7bc0..fe1b897aa1 100644
--- a/protocols/SkypeWeb/src/skype_proto.cpp
+++ b/protocols/SkypeWeb/src/skype_proto.cpp
@@ -298,16 +298,6 @@ int CSkypeProto::UserIsTyping(MCONTACT hContact, int type)
return 0;
}
-int CSkypeProto::OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam)
-{
- switch (iEventType) {
- case EV_PROTO_ONMENU:
- return OnInitStatusMenu();
- }
-
- return 1;
-}
-
int CSkypeProto::RecvContacts(MCONTACT hContact, PROTORECVEVENT* pre)
{
PROTOSEARCHRESULT **isrList = (PROTOSEARCHRESULT**)pre->szMessage;
diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h
index b9c9d96f4a..bf704b4325 100644
--- a/protocols/SkypeWeb/src/skype_proto.h
+++ b/protocols/SkypeWeb/src/skype_proto.h
@@ -54,7 +54,7 @@ public:
HANDLE GetAwayMsg(MCONTACT hContact) override;
int SetAwayMsg(int m_iStatus, const wchar_t *msg) override;
- int OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam) override;
+ void OnBuildProtoMenu(void) override;
void OnContactDeleted(MCONTACT) override;
void OnModulesLoaded() override;
void OnShutdown() override;
@@ -209,8 +209,6 @@ private:
int OnPrebuildContactMenu(WPARAM hContact, LPARAM);
static int PrebuildContactMenu(WPARAM hContact, LPARAM lParam);
- int OnInitStatusMenu();
-
// options
int __cdecl OnOptionsInit(WPARAM wParam, LPARAM lParam);