summaryrefslogtreecommitdiff
path: root/popup/src
diff options
context:
space:
mode:
Diffstat (limited to 'popup/src')
-rw-r--r--popup/src/services.cpp47
1 files changed, 0 insertions, 47 deletions
diff --git a/popup/src/services.cpp b/popup/src/services.cpp
index 416ce64..5d55132 100644
--- a/popup/src/services.cpp
+++ b/popup/src/services.cpp
@@ -144,53 +144,6 @@ static bool isFullScreen()
return dat.isFullScreen;
}
-//===== Hook clist services
-static LRESULT CALLBACK ClistEventPopupWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
-
-static LRESULT CALLBACK ClistEventPopupWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
-{
- switch (msg)
- {
- case WM_COMMAND:
- {
- CLISTEVENT *pCle = (CLISTEVENT *)CallService(MS_POPUP_GETPLUGINDATA, (WPARAM)hwnd, 0);
- if (pCle && pCle->pszService)
- {
- CallServiceSync(pCle->pszService, 0, (LPARAM)pCle);
- CallService(MS_CLIST_REMOVEEVENT, (WPARAM)pCle->hContact, (LPARAM)pCle->hDbEvent);
- }
- PUDeletePopUp(hwnd);
- return TRUE;
- }
-
- case WM_CONTEXTMENU:
- {
- CLISTEVENT *pCle = (CLISTEVENT *)CallService(MS_POPUP_GETPLUGINDATA, (WPARAM)hwnd, 0);
- if (pCle)
- CallService(MS_CLIST_REMOVEEVENT, (WPARAM)pCle->hContact, (LPARAM)pCle->hDbEvent);
- PUDeletePopUp(hwnd);
- return TRUE;
- }
-
- case UM_INITPOPUP:
- return TRUE;
-
- case UM_FREEPLUGINDATA:
- {
- CLISTEVENT *pCle = (CLISTEVENT *)CallService(MS_POPUP_GETPLUGINDATA, (WPARAM)hwnd, 0);
- if (pCle)
- {
- mir_free(pCle->pszTooltip);
- mir_free(pCle->pszService);
- mir_free(pCle);
- }
- return TRUE;
- }
- }
-
- return DefWindowProc(hwnd, msg, wParam, lParam);
-}
-
//===== PopUp/AddPopUp
INT_PTR PopUp_AddPopUp(WPARAM wParam, LPARAM lParam)
{