diff options
author | George Hazan <ghazan@miranda.im> | 2018-07-05 23:17:49 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-07-05 23:17:49 +0300 |
commit | e5e268f1267ac0a16303081f1532fa1597911887 (patch) | |
tree | 1cd593db774c2a83e917e2450f6f33d289e4d9dd /protocols/JabberG/src | |
parent | 0b76f598f879aba590c11496d4266ae02d087bde (diff) |
fixes #1448 (translated frame names in database)
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r-- | protocols/JabberG/src/jabber_frame.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_frame.cpp b/protocols/JabberG/src/jabber_frame.cpp index 73436781c3..d91d7afdcb 100644 --- a/protocols/JabberG/src/jabber_frame.cpp +++ b/protocols/JabberG/src/jabber_frame.cpp @@ -82,11 +82,11 @@ CJabberInfoFrame::CJabberInfoFrame(CJabberProto *proto): frame.hWnd = CreateWindowEx(0, L"JabberInfoFrameClass", nullptr, WS_CHILD|WS_VISIBLE, 0, 0, 100, 100, hwndClist, nullptr, g_plugin.getInst(), this);
frame.align = alBottom;
frame.height = 2 * SZ_FRAMEPADDING + GetSystemMetrics(SM_CYSMICON) + SZ_LINEPADDING; // compact height by default
- frame.Flags = F_VISIBLE|F_LOCKED|F_NOBORDER|F_UNICODE;
- frame.tname = mir_a2u(proto->m_szModuleName);
- frame.TBtname = proto->m_tszUserName;
- m_frameId = CallService(MS_CLIST_FRAMES_ADDFRAME, (WPARAM)&frame, 0);
- mir_free(frame.tname);
+ frame.Flags = F_VISIBLE | F_LOCKED | F_NOBORDER | F_UNICODE;
+ frame.szName.w = mir_a2u(proto->m_szModuleName);
+ frame.szTBname.w = proto->m_tszUserName;
+ m_frameId = g_plugin.addFrame(&frame);
+ mir_free(frame.szName.w);
if (m_frameId == -1) {
DestroyWindow(frame.hWnd);
return;
|