summaryrefslogtreecommitdiff
path: root/protocols/JabberG
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/JabberG
parent1a71e02f8edb73943f3ce7de693c7f3c3e9ebc48 (diff)
EV_PROTO_ONMENU removed
Diffstat (limited to 'protocols/JabberG')
-rw-r--r--protocols/JabberG/src/jabber_menu.cpp2
-rwxr-xr-xprotocols/JabberG/src/jabber_proto.cpp13
-rwxr-xr-xprotocols/JabberG/src/jabber_proto.h3
3 files changed, 2 insertions, 16 deletions
diff --git a/protocols/JabberG/src/jabber_menu.cpp b/protocols/JabberG/src/jabber_menu.cpp
index a18c7f1152..272c3504d9 100644
--- a/protocols/JabberG/src/jabber_menu.cpp
+++ b/protocols/JabberG/src/jabber_menu.cpp
@@ -528,7 +528,7 @@ INT_PTR __cdecl CJabberProto::OnMenuBookmarkAdd(WPARAM hContact, LPARAM)
/////////////////////////////////////////////////////////////////////////////////////////
// status menu
-void CJabberProto::MenuInit()
+void CJabberProto::OnBuildProtoMenu()
{
CMenuItem mi;
mi.root = m_hMenuRoot = Menu_GetProtocolRoot(this);
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp
index 9a29ec47be..b41f475ec4 100755
--- a/protocols/JabberG/src/jabber_proto.cpp
+++ b/protocols/JabberG/src/jabber_proto.cpp
@@ -1320,16 +1320,3 @@ void CJabberProto::InfoFrame_OnTransport(CJabberInfoFrame_Event *evt)
Clist_MenuProcessCommand(res, MPCF_CONTACTMENU, hContact);
}
}
-
-/////////////////////////////////////////////////////////////////////////////////////////
-// OnEvent - maintain protocol events
-
-int CJabberProto::OnEvent(PROTOEVENTTYPE eventType, WPARAM wParam, LPARAM lParam)
-{
- switch (eventType) {
- case EV_PROTO_ONMENU:
- MenuInit();
- break;
- }
- return 1;
-}
diff --git a/protocols/JabberG/src/jabber_proto.h b/protocols/JabberG/src/jabber_proto.h
index f63750259d..c36553e268 100755
--- a/protocols/JabberG/src/jabber_proto.h
+++ b/protocols/JabberG/src/jabber_proto.h
@@ -110,7 +110,7 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface
int UserIsTyping(MCONTACT hContact, int type) override;
- int OnEvent(PROTOEVENTTYPE eventType, WPARAM wParam, LPARAM lParam) override;
+ void OnBuildProtoMenu(void) override;
void OnContactDeleted(MCONTACT) override;
void OnModulesLoaded() override;
void OnShutdown() override;
@@ -632,7 +632,6 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface
void GlobalMenuInit(void);
void GlobalMenuUninit(void);
- void MenuInit(void);
void MenuUpdateSrmmIcon(JABBER_LIST_ITEM *item);
void BuildPriorityMenu(void);