From 35df0639c0bd3ad7f1a7f73604b859e100a6c50c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 24 Nov 2017 22:25:19 +0300 Subject: GMailNotifier: major rework to Miranda Netlib functions --- plugins/GmailNotifier/src/notify.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/GmailNotifier/src/notify.cpp') diff --git a/plugins/GmailNotifier/src/notify.cpp b/plugins/GmailNotifier/src/notify.cpp index e49421dc5d..ee1bbc04e4 100644 --- a/plugins/GmailNotifier/src/notify.cpp +++ b/plugins/GmailNotifier/src/notify.cpp @@ -36,12 +36,12 @@ static LRESULT CALLBACK PopupDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPA case UM_INITPOPUP: curAcc->popUpHwnd = hWnd; break; - + case WM_COMMAND: if (HIWORD(wParam) == STN_CLICKED) OpenBrowser((WPARAM)hContact, 0); break; - + case WM_CONTEXTMENU: PUDeletePopup(hWnd); curAcc->popUpHwnd = nullptr; @@ -54,7 +54,7 @@ void NotifyUser(Account *curAcc) { if (optionWindowIsOpen) return; - + db_set_s(curAcc->hContact, "CList", "MyHandle", curAcc->results.content); switch (curAcc->results_num) { case 0: @@ -63,11 +63,11 @@ void NotifyUser(Account *curAcc) if (curAcc->oldResults_num != 0) db_set_w(curAcc->hContact, MODULE_NAME, "Status", ID_STATUS_NONEW); break; - + case -1: db_set_w(curAcc->hContact, MODULE_NAME, "Status", ID_STATUS_AWAY); break; - + default: db_set_w(curAcc->hContact, MODULE_NAME, "Status", ID_STATUS_OCCUPIED); int newMails = (curAcc->oldResults_num == -1) ? (curAcc->results_num) : (curAcc->results_num - curAcc->oldResults_num); -- cgit v1.2.3