diff options
author | George Hazan <ghazan@miranda.im> | 2022-06-10 13:48:07 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-06-10 13:48:07 +0300 |
commit | a7ebec2c8597f4381ce22ae9933d5706107d1329 (patch) | |
tree | 764efb1a8382109cd3fa33bffbf4dde744e33121 /protocols/JabberG | |
parent | 9e63345f7d59d8f168b14e0cbcd1365143286745 (diff) |
StdUserInfo:
- ability to gather embedded screens into the tree subitems instead of tabs
- fix for the page sorting order
Diffstat (limited to 'protocols/JabberG')
-rw-r--r-- | protocols/JabberG/src/jabber_userinfo.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
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); } } |