From cdd84a443d08a4f5748b52b102ce17dfd267acc5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 29 Apr 2015 17:27:23 +0000 Subject: twitter moved to the kernel json driver git-svn-id: http://svn.miranda-ng.org/main/trunk@13248 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/src/ui.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'protocols/Twitter/src/ui.cpp') diff --git a/protocols/Twitter/src/ui.cpp b/protocols/Twitter/src/ui.cpp index c9b78db00f..de33178bbd 100644 --- a/protocols/Twitter/src/ui.cpp +++ b/protocols/Twitter/src/ui.cpp @@ -229,16 +229,12 @@ INT_PTR CALLBACK options_proc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar GetDlgItemTextA(hwndDlg, IDC_UN, str, SIZEOF(str)); db_set_s(0, proto->ModuleName(), TWITTER_KEY_UN, str); - /*GetDlgItemTextA(hwndDlg,IDC_PW,str,SIZEOF(str)); - CallService(MS_DB_CRYPT_ENCODESTRING,sizeof(str),reinterpret_cast(str)); - db_set_s(0,proto->ModuleName(),TWITTER_KEY_PASS,str);*/ - GetDlgItemTextA(hwndDlg, IDC_BASEURL, str, SIZEOF(str) - 1); if (str[strlen(str) - 1] != '/') strncat(str, "/", sizeof(str)); db_set_s(0, proto->ModuleName(), TWITTER_KEY_BASEURL, str); - db_set_b(0, proto->ModuleName(), TWITTER_KEY_CHATFEED, IsDlgButtonChecked(hwndDlg, IDC_CHATFEED)); + db_set_b(0, proto->ModuleName(), TWITTER_KEY_CHATFEED, IsDlgButtonChecked(hwndDlg, IDC_CHATFEED) != 0); GetDlgItemTextA(hwndDlg, IDC_POLLRATE, str, SIZEOF(str)); int rate = atoi(str); @@ -246,7 +242,7 @@ INT_PTR CALLBACK options_proc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar rate = 80; db_set_dw(0, proto->ModuleName(), TWITTER_KEY_POLLRATE, rate); - db_set_b(0, proto->ModuleName(), TWITTER_KEY_TWEET_TO_MSG, IsDlgButtonChecked(hwndDlg, IDC_TWEET_MSG)); + db_set_b(0, proto->ModuleName(), TWITTER_KEY_TWEET_TO_MSG, IsDlgButtonChecked(hwndDlg, IDC_TWEET_MSG) != 0); proto->UpdateSettings(); return true; @@ -275,7 +271,7 @@ namespace popup_options { if (IsDlgButtonChecked(hwndDlg, IDC_COL_WINDOWS)) { if (for_db) - return -1; + return (COLORREF)-1; else return GetSysColor(COLOR_WINDOWTEXT); } @@ -289,7 +285,7 @@ namespace popup_options { if (IsDlgButtonChecked(hwndDlg, IDC_COL_WINDOWS)) { if (for_db) - return -1; + return (COLORREF)-1; else return GetSysColor(COLOR_WINDOW); } @@ -449,7 +445,7 @@ INT_PTR CALLBACK popup_options_proc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA if (reinterpret_cast(lParam)->code == PSN_APPLY) { proto = reinterpret_cast(GetWindowLongPtr(hwndDlg, GWLP_USERDATA)); - db_set_b(0, proto->ModuleName(), TWITTER_KEY_POPUP_SHOW, IsDlgButtonChecked(hwndDlg, IDC_SHOWPOPUPS)); + db_set_b(0, proto->ModuleName(), TWITTER_KEY_POPUP_SHOW, IsDlgButtonChecked(hwndDlg, IDC_SHOWPOPUPS) != 0); db_set_b(0, proto->ModuleName(), TWITTER_KEY_POPUP_SIGNON, BST_UNCHECKED == IsDlgButtonChecked(hwndDlg, IDC_NOSIGNONPOPUPS)); // ***** Write color settings -- cgit v1.2.3