diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-05-20 11:40:22 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-05-20 11:40:22 +0000 |
commit | 7e065653a2ffe78094357f6838a5c15ac0fda885 (patch) | |
tree | 5bf997685146838e329cbd0274483a8ebcaf50ea /protocols/FacebookRM/src/events.cpp | |
parent | 6e35b2b48d4a66598f594e641b7475b3df419b6e (diff) |
Facebook: Life is much better with different icons for different popups.
git-svn-id: http://svn.miranda-ng.org/main/trunk@4759 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/events.cpp')
-rw-r--r-- | protocols/FacebookRM/src/events.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/events.cpp b/protocols/FacebookRM/src/events.cpp index bac8f5fb06..73024741ee 100644 --- a/protocols/FacebookRM/src/events.cpp +++ b/protocols/FacebookRM/src/events.cpp @@ -78,7 +78,9 @@ LRESULT CALLBACK PopupDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa void FacebookProto::NotifyEvent(TCHAR* title, TCHAR* info, HANDLE contact, DWORD flags, std::string *url)
{
- int ret; int timeout; COLORREF colorBack = 0; COLORREF colorText = 0;
+ int ret, timeout;
+ COLORREF colorBack = 0, colorText = 0;
+ HICON icon = Skin_GetIconByHandle(m_hProtoIcon);
switch (flags)
{
@@ -103,6 +105,7 @@ void FacebookProto::NotifyEvent(TCHAR* title, TCHAR* info, HANDLE contact, DWORD colorText = getDword(FACEBOOK_KEY_EVENT_FEEDS_COLTEXT, DEFAULT_EVENT_COLTEXT);
}
timeout = getDword(FACEBOOK_KEY_EVENT_FEEDS_TIMEOUT, 0);
+ icon = Skin_GetIconByHandle(GetIconHandle("newsfeed"));
SkinPlaySound("NewsFeed");
flags |= NIIF_INFO;
break;
@@ -116,6 +119,7 @@ void FacebookProto::NotifyEvent(TCHAR* title, TCHAR* info, HANDLE contact, DWORD colorText = getDword(FACEBOOK_KEY_EVENT_NOTIFICATIONS_COLTEXT, DEFAULT_EVENT_COLTEXT);
}
timeout = getDword(FACEBOOK_KEY_EVENT_NOTIFICATIONS_TIMEOUT, 0);
+ icon = Skin_GetIconByHandle(GetIconHandle("notification"));
SkinPlaySound("Notification");
flags |= NIIF_INFO;
break;
@@ -143,7 +147,7 @@ void FacebookProto::NotifyEvent(TCHAR* title, TCHAR* info, HANDLE contact, DWORD pd.colorText = colorText;
pd.iSeconds = timeout;
pd.lchContact = contact;
- pd.lchIcon = Skin_GetIconByHandle(m_hProtoIcon); // TODO: Icon test
+ pd.lchIcon = icon;
if (url != NULL)
pd.PluginData = new popup_data(this, *url);
pd.PluginWindowProc = (WNDPROC)PopupDlgProc;
|