From c4582dd65b444e5dae29ada7cc3f6c9a9c20edf3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 2 Dec 2012 18:19:49 +0000 Subject: new easy standard way of registering icons: Icon_Register git-svn-id: http://svn.miranda-ng.org/main/trunk@2601 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Omegle/src/theme.cpp | 46 +++--------------------------------------- 1 file changed, 3 insertions(+), 43 deletions(-) (limited to 'protocols/Omegle/src') diff --git a/protocols/Omegle/src/theme.cpp b/protocols/Omegle/src/theme.cpp index 04ab200f66..202d58791e 100644 --- a/protocols/Omegle/src/theme.cpp +++ b/protocols/Omegle/src/theme.cpp @@ -24,63 +24,23 @@ along with this program. If not, see . extern OBJLIST g_Instances; -struct -{ - const char* name; - const char* descr; - int defIconID; - const char* section; -} -static const icons[] = +static IconItem icons[] = { { "omegle", LPGEN("Omegle Icon"), IDI_OMEGLE }, -// { "homepage", LPGEN("Visit Profile"), 0, "core_main_2" }, }; static HANDLE hIconLibItem[SIZEOF(icons)]; -// TODO: uninit void InitIcons(void) { - TCHAR szFile[MAX_PATH]; - GetModuleFileName(g_hInstance, szFile, SIZEOF(szFile)); - - char setting_name[100]; - char section_name[100]; - - SKINICONDESC sid = { sizeof(sid) }; - sid.ptszDefaultFile = szFile; - sid.cx = sid.cy = 16; - sid.pszName = setting_name; - sid.pszSection = section_name; - sid.flags = SIDF_PATH_TCHAR; - - for (int i=0; i