From 8a78d1312d2a7d25aabc4b2fd082891e4714dbb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 9 Dec 2014 17:08:24 +0000 Subject: Steam: Show xstatus as extra icon in clist (step 3) git-svn-id: http://svn.miranda-ng.org/main/trunk@11303 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/stdafx.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'protocols/Steam/src/stdafx.cpp') diff --git a/protocols/Steam/src/stdafx.cpp b/protocols/Steam/src/stdafx.cpp index d51a866ca3..7c6793d8cb 100644 --- a/protocols/Steam/src/stdafx.cpp +++ b/protocols/Steam/src/stdafx.cpp @@ -3,6 +3,8 @@ int hLangpack; HINSTANCE g_hInstance; +HANDLE hExtraXStatus; + PLUGININFOEX pluginInfo = { sizeof(PLUGININFOEX), @@ -43,6 +45,13 @@ extern "C" int __declspec(dllexport) Load(void) pd.fnUninit = (pfnUninitProto)CSteamProto::UninitProtoInstance; CallService(MS_PROTO_REGISTERMODULE, 0, (LPARAM)&pd); + char iconName[100]; + mir_snprintf(iconName, SIZEOF(iconName), "%s_%s", MODULE, "gaming"); + + // extra statuses + HookEvent(ME_SKIN2_ICONSCHANGED, OnReloadIcons); + hExtraXStatus = ExtraIcon_Register("steam_game", LPGEN("Steam game"), iconName); + CSteamProto::InitMenus(); return 0; -- cgit v1.2.3