summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-10-07 20:18:29 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-10-07 20:18:29 +0000
commit5d10fc1bc38dd867ab191cd0fdcc21bb6e021cef (patch)
tree6655436a26097352e2fea296111a8ba4f0429bb1
parent2db0a65f2f06ffa58e3a645064349ad4a2ef4397 (diff)
MyDetails: Removed deprecated service
git-svn-id: http://svn.miranda-ng.org/main/trunk@10736 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/MyDetails/src/services.cpp20
1 files changed, 1 insertions, 19 deletions
diff --git a/plugins/MyDetails/src/services.cpp b/plugins/MyDetails/src/services.cpp
index a5d880436f..bd6f4cdf7b 100644
--- a/plugins/MyDetails/src/services.cpp
+++ b/plugins/MyDetails/src/services.cpp
@@ -258,24 +258,6 @@ INT_PTR PluginCommand_SetMyAvatar(WPARAM wParam, LPARAM lParam)
return 0;
}
-int Status2SkinIcon(int status)
-{
- switch (status) {
- case ID_STATUS_AWAY: return SKINICON_STATUS_AWAY;
- case ID_STATUS_NA: return SKINICON_STATUS_NA;
- case ID_STATUS_DND: return SKINICON_STATUS_DND;
- case ID_STATUS_OCCUPIED: return SKINICON_STATUS_OCCUPIED;
- case ID_STATUS_FREECHAT: return SKINICON_STATUS_FREE4CHAT;
- case ID_STATUS_ONLINE: return SKINICON_STATUS_ONLINE;
- case ID_STATUS_OFFLINE: return SKINICON_STATUS_OFFLINE;
- case ID_STATUS_INVISIBLE: return SKINICON_STATUS_INVISIBLE;
- case ID_STATUS_ONTHEPHONE: return SKINICON_STATUS_ONTHEPHONE;
- case ID_STATUS_OUTTOLUNCH: return SKINICON_STATUS_OUTTOLUNCH;
- case ID_STATUS_IDLE: return SKINICON_STATUS_AWAY;
- }
- return SKINICON_STATUS_OFFLINE;
-}
-
INT_PTR PluginCommand_GetMyAvatar(WPARAM wParam, LPARAM lParam)
{
TCHAR *ret = (TCHAR *)lParam;
@@ -364,7 +346,7 @@ static INT_PTR CALLBACK DlgProcSetStatusMessage(HWND hwndDlg, UINT msg, WPARAM w
SetDlgItemText(hwndDlg, IDC_STATUSMESSAGE, proto->GetStatusMsg());
}
else if (data->status != 0) {
- SendMessage(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)LoadSkinnedIcon(Status2SkinIcon(data->status)));
+ SendMessage(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)LoadSkinnedProtoIcon(NULL,data->status));
TCHAR title[256];
mir_sntprintf(title, SIZEOF(title), TranslateT("Set my status message for %s"),