summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_menus.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-05-29 15:45:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-05-29 15:45:42 +0300
commita885f65161f8bb5ddfc6286dbe50905cf14c4c51 (patch)
tree15a64b1774ba567ad43d7090e13ed0d176bac3ea /protocols/Tox/src/tox_menus.cpp
parentd8e912f0644fe9f0ff8902465e62bc163d3ad788 (diff)
fixes #1962 (Tox: add icons to proto menu)
Diffstat (limited to 'protocols/Tox/src/tox_menus.cpp')
-rw-r--r--protocols/Tox/src/tox_menus.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_menus.cpp b/protocols/Tox/src/tox_menus.cpp
index debe3b5ae6..2ea767b0e4 100644
--- a/protocols/Tox/src/tox_menus.cpp
+++ b/protocols/Tox/src/tox_menus.cpp
@@ -35,7 +35,6 @@ int CToxProto::UpdateStatusMenu(WPARAM, LPARAM)
Menu_ShowItem(StatusMenuItems[SMI_PASSWORD_CREATE], !passwordExists);
Menu_ShowItem(StatusMenuItems[SMI_PASSWORD_CHANGE], passwordExists);
Menu_ShowItem(StatusMenuItems[SMI_PASSWORD_REMOVE], passwordExists);
-
return 0;
}
@@ -49,16 +48,18 @@ void CToxProto::OnBuildProtoMenu()
mi.pszService = "/CopyToxID";
CreateProtoService(mi.pszService, &CToxProto::OnCopyToxID);
mi.name.w = LPGENW("Copy Tox ID");
+ mi.hIcolibItem = g_plugin.getIconHandle(IDI_COPY);
mi.position = SMI_POSITION + SMI_TOXID_COPY;
StatusMenuItems[SMI_TOXID_COPY] = Menu_AddProtoMenuItem(&mi, m_szModuleName);
// Password
mi.pszService = nullptr;
mi.name.w = LPGENW("Password");
+ mi.hIcolibItem = Skin_GetIconHandle(SKINICON_OTHER_KEYS);
StatusMenuItems[SMI_PASSWORD] = Menu_AddProtoMenuItem(&mi, m_szModuleName);
- mi.root = StatusMenuItems[SMI_PASSWORD];
// Create password command
+ mi.root = StatusMenuItems[SMI_PASSWORD];
mi.pszService = "/CreatePassword";
CreateProtoService(mi.pszService, &CToxProto::OnCreatePassword);
mi.name.w = LPGENW("Create password");