From 88790eed4ffd9ca555c8f9b73cb014a93b57a34f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 22 Jun 2015 20:38:56 +0000 Subject: Menu_ModifyItem unbound from CLISTMENUITEM structure git-svn-id: http://svn.miranda-ng.org/main/trunk@14334 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Gadu-Gadu/src/links.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'protocols/Gadu-Gadu/src/links.cpp') diff --git a/protocols/Gadu-Gadu/src/links.cpp b/protocols/Gadu-Gadu/src/links.cpp index eb1f590f35..a915416a63 100644 --- a/protocols/Gadu-Gadu/src/links.cpp +++ b/protocols/Gadu-Gadu/src/links.cpp @@ -63,18 +63,11 @@ static INT_PTR gg_parselink(WPARAM wParam, LPARAM lParam) for (int i=0; i < g_Instances.getCount(); i++) { gg = g_Instances[i]; - CLISTMENUITEM mi = { 0 }; - mi.flags = CMIM_FLAGS; if (gg->m_iStatus > ID_STATUS_OFFLINE) { ++items; - mi.flags |= CMIM_ICON; - mi.hIcon = Skin_LoadProtoIcon(gg->m_szModuleName, gg->m_iStatus); + Menu_ModifyItem(gg->hInstanceMenuItem, NULL, Skin_LoadProtoIcon(gg->m_szModuleName, gg->m_iStatus)); } - else mi.flags |= CMIF_HIDDEN; - - Menu_ModifyItem(gg->hInstanceMenuItem, &mi); - if (mi.hIcon) - IcoLib_ReleaseIcon(mi.hIcon); + else Menu_ShowItem(gg->hInstanceMenuItem, false); } if (items > 1) { -- cgit v1.2.3