summaryrefslogtreecommitdiff
path: root/plugins/AuthState/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AuthState/src/main.cpp')
-rw-r--r--plugins/AuthState/src/main.cpp30
1 files changed, 8 insertions, 22 deletions
diff --git a/plugins/AuthState/src/main.cpp b/plugins/AuthState/src/main.cpp
index cf2e215e72..e6b6f4496e 100644
--- a/plugins/AuthState/src/main.cpp
+++ b/plugins/AuthState/src/main.cpp
@@ -169,31 +169,17 @@ int onPrebuildContactMenu(WPARAM wParam, LPARAM lParam)
return 0;
}
+static IconItem iconList[] =
+{
+ { LPGEN("Auth"), "auth_icon", IDI_AUTH },
+ { LPGEN("Grant"), "grant_icon", IDI_GRANT },
+ { LPGEN("Auth & Grant"), "authgrant_icon", IDI_AUTHGRANT }
+};
+
int onModulesLoaded(WPARAM wParam,LPARAM lParam)
{
// IcoLib support
- TCHAR szFile[MAX_PATH];
- GetModuleFileName(g_hInst, szFile, MAX_PATH);
-
- SKINICONDESC sid = { sizeof(sid) };
- sid.flags = SIDF_PATH_TCHAR;
- sid.ptszDefaultFile = szFile;
- sid.pszSection = "Auth State";
-
- sid.pszDescription = LPGEN("Auth");
- sid.pszName = "auth_icon";
- sid.iDefaultIndex = -IDI_AUTH;
- Skin_AddIcon(&sid);
-
- sid.pszDescription = LPGEN("Grant");
- sid.pszName = "grant_icon";
- sid.iDefaultIndex = -IDI_GRANT;
- Skin_AddIcon(&sid);
-
- sid.pszDescription = LPGEN("Auth & Grant");
- sid.pszName = "authgrant_icon";
- sid.iDefaultIndex = -IDI_AUTHGRANT;
- Skin_AddIcon(&sid);
+ Icon_Register(g_hInst, "Auth State", iconList, SIZEOF(iconList));
// extra icons
hExtraIcon = ExtraIcon_Register("authstate", "Auth State", "authgrant_icon");