diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-08 16:00:40 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-08 16:00:40 +0000 |
commit | 6c774bd20bdabda5a3c4d8b89b7ae5a7f68ceeaa (patch) | |
tree | 5f976f6cc2042a179c49bb2437abd0545a6521c9 /protocols/JabberG/src/jabber_icolib.cpp | |
parent | 377d84e3a4c8d4457eb6d95debd4113d4a80d31c (diff) |
fix for Jabber protocol "main" icon
git-svn-id: http://svn.miranda-ng.org/main/trunk@4393 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_icolib.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_icolib.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/protocols/JabberG/src/jabber_icolib.cpp b/protocols/JabberG/src/jabber_icolib.cpp index db09e790c4..f727d0ee1f 100644 --- a/protocols/JabberG/src/jabber_icolib.cpp +++ b/protocols/JabberG/src/jabber_icolib.cpp @@ -26,10 +26,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "jabber.h"
#include "jabber_list.h"
-#include <m_icolib.h>
-
-#include <m_cluiframes.h>
-
#define IDI_ONLINE 104
#define IDI_OFFLINE 105
#define IDI_AWAY 128
@@ -190,9 +186,10 @@ HICON CJabberProto::LoadIconEx(const char* name, bool big) if (HICON result = g_LoadIconEx(name, big))
return result;
- char szSettingName[100];
- mir_snprintf(szSettingName, sizeof(szSettingName), "%s_%s", m_szModuleName, name);
- return Skin_GetIcon(szSettingName, big);
+ if ( !strcmp(name, "main"))
+ return Skin_GetIconByHandle(m_hProtoIcon, big);
+
+ return NULL;
}
/////////////////////////////////////////////////////////////////////////////////////////
|