summaryrefslogtreecommitdiff
path: root/plugins/NewEventNotify/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-07 13:00:51 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-07 13:00:51 +0300
commit00f5e35c664bd8b2b1b00de3353aa0c3e70f5423 (patch)
tree5766fc5e1bb1886b664e280b65d503a594838883 /plugins/NewEventNotify/src
parente855b0922f15871e8deb07562f3d5c8ba675bf93 (diff)
duplicate popup icons moved into global skin
Diffstat (limited to 'plugins/NewEventNotify/src')
-rw-r--r--plugins/NewEventNotify/src/menuitem.cpp6
-rw-r--r--plugins/NewEventNotify/src/resource.h3
2 files changed, 3 insertions, 6 deletions
diff --git a/plugins/NewEventNotify/src/menuitem.cpp b/plugins/NewEventNotify/src/menuitem.cpp
index eccf612334..c077bf25be 100644
--- a/plugins/NewEventNotify/src/menuitem.cpp
+++ b/plugins/NewEventNotify/src/menuitem.cpp
@@ -40,9 +40,9 @@ static INT_PTR MenuitemNotifyCmd(WPARAM, LPARAM)
int MenuitemUpdate(BOOL bStatus)
{
if (bStatus)
- Menu_ModifyItem(hMenuitemNotify, MENUITEM_DISABLE, LoadIcon(g_plugin.getInst(), MAKEINTRESOURCE(IDI_ENABLED)));
+ Menu_ModifyItem(hMenuitemNotify, MENUITEM_DISABLE, Skin_LoadIcon(SKINICON_OTHER_POPUP));
else
- Menu_ModifyItem(hMenuitemNotify, MENUITEM_ENABLE, LoadIcon(g_plugin.getInst(), MAKEINTRESOURCE(IDI_DISABLED)));
+ Menu_ModifyItem(hMenuitemNotify, MENUITEM_ENABLE, Skin_LoadIcon(SKINICON_OTHER_NOPOPUP));
return 0;
}
@@ -56,7 +56,7 @@ int MenuitemInit(BOOL bStatus)
SET_UID(mi, 0x7aed93f7, 0x835, 0x4ff6, 0xb1, 0x34, 0xae, 0x0, 0x21, 0x2a, 0xd7, 0x81);
mi.root = hRoot;
mi.position = 1;
- mi.hIcolibItem = LoadIcon(g_plugin.getInst(), MAKEINTRESOURCE(IDI_ENABLED));
+ mi.hIcolibItem = Skin_LoadIcon(SKINICON_OTHER_POPUP);
mi.pszService = MS_NEN_MENUNOTIFY;
mi.flags = 0;
hMenuitemNotify = Menu_AddMainMenuItem(&mi);
diff --git a/plugins/NewEventNotify/src/resource.h b/plugins/NewEventNotify/src/resource.h
index 679a27ed70..07feaa4615 100644
--- a/plugins/NewEventNotify/src/resource.h
+++ b/plugins/NewEventNotify/src/resource.h
@@ -3,9 +3,6 @@
// Used by ..\res\resource.rc
//
#define IDD_OPT 101
-#define IDI_ENABLED 106
-#define IDI_ICON2 107
-#define IDI_DISABLED 107
#define IDC_PREVIEW 1000
#define IDC_CHKNOTIFY_MESSAGE 1001
#define IDC_CHKNOTIFY_FILE 1003