From e5e268f1267ac0a16303081f1532fa1597911887 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 5 Jul 2018 23:17:49 +0300 Subject: fixes #1448 (translated frame names in database) --- protocols/JabberG/src/jabber_frame.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/JabberG') 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; -- cgit v1.2.3