diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-29 18:19:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-29 18:19:20 +0000 |
commit | 25f639726e86826fac199133caf9f69cd97ebb76 (patch) | |
tree | b72a51532feb597b1afd3dda7ae9173c5d04f6c1 /protocols/Twitter/src/proto.cpp | |
parent | f36f030010db792a3650b7bc64c2e439861c4552 (diff) |
various minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@14438 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter/src/proto.cpp')
-rw-r--r-- | protocols/Twitter/src/proto.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp index 0d65b25b0c..d3c8fab685 100644 --- a/protocols/Twitter/src/proto.cpp +++ b/protocols/Twitter/src/proto.cpp @@ -256,26 +256,20 @@ int TwitterProto::OnBuildStatusMenu(WPARAM, LPARAM) if (hRoot == NULL)
return 0;
- char text[200];
- mir_strcpy(text, m_szModuleName);
- char *tDest = text + mir_strlen(text);
-
TMO_MenuItem mi = { 0 };
- mi.pszService = text;
-
mi.root = hRoot;
mi.flags = CMIF_TCHAR;
mi.position = 1001;
- Menu_AddStatusMenuItem(&mi);
+ Menu_AddStatusMenuItem(&mi, m_szModuleName);
// TODO: Disable this menu item when offline
// "Send Tweet..."
- CreateProtoService("/Tweet", &TwitterProto::OnTweet);
- mir_strcpy(tDest, "/Tweet");
+ mi.pszService = "/Tweet";
+ CreateProtoService(mi.pszService, &TwitterProto::OnTweet);
mi.name.t = LPGENT("Send Tweet...");
mi.position = 200001;
mi.hIcolibItem = GetIconHandle("tweet");
- Menu_AddStatusMenuItem(&mi);
+ Menu_AddStatusMenuItem(&mi, m_szModuleName);
return 0;
}
|