From a7ebec2c8597f4381ce22ae9933d5706107d1329 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 10 Jun 2022 13:48:07 +0300 Subject: StdUserInfo: - ability to gather embedded screens into the tree subitems instead of tabs - fix for the page sorting order --- protocols/JabberG/src/jabber_userinfo.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'protocols/JabberG') diff --git a/protocols/JabberG/src/jabber_userinfo.cpp b/protocols/JabberG/src/jabber_userinfo.cpp index 9345c95678..d7ebc6af0e 100644 --- a/protocols/JabberG/src/jabber_userinfo.cpp +++ b/protocols/JabberG/src/jabber_userinfo.cpp @@ -455,7 +455,7 @@ public: buf.AppendChar('\t'); wchar_t wszText[256]; - TVITEMEX tvi = { 0 }; + TVITEMEX tvi = {}; tvi.mask = TVIF_HANDLE | TVIF_TEXT | TVIF_STATE; tvi.hItem = hti; tvi.cchTextMax = _countof(wszText); @@ -841,15 +841,17 @@ int CJabberProto::OnUserInfoInit(WPARAM wParam, LPARAM hContact) if (szProto != nullptr && !mir_strcmp(szProto, m_szModuleName)) { USERINFOPAGE uip = {}; uip.dwInitParam = (LPARAM)this; + uip.flags = ODPF_UNICODE | ODPF_USERINFOTAB; + uip.szGroup.w = m_tszUserName; uip.pDialog = new JabberUserInfoDlg(this); uip.position = -2000000000; - uip.szTitle.a = LPGEN("Account"); + uip.szTitle.w = LPGENW("Account"); g_plugin.addUserInfo(wParam, &uip); uip.pDialog = new JabberUserPhotoDlg(this); uip.position = 2000000000; - uip.szTitle.a = LPGEN("Photo"); + uip.szTitle.w = LPGENW("Photo"); g_plugin.addUserInfo(wParam, &uip); CheckOmemoUserInfo(wParam, uip); @@ -863,7 +865,7 @@ void CJabberProto::CheckOmemoUserInfo(WPARAM wParam, USERINFOPAGE &uip) if (m_bUseOMEMO) { uip.pDialog = new JabberUserOmemoDlg(this); uip.position = 2000000001; - uip.szTitle.a = "OMEMO"; + uip.szTitle.w = L"OMEMO"; g_plugin.addUserInfo(wParam, &uip); } } -- cgit v1.2.3