From ab4abbb7a60f941acab8f0566c6b619f68f1b489 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 27 Jun 2015 11:09:19 +0000 Subject: - CLISTMENUITEM::pszContactOwner removed, because it's supported only by contact's menu; - Menu_AddContactMenuItem now receives parameter szProto; - Menu_Add* helpers are converted into real functions; git-svn-id: http://svn.miranda-ng.org/main/trunk@14409 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Sametime/src/sametime_session.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'protocols/Sametime/src/sametime_session.cpp') diff --git a/protocols/Sametime/src/sametime_session.cpp b/protocols/Sametime/src/sametime_session.cpp index 9994db0920..96826d75d9 100644 --- a/protocols/Sametime/src/sametime_session.cpp +++ b/protocols/Sametime/src/sametime_session.cpp @@ -560,15 +560,11 @@ void CSametimeProto::InitSessionMenu() CreateProtoService(MS_SAMETIME_MENUANNOUNCESESSION, &CSametimeProto::SessionAnnounce); - char service[128]; - CLISTMENUITEM mi = { 0 }; mi.flags = CMIF_TCHAR; mi.position = 2000060000; - mi.ptszName = LPGENT("Send announcement..."); - mir_snprintf(service, _countof(service), "%s%s", m_szModuleName, MS_SAMETIME_MENUANNOUNCESESSION); - mi.pszService = service; + mi.name.t = LPGENT("Send announcement..."); + mi.pszService = MS_SAMETIME_MENUANNOUNCESESSION; mi.icolibItem = GetIconHandle(IDI_ICON_ANNOUNCE); - mi.pszContactOwner = m_szModuleName; - Menu_AddContactMenuItem(&mi); + Menu_AddContactMenuItem(&mi, m_szModuleName); } -- cgit v1.2.3