diff options
Diffstat (limited to 'protocols/Skype/src/skype_icons.cpp')
-rw-r--r-- | protocols/Skype/src/skype_icons.cpp | 12 |
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 |