diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-02-25 05:28:10 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-02-25 05:28:10 +0000 |
commit | d9342e0a5916cf57df80b4400d7ce3482a94db5e (patch) | |
tree | 136017fbaaef03fd7cd14b4418523b4f95905015 /protocols/VKontakte/src/vk_proto.cpp | |
parent | 5abf533213e126786cb859be514656a9fb3a514f (diff) |
VKontakte:
small memory leak fix
add status message support
version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@12262 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp index 01d7f7844c..39fcd06e2d 100644 --- a/protocols/VKontakte/src/vk_proto.cpp +++ b/protocols/VKontakte/src/vk_proto.cpp @@ -178,6 +178,7 @@ void CVkProto::InitMenus() CreateProtoService(PS_DESTROYKICKCHAT, &CVkProto::SvcDestroyKickChat);
CreateProtoService(PS_OPENBROADCAST, &CVkProto::SvcOpenBroadcast);
CreateProtoService(PS_LOADVKNEWS, &CVkProto::SvcLoadVKNews);
+ CreateProtoService(PS_SETSTATUSMSG, &CVkProto::SvcSetStatusMsg);
CLISTMENUITEM mi = { sizeof(mi) };
char szService[100];
@@ -193,6 +194,13 @@ void CVkProto::InitMenus() mi.pszName = LPGEN("Create new chat");
g_hProtoMenuItems[PMI_CREATECHAT] = Menu_AddProtoMenuItem(&mi);
+ mir_snprintf(szService, SIZEOF(szService), "%s%s", m_szModuleName, PS_SETSTATUSMSG);
+ mi.pszService = szService;
+ mi.position = 10009 + PMI_SETSTATUSMSG;
+ mi.icolibItem = Skin_GetIconByHandle(GetIconHandle(IDI_STATUS));
+ mi.pszName = LPGEN("Status message");
+ g_hProtoMenuItems[PMI_SETSTATUSMSG] = Menu_AddProtoMenuItem(&mi);
+
mir_snprintf(szService, SIZEOF(szService), "%s%s", m_szModuleName, PS_LOADVKNEWS);
mi.pszService = szService;
mi.position = 10009 + PMI_LOADVKNEWS;
|