From a89f0c432f9275be3c7a39b24404a73b13a940f3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 30 Nov 2012 21:47:48 +0000 Subject: - Unicode in names is useless until we deal with the account's name; - tabs inside are also not recommended git-svn-id: http://svn.miranda-ng.org/main/trunk@2573 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MetaContacts/src/icons.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'plugins/MetaContacts') diff --git a/plugins/MetaContacts/src/icons.cpp b/plugins/MetaContacts/src/icons.cpp index 694c28d7bd..59e60ce5eb 100644 --- a/plugins/MetaContacts/src/icons.cpp +++ b/plugins/MetaContacts/src/icons.cpp @@ -1,19 +1,19 @@ #include "metacontacts.h" typedef struct { - TCHAR* szDescr; + char* szDescr; char* szName; int defIconID; } IconStruct; static IconStruct iconList[] = { - { 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 }, + { LPGEN("Toggle Off"), "mc_off", IDI_MCMENUOFF }, + { LPGEN("Toggle On"), "mc_on", IDI_MCMENU }, + { LPGEN("Convert to MetaContact"), "mc_convert", IDI_MCCONVERT }, + { LPGEN("Add to Existing"), "mc_add", IDI_MCADD }, + { LPGEN("Edit"), "mc_edit", IDI_MCEDIT }, + { LPGEN("Set to Default"), "mc_default", IDI_MCSETDEFAULT }, + { LPGEN("Remove"), "mc_remove", IDI_MCREMOVE }, }; @@ -66,12 +66,12 @@ void InitIcons(void) GetModuleFileName(hInstance, path, SIZEOF(path)); SKINICONDESC sid = { sizeof(sid) }; - sid.flags = SIDF_ALL_TCHAR; - sid.ptszSection = _T(META_PROTO); + sid.flags = SIDF_PATH_TCHAR; + sid.pszSection = META_PROTO; sid.ptszDefaultFile = path; for (int i=0; i < SIZEOF(iconList); ++i) { - sid.ptszDescription = iconList[i].szDescr; + sid.pszDescription = iconList[i].szDescr; sid.pszName = iconList[i].szName; sid.iDefaultIndex = -iconList[i].defIconID; Skin_AddIcon(&sid); -- cgit v1.2.3