From 426e2f9755a14023223e2e3ebfa8e78f6e8677a8 Mon Sep 17 00:00:00 2001 From: George Hazan <ghazan@miranda.im> Date: Fri, 27 Sep 2019 21:32:12 +0300 Subject: fix for a function name: Clist_IsHidden => Contact_IsHidden Clist_HideContact => Contact_Hide --- plugins/MenuItemEx/src/main.cpp | 6 +++--- plugins/MenuItemEx/src/stdafx.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/MenuItemEx') diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index 68c10c84f4..f758cf7c81 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -377,7 +377,7 @@ static INT_PTR onSetVis(WPARAM wparam, LPARAM) static INT_PTR onHide(WPARAM wparam, LPARAM) { MCONTACT hContact = (MCONTACT)wparam; - Clist_HideContact(hContact, !Clist_IsHidden(hContact)); + Contact_Hide(hContact, !Contact_IsHidden(hContact)); return 0; } @@ -643,7 +643,7 @@ static int isIgnored(MCONTACT hContact, int type) static INT_PTR onIgnore(WPARAM wparam, LPARAM lparam) { if (g_plugin.getByte("ignorehide", 0) && (lparam == IGNOREEVENT_ALL)) - Clist_HideContact(wparam, !isIgnored((MCONTACT)wparam, lparam)); + Contact_Hide(wparam, !isIgnored((MCONTACT)wparam, lparam)); if (isIgnored(wparam, lparam)) Ignore_Allow(wparam, lparam); @@ -696,7 +696,7 @@ static int BuildMenu(WPARAM wparam, LPARAM) bEnabled = bShowAll || (flags & VF_HFL); Menu_ShowItem(hmenuHide, bEnabled); if (bEnabled) { - if (Clist_IsHidden(hContact)) + if (Contact_IsHidden(hContact)) Menu_ModifyItem(hmenuHide, LPGENW("Show in list"), IcoLib_GetIconHandle("miex_showil")); else Menu_ModifyItem(hmenuHide, LPGENW("Hide from list"), IcoLib_GetIconHandle("miex_hidefl")); diff --git a/plugins/MenuItemEx/src/stdafx.h b/plugins/MenuItemEx/src/stdafx.h index 7092a72bbf..701134cafd 100644 --- a/plugins/MenuItemEx/src/stdafx.h +++ b/plugins/MenuItemEx/src/stdafx.h @@ -9,6 +9,7 @@ #include <win2k.h> #include <m_system.h> #include <m_options.h> +#include <m_contacts.h> #include <m_database.h> #include <m_protosvc.h> #include <m_langpack.h> -- cgit v1.2.3