summaryrefslogtreecommitdiff
path: root/protocols/MRA/src/Mra_svcs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-18 22:28:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-18 22:28:47 +0000
commit916b736a5422d7861632a6d7d59e371ee946cb54 (patch)
treedb29952bc9f6e97174d0bae7692afc27b95f91b9 /protocols/MRA/src/Mra_svcs.cpp
parentc6e1aa1860760ef2b182f7a4f55a8b3a09db5063 (diff)
- unused array removed from MRA;
- default extra icons added to Jabber git-svn-id: http://svn.miranda-ng.org/main/trunk@2368 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src/Mra_svcs.cpp')
-rw-r--r--protocols/MRA/src/Mra_svcs.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/protocols/MRA/src/Mra_svcs.cpp b/protocols/MRA/src/Mra_svcs.cpp
index dce170c9d7..bc84af7703 100644
--- a/protocols/MRA/src/Mra_svcs.cpp
+++ b/protocols/MRA/src/Mra_svcs.cpp
@@ -157,8 +157,19 @@ void CMraProto::SetExtraIcons(HANDLE hContact)
if (dwBlogStatusMsgSize) dwIconID = ADV_ICON_BLOGSTATUS;
}
- //ExtraSetIcon(hExtraXstatusIcon, hContact, (( IsXStatusValid(dwXStatus) || dwXStatus == MRA_MIR_XSTATUS_UNKNOWN)? hXStatusAdvancedStatusItems[dwXStatus]:NULL));
- ExtraSetIcon(hExtraInfo, hContact, ((dwIconID != -1) ? hAdvancedStatusItems[dwIconID]:NULL));
+ if ( IsXStatusValid(dwXStatus) || dwXStatus == MRA_MIR_XSTATUS_UNKNOWN) {
+ char szSetting[40];
+ mir_snprintf(szSetting, SIZEOF(szSetting), "mra_xstatus%d", dwXStatus);
+ ExtraSetIcon(hExtraXstatusIcon, hContact, szSetting);
+ }
+ else ExtraSetIcon(hExtraXstatusIcon, hContact, NULL);
+
+ if (dwIconID != -1) {
+ char szSetting[40];
+ mir_snprintf(szSetting, SIZEOF(szSetting), "MRA_%s", gdiExtraStatusIconsItems[dwIconID].lpszName);
+ ExtraSetIcon(hExtraInfo, hContact, szSetting);
+ }
+ else ExtraSetIcon(hExtraInfo, hContact, NULL);
}
INT_PTR CMraProto::MraXStatusMenu(WPARAM wParam, LPARAM lParam, LPARAM param)