From 0d9497c7f2a34601179e95f7ce7fc137545240fe Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 21 May 2013 07:13:04 +0000 Subject: added own icon for plugin list git-svn-id: http://svn.miranda-ng.org/main/trunk@4772 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Notifications.cpp | 4 ++-- plugins/PluginUpdater/src/PluginUpdater.cpp | 2 +- plugins/PluginUpdater/src/Utils.cpp | 1 + plugins/PluginUpdater/src/resource.h | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins/PluginUpdater/src') diff --git a/plugins/PluginUpdater/src/Notifications.cpp b/plugins/PluginUpdater/src/Notifications.cpp index 4b6b93e1b2..762cfb0170 100644 --- a/plugins/PluginUpdater/src/Notifications.cpp +++ b/plugins/PluginUpdater/src/Notifications.cpp @@ -697,8 +697,8 @@ INT_PTR CALLBACK DlgList(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) TranslateDialogDefault( hDlg ); mir_subclassWindow(hwndList, PluginListWndProc); - SendMessage(hDlg, WM_SETICON, ICON_BIG, (LPARAM)LoadSkinnedIconBig(SKINICON_OTHER_OPTIONS)); - SendMessage(hDlg, WM_SETICON, ICON_SMALL, (LPARAM)LoadSkinnedIcon(SKINICON_OTHER_OPTIONS)); + SendMessage(hDlg, WM_SETICON, ICON_BIG, (LPARAM)Skin_GetIcon("plg_list", 1)); + SendMessage(hDlg, WM_SETICON, ICON_SMALL, (LPARAM)Skin_GetIcon("plg_list")); { HIMAGELIST hIml = ImageList_Create(16, 16, ILC_MASK | ILC_COLOR32, 4, 0); ImageList_AddIconFromIconLib(hIml, "info"); diff --git a/plugins/PluginUpdater/src/PluginUpdater.cpp b/plugins/PluginUpdater/src/PluginUpdater.cpp index bf914fb48b..090e9f5b5b 100644 --- a/plugins/PluginUpdater/src/PluginUpdater.cpp +++ b/plugins/PluginUpdater/src/PluginUpdater.cpp @@ -112,7 +112,7 @@ extern "C" __declspec(dllexport) int Load(void) Menu_AddMainMenuItem(&mi); mi.position++; - mi.icolibItem = LoadSkinnedIconHandle(SKINICON_OTHER_OPTIONS); + mi.icolibItem = Skin_GetIconHandle("plg_list"); mi.pszName = LPGEN("Show full plugin list"); mi.pszService = MODNAME"/ShowList"; Menu_AddMainMenuItem(&mi); diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 43f27180de..83d85f7a7a 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -42,6 +42,7 @@ static iconList[] = { "btn_ok", LPGEN("'Yes' Button"), IDI_OK }, { "btn_cancel", LPGEN("'No' Button"), IDI_CANCEL }, { "info", LPGEN("Plugin info"), IDI_INFO }, + { "plg_list", LPGEN("Plugin list"), IDI_PLGLIST }, }; void IcoLibInit() diff --git a/plugins/PluginUpdater/src/resource.h b/plugins/PluginUpdater/src/resource.h index 57416edb3e..df0fb846fe 100644 --- a/plugins/PluginUpdater/src/resource.h +++ b/plugins/PluginUpdater/src/resource.h @@ -17,6 +17,7 @@ #define IDI_DOWN_OK 115 #define IDI_ICON5 116 #define IDI_DOWN_SKIP 116 +#define IDI_PLGLIST 117 #define IDC_UPDATETEXT 1001 #define IDC_CURVER 1002 #define IDC_NEWVER 1003 -- cgit v1.2.3