summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-20 16:19:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-20 16:19:56 +0300
commite2530b85347a8e0a3344174c3575284a76f512aa (patch)
treeaf7282360d4c57aa26c1d9de260505583076c933 /protocols/JabberG/src
parent495c51c74e7d1595c882ae31becb7ab5b4093a08 (diff)
UserInfo_AddPage() helper replaced with CMPLugin::addUserInfo()
Diffstat (limited to 'protocols/JabberG/src')
-rwxr-xr-xprotocols/JabberG/src/jabber_userinfo.cpp4
-rw-r--r--protocols/JabberG/src/jabber_vcard.cpp12
2 files changed, 8 insertions, 8 deletions
diff --git a/protocols/JabberG/src/jabber_userinfo.cpp b/protocols/JabberG/src/jabber_userinfo.cpp
index 374c60bee3..7aa1c6adba 100755
--- a/protocols/JabberG/src/jabber_userinfo.cpp
+++ b/protocols/JabberG/src/jabber_userinfo.cpp
@@ -829,13 +829,13 @@ int CJabberProto::OnUserInfoInit(WPARAM wParam, LPARAM lParam)
odp.position = -2000000000;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_INFO_JABBER);
odp.szTitle.a = LPGEN("Account");
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
odp.pfnDlgProc = JabberUserPhotoDlgProc;
odp.position = 2000000000;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_VCARD_PHOTO);
odp.szTitle.a = LPGEN("Photo");
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
}
//TODO: add omemo dialog to userinfo
return 0;
diff --git a/protocols/JabberG/src/jabber_vcard.cpp b/protocols/JabberG/src/jabber_vcard.cpp
index 95b737973b..09fb8bcd3d 100644
--- a/protocols/JabberG/src/jabber_vcard.cpp
+++ b/protocols/JabberG/src/jabber_vcard.cpp
@@ -1187,32 +1187,32 @@ void CJabberProto::OnUserInfoInit_VCard(WPARAM wParam, LPARAM)
odp.pfnDlgProc = PersonalDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_VCARD_PERSONAL);
odp.szTab.w = LPGENW("General");
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
odp.pfnDlgProc = ContactDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_VCARD_CONTACT);
odp.szTab.w = LPGENW("Contacts");
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
odp.pfnDlgProc = HomeDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_VCARD_HOME);
odp.szTab.w = LPGENW("Home");
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
odp.pfnDlgProc = WorkDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_VCARD_WORK);
odp.szTab.w = LPGENW("Work");
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
odp.pfnDlgProc = PhotoDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_VCARD_PHOTO);
odp.szTab.w = LPGENW("Photo");
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
odp.pfnDlgProc = NoteDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_VCARD_NOTE);
odp.szTab.w = LPGENW("Note");
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
SendGetVcard(m_szJabberJID);
}