summaryrefslogtreecommitdiff
path: root/plugins/MetaContacts/src/icons.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2012-11-30 20:48:31 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2012-11-30 20:48:31 +0000
commit1781d9334bb8090df3115f51ca813ae4cf273523 (patch)
treefb8c9aa14d5975599dfc87396a9899668acd6abf /plugins/MetaContacts/src/icons.cpp
parent2021d20d84bb791d7a29faf80a6dbda3a40192d9 (diff)
minor unicode stuff
git-svn-id: http://svn.miranda-ng.org/main/trunk@2570 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MetaContacts/src/icons.cpp')
-rw-r--r--plugins/MetaContacts/src/icons.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/MetaContacts/src/icons.cpp b/plugins/MetaContacts/src/icons.cpp
index e56aab6195..694c28d7bd 100644
--- a/plugins/MetaContacts/src/icons.cpp
+++ b/plugins/MetaContacts/src/icons.cpp
@@ -1,19 +1,19 @@
#include "metacontacts.h"
typedef struct {
- char* szDescr;
+ TCHAR* szDescr;
char* szName;
int defIconID;
} IconStruct;
static IconStruct iconList[] = {
- { "Toggle Off", "mc_off", IDI_MCMENUOFF },
- { "Toggle On", "mc_on", IDI_MCMENU },
- { "Convert to MetaContact", "mc_convert", IDI_MCCONVERT },
- { "Add to Existing", "mc_add", IDI_MCADD },
- { "Edit", "mc_edit", IDI_MCEDIT },
- { "Set to Default", "mc_default", IDI_MCSETDEFAULT },
- { "Remove", "mc_remove", IDI_MCREMOVE },
+ { LPGENT("Toggle Off"), "mc_off", IDI_MCMENUOFF },
+ { LPGENT("Toggle On"), "mc_on", IDI_MCMENU },
+ { LPGENT("Convert to MetaContact"), "mc_convert", IDI_MCCONVERT },
+ { LPGENT("Add to Existing"), "mc_add", IDI_MCADD },
+ { LPGENT("Edit"), "mc_edit", IDI_MCEDIT },
+ { LPGENT("Set to Default"), "mc_default", IDI_MCSETDEFAULT },
+ { LPGENT("Remove"), "mc_remove", IDI_MCREMOVE },
};
@@ -66,12 +66,12 @@ void InitIcons(void)
GetModuleFileName(hInstance, path, SIZEOF(path));
SKINICONDESC sid = { sizeof(sid) };
- sid.flags = SIDF_PATH_TCHAR;
- sid.pszSection = META_PROTO;
+ sid.flags = SIDF_ALL_TCHAR;
+ sid.ptszSection = _T(META_PROTO);
sid.ptszDefaultFile = path;
for (int i=0; i < SIZEOF(iconList); ++i) {
- sid.pszDescription = iconList[i].szDescr;
+ sid.ptszDescription = iconList[i].szDescr;
sid.pszName = iconList[i].szName;
sid.iDefaultIndex = -iconList[i].defIconID;
Skin_AddIcon(&sid);