diff options
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);
|