diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-22 14:34:57 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-22 14:34:57 +0300 |
commit | 9300399ed59f4d82f5e62f5ef43b752da4dd0735 (patch) | |
tree | 3b3454be313297cb33d5e550043217b467915581 /protocols/Gadu-Gadu/src | |
parent | 1a71e02f8edb73943f3ce7de693c7f3c3e9ebc48 (diff) |
EV_PROTO_ONMENU removed
Diffstat (limited to 'protocols/Gadu-Gadu/src')
-rw-r--r-- | protocols/Gadu-Gadu/src/gg.cpp | 2 | ||||
-rw-r--r-- | protocols/Gadu-Gadu/src/gg_proto.cpp | 11 | ||||
-rw-r--r-- | protocols/Gadu-Gadu/src/gg_proto.h | 3 |
3 files changed, 2 insertions, 14 deletions
diff --git a/protocols/Gadu-Gadu/src/gg.cpp b/protocols/Gadu-Gadu/src/gg.cpp index 8bd715294d..37491551bc 100644 --- a/protocols/Gadu-Gadu/src/gg.cpp +++ b/protocols/Gadu-Gadu/src/gg.cpp @@ -273,7 +273,7 @@ void GaduProto::block_uninit() //////////////////////////////////////////////////////////
// Menus initialization
//
-void GaduProto::menus_init()
+void GaduProto::OnBuildProtoMenu()
{
HGENMENU hRoot = Menu_GetProtocolRoot(this);
diff --git a/protocols/Gadu-Gadu/src/gg_proto.cpp b/protocols/Gadu-Gadu/src/gg_proto.cpp index c78ca2ea95..513e99df61 100644 --- a/protocols/Gadu-Gadu/src/gg_proto.cpp +++ b/protocols/Gadu-Gadu/src/gg_proto.cpp @@ -730,14 +730,3 @@ void GaduProto::OnShutdown() img_shutdown();
sessions_closedlg();
}
-
-int GaduProto::OnEvent(PROTOEVENTTYPE eventType, WPARAM wParam, LPARAM lParam)
-{
- switch (eventType) {
- case EV_PROTO_ONMENU:
- menus_init();
- break;
- }
-
- return TRUE;
-}
diff --git a/protocols/Gadu-Gadu/src/gg_proto.h b/protocols/Gadu-Gadu/src/gg_proto.h index 3d2dd02d07..8d9dc100aa 100644 --- a/protocols/Gadu-Gadu/src/gg_proto.h +++ b/protocols/Gadu-Gadu/src/gg_proto.h @@ -56,7 +56,7 @@ struct GaduProto : public PROTO<GaduProto> 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;
@@ -121,7 +121,6 @@ struct GaduProto : public PROTO<GaduProto> int gettoken(GGTOKEN *token);
void parsecontacts(char *contacts);
void remindpassword(uin_t uin, const char *email);
- void menus_init();
/* Avatar functions */
void getAvatarFilename(MCONTACT hContact, wchar_t *pszDest, int cbLen);
|