summaryrefslogtreecommitdiff
path: root/plugins/GmailNotifier/src/notify.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-11-24 22:25:19 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-11-24 22:25:19 +0300
commit35df0639c0bd3ad7f1a7f73604b859e100a6c50c (patch)
tree30b04f6cfca487b8c08571adaebb665b5c10d9fb /plugins/GmailNotifier/src/notify.cpp
parent0ad50afcb9b77a5d92ccade06a443552f702bdc3 (diff)
GMailNotifier: major rework to Miranda Netlib functions
Diffstat (limited to 'plugins/GmailNotifier/src/notify.cpp')
-rw-r--r--plugins/GmailNotifier/src/notify.cpp10
1 files changed, 5 insertions, 5 deletions
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);