diff options
author | George Hazan <ghazan@miranda.im> | 2022-06-13 15:09:41 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-06-13 15:09:41 +0300 |
commit | 346ae348ae7ee5a594c9fcd17114ae949c1ce201 (patch) | |
tree | 1e42c52d59515646d603a9593ce23d094a5fde20 /plugins/Nudge/src | |
parent | 7524e8b875b924bb3cee484e90f6cc6bc01515a4 (diff) |
Popup+: fix for a madness with default popup class values
Diffstat (limited to 'plugins/Nudge/src')
-rw-r--r-- | plugins/Nudge/src/main.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/Nudge/src/main.cpp b/plugins/Nudge/src/main.cpp index 8dbf4c33a2..ee2ad72b2f 100644 --- a/plugins/Nudge/src/main.cpp +++ b/plugins/Nudge/src/main.cpp @@ -217,13 +217,11 @@ static int OnShutdown(WPARAM, LPARAM) void LoadPopupClass()
{
- POPUPCLASS ppc = { sizeof(ppc) };
+ POPUPCLASS ppc = {};
+ ppc.flags = PCF_UNICODE;
ppc.pszName = "Nudge";
- ppc.pszDescription.a = LPGEN("Show Nudge");
+ ppc.pszDescription.w = TranslateT("Show Nudge");
ppc.hIcon = IcoLib_GetIconByHandle(iconList[0].hIcolib);
- ppc.colorBack = NULL;
- ppc.colorText = NULL;
- ppc.iSeconds = 0;
ppc.PluginWindowProc = NudgePopupProc;
if (hPopupClass = Popup_RegisterClass(&ppc))
HookEvent(ME_SYSTEM_SHUTDOWN, OnShutdown);
@@ -272,8 +270,7 @@ void Nudge_ShowPopup(CNudgeElement*, MCONTACT hContact, wchar_t * Message) hContact = db_mc_tryMeta(hContact);
wchar_t *lpzContactName = Clist_GetContactDisplayName(hContact);
- POPUPDATACLASS NudgePopup = { 0 };
- NudgePopup.cbSize = sizeof(NudgePopup);
+ POPUPDATACLASS NudgePopup = {};
NudgePopup.hContact = hContact;
NudgePopup.szText.w = Message;
NudgePopup.szTitle.w = lpzContactName;
|