diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-04-22 16:53:14 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-04-22 16:53:14 +0000 |
commit | 17da1798498188c1f221e738866107e69d6af066 (patch) | |
tree | 64da750c77dcf7ab12654d3fe22d2abeb8f8f3e9 /plugins/MessageState/src/clist_extra.cpp | |
parent | 2db93e0b278176b4dd68e8565ddab139d86c6e7b (diff) |
MessageState: code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@16747 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MessageState/src/clist_extra.cpp')
-rw-r--r-- | plugins/MessageState/src/clist_extra.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/MessageState/src/clist_extra.cpp b/plugins/MessageState/src/clist_extra.cpp index 031c273ea4..b10b825112 100644 --- a/plugins/MessageState/src/clist_extra.cpp +++ b/plugins/MessageState/src/clist_extra.cpp @@ -7,7 +7,7 @@ int ExtraIconsApply(WPARAM hContact, LPARAM) if (hContact == NULL) return 0;
if (HasUnread(hContact))
- ExtraIcon_SetIconByName(hExtraIcon, hContact, "clist_unread_icon");
+ ExtraIcon_SetIcon(hExtraIcon, hContact, Icons[ICON_EXTRA].hIcolib);
else
ExtraIcon_Clear(hExtraIcon, hContact);
@@ -18,7 +18,4 @@ void InitClistExtraIcon() {
hExtraIcon = ExtraIcon_RegisterIcolib("messagestate_unread", LPGEN("MessageState unread extra icon"), "clist_unread_icon");
HookEvent(ME_CLIST_EXTRA_IMAGE_APPLY, ExtraIconsApply);
-
- for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact))
- ExtraIconsApply(hContact, 0);
}
\ No newline at end of file |