summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2017-08-25 08:26:58 +0300
committerKirill Volinsky <mataes2007@gmail.com>2017-08-25 08:26:58 +0300
commit8cfe261befe72935a8ae48ac8203021aa9e3fb14 (patch)
treeb5c238db17b1a10adc18e1e4f6f44d5cf3234929
parent46425ea8d084497a7b29ed9b7a57188732726406 (diff)
MRA: icon added to icolib, not used icon removed (fixes #298)
-rw-r--r--protocols/MRA/res/Chat.icobin1150 -> 0 bytes
-rw-r--r--protocols/MRA/res/resource.rc1
-rw-r--r--protocols/MRA/src/MraIcons.cpp10
-rw-r--r--protocols/MRA/src/resource.h1
4 files changed, 8 insertions, 4 deletions
diff --git a/protocols/MRA/res/Chat.ico b/protocols/MRA/res/Chat.ico
deleted file mode 100644
index 811fd94333..0000000000
--- a/protocols/MRA/res/Chat.ico
+++ /dev/null
Binary files differ
diff --git a/protocols/MRA/res/resource.rc b/protocols/MRA/res/resource.rc
index 964e8d247a..aa068ec25d 100644
--- a/protocols/MRA/res/resource.rc
+++ b/protocols/MRA/res/resource.rc
@@ -38,7 +38,6 @@ IDI_MAIL_NOTIFY ICON "MailNotify.ico"
IDI_MRA_WEB_SEARCH ICON "WebSearch.ico"
IDI_MRA_POSTCARD ICON "PostCards.ico"
IDI_MRA_PHOTO ICON "Photo.ico"
-IDI_MRA_CHAT ICON "Chat.ico"
IDI_MRA_PHONE ICON "Phone.ico"
IDI_BLOGSTATUS ICON "BlogStatus.ico"
IDI_MRA_ALARM ICON "Alarm.ico"
diff --git a/protocols/MRA/src/MraIcons.cpp b/protocols/MRA/src/MraIcons.cpp
index ee5a2f35f5..5da2288ad1 100644
--- a/protocols/MRA/src/MraIcons.cpp
+++ b/protocols/MRA/src/MraIcons.cpp
@@ -3,6 +3,11 @@
HANDLE hXStatusAdvancedStatusIcons[MRA_XSTATUS_COUNT+4];
+IconItem gdiMainIcon[1] =
+{
+ { LPGEN("Main icon"), "main", IDI_MRA }
+};
+
IconItem gdiMenuItems[MAIN_MENU_ITEMS_COUNT] =
{
{ MRA_GOTO_INBOX_STR, MRA_GOTO_INBOX, IDI_INBOX },
@@ -64,11 +69,12 @@ HICON IconLibGetIconEx(HANDLE hIcon, DWORD dwFlags)
void IconsLoad()
{
- g_hMainIcon = (HICON)LoadImage(g_hInstance, MAKEINTRESOURCE(IDI_MRA), IMAGE_ICON, 0, 0, LR_SHARED);
-
+ Icon_Register(g_hInstance, LPGEN("Protocols") "/" LPGEN("MRA"), gdiMainIcon, 1, "MRA_");
Icon_Register(g_hInstance, LPGEN("Protocols") "/" LPGEN("MRA") "/" LPGEN("Main Menu"), gdiMenuItems, MAIN_MENU_ITEMS_COUNT, "MRA_");
Icon_Register(g_hInstance, LPGEN("Protocols") "/" LPGEN("MRA") "/" LPGEN("Contact Menu"), gdiContactMenuItems, CONTACT_MENU_ITEMS_COUNT, "MRA_");
Icon_Register(g_hInstance, LPGEN("Protocols") "/" LPGEN("MRA") "/" LPGEN("Extra status"), gdiExtraStatusIconsItems, ADV_ICON_MAX, "MRA_");
+
+ g_hMainIcon = IconLibGetIcon(gdiMainIcon[0].hIcolib);
}
void InitXStatusIcons()
diff --git a/protocols/MRA/src/resource.h b/protocols/MRA/src/resource.h
index 081d1d43b5..b557ba8e37 100644
--- a/protocols/MRA/src/resource.h
+++ b/protocols/MRA/src/resource.h
@@ -18,7 +18,6 @@
#define IDI_MRA_POSTCARD 114
#define IDI_MRA_PHOTO 117
#define IDI_DELETED 118
-#define IDI_MRA_CHAT 120
#define IDI_MRA_PHONE 122
#define IDD_OPT_FILES 126
#define IDD_OPT_ACCOUNT 127