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/MobileState/src/main.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'plugins/MobileState/src/main.cpp') diff --git a/plugins/MobileState/src/main.cpp b/plugins/MobileState/src/main.cpp index 743dfbe0e8..ec106a5ce4 100644 --- a/plugins/MobileState/src/main.cpp +++ b/plugins/MobileState/src/main.cpp @@ -100,14 +100,11 @@ 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("Mobile State"); + SKINICONDESC sid = { sizeof(sid) }; + sid.flags = SIDF_PATH_TCHAR; + sid.pszSection = "Mobile State"; sid.ptszDefaultFile = szFile; - - sid.ptszDescription = _T("Mobile State"); + sid.pszDescription = "Mobile State"; sid.pszName = "mobile_icon"; sid.iDefaultIndex = -IDI_MOBILE; Skin_AddIcon(&sid); -- cgit v1.2.3