summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-04-20 20:04:21 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-04-20 20:04:21 +0000
commitb088d8dbc86bca79dea023cc9e1e9c8ff466e4ab (patch)
treea03d844a9df3fffe2db41cfdf9eb825f6150ffae /protocols
parent4f894993b7aeb76db79cd600004c0c07a25f7d41 (diff)
SkypeWeb: fixed status menu item creation
git-svn-id: http://svn.miranda-ng.org/main/trunk@12991 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/SkypeWeb/src/skype_menus.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_menus.cpp b/protocols/SkypeWeb/src/skype_menus.cpp
index 8b640a423b..0428bfc9e5 100644
--- a/protocols/SkypeWeb/src/skype_menus.cpp
+++ b/protocols/SkypeWeb/src/skype_menus.cpp
@@ -91,6 +91,7 @@ int CSkypeProto::OnInitStatusMenu()
{
char text[MAX_PATH];
mir_strcpy(text, m_szModuleName);
+ char *tDest = text + strlen(text);
CLISTMENUITEM mi = { sizeof(mi) };
mi.pszService = text;
@@ -114,11 +115,14 @@ int CSkypeProto::OnInitStatusMenu()
}*/
mi.hParentMenu = hStatusMunuRoot;
mi.flags = CMIF_CHILDPOPUP | CMIF_TCHAR;
+
+
+ mir_strcpy(tDest, "/CreateNewChat");
+ CreateProtoService(tDest, &CSkypeProto::SvcCreateChat);
mi.ptszName = LPGENT("Create new chat");
- mi.pszService = MODULE"/CreateNewChat";
mi.position = SMI_POSITION + PMI_CREATECHAT;
+ mi.icolibItem = GetSkinIconHandle("conference");
Menu_AddProtoMenuItem(&mi);
- CreateServiceFunction(mi.pszService, GlobalService<&CSkypeProto::SvcCreateChat>);
return 0;
} \ No newline at end of file