From 66ddfd87a0e55b9534b8669392bb0cdee2e9fa3b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 1 Dec 2012 21:07:34 +0000 Subject: SKINICONDESC initialization - end-II :) git-svn-id: http://svn.miranda-ng.org/main/trunk@2599 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AuthState/src/main.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'plugins/AuthState') diff --git a/plugins/AuthState/src/main.cpp b/plugins/AuthState/src/main.cpp index 9a4ff8ae2d..cf2e215e72 100644 --- a/plugins/AuthState/src/main.cpp +++ b/plugins/AuthState/src/main.cpp @@ -175,24 +175,22 @@ int onModulesLoaded(WPARAM wParam,LPARAM lParam) TCHAR szFile[MAX_PATH]; GetModuleFileName(g_hInst, szFile, MAX_PATH); - SKINICONDESC sid = {0}; - sid.cbSize = sizeof(sid); - sid.flags = SIDF_ALL_TCHAR; - - sid.ptszSection = _T("Auth State"); + SKINICONDESC sid = { sizeof(sid) }; + sid.flags = SIDF_PATH_TCHAR; sid.ptszDefaultFile = szFile; + sid.pszSection = "Auth State"; - sid.ptszDescription = _T("Auth"); + sid.pszDescription = LPGEN("Auth"); sid.pszName = "auth_icon"; sid.iDefaultIndex = -IDI_AUTH; Skin_AddIcon(&sid); - sid.ptszDescription = _T("Grant"); + sid.pszDescription = LPGEN("Grant"); sid.pszName = "grant_icon"; sid.iDefaultIndex = -IDI_GRANT; Skin_AddIcon(&sid); - sid.ptszDescription = _T("Auth & Grant"); + sid.pszDescription = LPGEN("Auth & Grant"); sid.pszName = "authgrant_icon"; sid.iDefaultIndex = -IDI_AUTHGRANT; Skin_AddIcon(&sid); -- cgit v1.2.3