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/FacebookRM | |
parent | 1a71e02f8edb73943f3ce7de693c7f3c3e9ebc48 (diff) |
EV_PROTO_ONMENU removed
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 13 | ||||
-rw-r--r-- | protocols/FacebookRM/src/proto.h | 4 | ||||
-rw-r--r-- | protocols/FacebookRM/src/theme.cpp | 2 |
3 files changed, 2 insertions, 17 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index e280fbc737..d494385cf4 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -386,19 +386,6 @@ INT_PTR FacebookProto::GetNotificationsCount(WPARAM, LPARAM) } ////////////////////////////////////////////////////////////////////////////// - -int FacebookProto::OnEvent(PROTOEVENTTYPE event, WPARAM wParam, LPARAM lParam) -{ - switch (event) { - case EV_PROTO_ONMENU: - InitMenu(); - break; - } - - return 1; -} - -////////////////////////////////////////////////////////////////////////////// // EVENTS INT_PTR FacebookProto::SvcCreateAccMgrUI(WPARAM, LPARAM lParam) diff --git a/protocols/FacebookRM/src/proto.h b/protocols/FacebookRM/src/proto.h index f4a35b48c0..6cef8a3e8a 100644 --- a/protocols/FacebookRM/src/proto.h +++ b/protocols/FacebookRM/src/proto.h @@ -126,8 +126,7 @@ public: int UserIsTyping(MCONTACT hContact, int type) override; - int OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam) override; - + void OnBuildProtoMenu(void) override; void OnContactDeleted(MCONTACT) override; void OnModulesLoaded() override; void OnShutdown() override; @@ -166,7 +165,6 @@ public: void InitPopups(); void InitHotkeys(); void InitSounds(); - void InitMenu(); // Events int __cdecl OnOptionsInit(WPARAM, LPARAM); diff --git a/protocols/FacebookRM/src/theme.cpp b/protocols/FacebookRM/src/theme.cpp index 71fb869c95..1e857200d9 100644 --- a/protocols/FacebookRM/src/theme.cpp +++ b/protocols/FacebookRM/src/theme.cpp @@ -191,7 +191,7 @@ int FacebookProto::OnPrebuildContactMenu(WPARAM wParam, LPARAM) return 0;
}
-void FacebookProto::InitMenu()
+void FacebookProto::OnBuildProtoMenu()
{
CMenuItem mi;
mi.position = 201001;
|