summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-08 16:00:40 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-08 16:00:40 +0000
commit6c774bd20bdabda5a3c4d8b89b7ae5a7f68ceeaa (patch)
tree5f976f6cc2042a179c49bb2437abd0545a6521c9 /protocols/JabberG/src/jabber_proto.cpp
parent377d84e3a4c8d4457eb6d95debd4113d4a80d31c (diff)
fix for Jabber protocol "main" icon
git-svn-id: http://svn.miranda-ng.org/main/trunk@4393 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_proto.cpp')
-rw-r--r--protocols/JabberG/src/jabber_proto.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp
index 4986c7f401..fc296d7c18 100644
--- a/protocols/JabberG/src/jabber_proto.cpp
+++ b/protocols/JabberG/src/jabber_proto.cpp
@@ -298,11 +298,12 @@ int CJabberProto::OnModulesLoadedEx(WPARAM, LPARAM)
StatusIconData sid = {0};
sid.cbSize = sizeof(sid);
sid.szModule = m_szModuleName;
- sid.hIcon = LoadIconEx("main");
- sid.hIconDisabled = LoadIconEx("main");
+ sid.hIcon = sid.hIconDisabled = LoadIconEx("main");
sid.flags = MBF_HIDDEN;
sid.szTooltip = Translate("Jabber Resource");
CallService(MS_MSG_ADDICON, 0, (LPARAM) &sid);
+ Skin_ReleaseIcon(sid.hIcon);
+
JHookEvent(ME_MSG_ICONPRESSED, &CJabberProto::OnProcessSrmmIconClick);
JHookEvent(ME_MSG_WINDOWEVENT, &CJabberProto::OnProcessSrmmEvent);