summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_events.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-05-09 09:02:20 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-05-09 09:02:20 +0000
commitf0ecf7f0fba6e1e2722bb26ecd74905f10f459b3 (patch)
treec8b5964f020c99c3e16e6bca65a6ee5a83ebd5b1 /protocols/SkypeWeb/src/skype_events.cpp
parentb9b6948148b24c5062a1646949477b04a697ce52 (diff)
SkypeWeb: Error & action icons (thx dracosha).
git-svn-id: http://svn.miranda-ng.org/main/trunk@13490 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_events.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_events.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_events.cpp b/protocols/SkypeWeb/src/skype_events.cpp
index 0388a08433..6ca36100cb 100644
--- a/protocols/SkypeWeb/src/skype_events.cpp
+++ b/protocols/SkypeWeb/src/skype_events.cpp
@@ -43,6 +43,7 @@ INT_PTR CSkypeProto::EventGetIcon(WPARAM wParam, LPARAM lParam)
switch (dbei->eventType)
{
+ case SKYPE_DB_EVENT_TYPE_CALL_INFO:
case SKYPE_DB_EVENT_TYPE_INCOMING_CALL:
{
icon = Skin_GetIconByHandle(GetIconHandle("inc_call"));
@@ -50,7 +51,7 @@ INT_PTR CSkypeProto::EventGetIcon(WPARAM wParam, LPARAM lParam)
}
case SKYPE_DB_EVENT_TYPE_ACTION:
{
- icon = LoadSkinnedIcon(SKINICON_INFORMATION);
+ icon = Skin_GetIconByHandle(GetIconHandle("me_action"));
break;
}
default:
@@ -113,4 +114,14 @@ void CSkypeProto::InitPopups()
ppc.colorText = RGB(0, 0, 0);
ppc.iSeconds = 5;
m_hPopupClassNotify = Popup_RegisterClass(&ppc);
+
+ mir_sntprintf(desc, SIZEOF(desc), _T("%s %s"), m_tszUserName, TranslateT("Errors"));
+ mir_snprintf(name, SIZEOF(name), "%s_%s", m_szModuleName, "Error");
+ ppc.ptszDescription = desc;
+ ppc.pszName = name;
+ ppc.hIcon = Skin_GetIconByHandle(GetIconHandle("error"));
+ ppc.colorBack = RGB(255, 255, 255);
+ ppc.colorText = RGB(0, 0, 0);
+ ppc.iSeconds = -1;
+ m_hPopupClassNotify = Popup_RegisterClass(&ppc);
} \ No newline at end of file