summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_icons.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-06-30 19:46:37 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-06-30 19:46:37 +0000
commit8d3522f82f331954a495275a0e23402906d9bb9a (patch)
tree7d443b2d11095df9c9cea4be634e022e06f2d53f /protocols/Skype/src/skype_icons.cpp
parentd262ec92c8c0a5a91c52f91921776c9d3982881a (diff)
Skype: fixed #394
git-svn-id: http://svn.miranda-ng.org/main/trunk@5197 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_icons.cpp')
-rw-r--r--protocols/Skype/src/skype_icons.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/protocols/Skype/src/skype_icons.cpp b/protocols/Skype/src/skype_icons.cpp
index 03a66d61ce..a04e6acbc0 100644
--- a/protocols/Skype/src/skype_icons.cpp
+++ b/protocols/Skype/src/skype_icons.cpp
@@ -50,10 +50,18 @@ HANDLE CSkypeProto::GetIconHandle(const char* name)
return 0;
}
+HANDLE CSkypeProto::GetSkinIconHandle(const char* name)
+{
+ char iconName[100];
+ ::mir_snprintf(iconName, SIZEOF(iconName), "%s_%s", MODULE, name);
+ HANDLE hIcon = ::Skin_GetIconHandle(iconName);
+ if ( !hIcon)
+ hIcon = CSkypeProto::GetIconHandle(name);
+ return hIcon;
+}
+
void CSkypeProto::UninitIcons()
{
for (size_t i = 0; i < SIZEOF(CSkypeProto::IconList); i++)
- {
::Skin_RemoveIcon(CSkypeProto::IconList[i].Name);
- }
} \ No newline at end of file