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 /plugins/Weather/src | |
parent | 0b76f598f879aba590c11496d4266ae02d087bde (diff) |
fixes #1448 (translated frame names in database)
Diffstat (limited to 'plugins/Weather/src')
-rw-r--r-- | plugins/Weather/src/weather_mwin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Weather/src/weather_mwin.cpp b/plugins/Weather/src/weather_mwin.cpp index e81a01f038..f2181b8475 100644 --- a/plugins/Weather/src/weather_mwin.cpp +++ b/plugins/Weather/src/weather_mwin.cpp @@ -242,14 +242,14 @@ static void addWindow(MCONTACT hContact) WindowList_Add(hMwinWindowList, hWnd, hContact);
CLISTFrame Frame = { 0 };
- Frame.tname = winname;
+ Frame.szName.w = winname;
Frame.hIcon = LoadIconEx("main", FALSE);
Frame.cbSize = sizeof(Frame);
Frame.hWnd = hWnd;
Frame.align = alBottom;
Frame.Flags = F_VISIBLE | F_NOBORDER | F_UNICODE;
Frame.height = 32;
- DWORD frameID = CallService(MS_CLIST_FRAMES_ADDFRAME, (WPARAM)&Frame, 0);
+ int frameID = g_plugin.addFrame(&Frame);
db_set_dw(hContact, WEATHERPROTONAME, "mwin", frameID);
db_set_b(hContact, "CList", "Hidden", TRUE);
|