diff options
-rw-r--r-- | plugins/Clist_nicer/src/Include/clc.h | 1 | ||||
-rw-r--r-- | plugins/Clist_nicer/src/clcpaint.cpp | 3 | ||||
-rw-r--r-- | plugins/Clist_nicer/src/init.cpp | 9 |
3 files changed, 2 insertions, 11 deletions
diff --git a/plugins/Clist_nicer/src/Include/clc.h b/plugins/Clist_nicer/src/Include/clc.h index ffe0827255..ded525095d 100644 --- a/plugins/Clist_nicer/src/Include/clc.h +++ b/plugins/Clist_nicer/src/Include/clc.h @@ -234,7 +234,6 @@ struct TCluiData { int wNextMenuID;
MCONTACT hUpdateContact;
DWORD sortTimer;
- TCHAR *szNoEvents;
BOOL forceResize;
BOOL neeedSnap;
COLORREF avatarBorder;
diff --git a/plugins/Clist_nicer/src/clcpaint.cpp b/plugins/Clist_nicer/src/clcpaint.cpp index 039dc6300f..40434ce98e 100644 --- a/plugins/Clist_nicer/src/clcpaint.cpp +++ b/plugins/Clist_nicer/src/clcpaint.cpp @@ -230,7 +230,8 @@ void PaintNotifyArea(HDC hDC, RECT *rc) }
else {
HICON hIcon = reinterpret_cast<HICON>(LoadImage(g_hInst, MAKEINTRESOURCE(IDI_BLANK), IMAGE_ICON, 16, 16, 0));
- DrawText(hDC, cfg::dat.szNoEvents, lstrlen(cfg::dat.szNoEvents), rc, DT_VCENTER | DT_SINGLELINE);
+ TCHAR *ptszNoEvents = TranslateT("No events...");
+ DrawText(hDC, ptszNoEvents, lstrlen(ptszNoEvents), rc, DT_VCENTER | DT_SINGLELINE);
DrawIconEx(hDC, 4, (rc->bottom + rc->top - 16) / 2, hIcon, 16, 16, 0, 0, DI_NORMAL | DI_COMPAT);
DestroyIcon(hIcon);
}
diff --git a/plugins/Clist_nicer/src/init.cpp b/plugins/Clist_nicer/src/init.cpp index 009d5bf4d3..c2841295d5 100644 --- a/plugins/Clist_nicer/src/init.cpp +++ b/plugins/Clist_nicer/src/init.cpp @@ -191,12 +191,6 @@ static int fnIconFromStatusMode(const char* szProto, int status, MCONTACT hConta return IconFromStatusMode(szProto, status, hContact, NULL);
}
-static int OnLangChange(WPARAM, LPARAM)
-{
- cfg::dat.szNoEvents = TranslateT("No events...");
- return 0;
-}
-
extern "C" int __declspec(dllexport) CListInitialise()
{
mir_getLP( &pluginInfo );
@@ -247,8 +241,6 @@ extern "C" int __declspec(dllexport) CListInitialise() cfg::dat.langPackCP = CallService(MS_LANGPACK_GETCODEPAGE, 0, 0);
cfg::dat.realTimeSaving = cfg::getByte("CLUI", "save_pos_always", 0);
- OnLangChange(0, 0);
-
DWORD sortOrder = cfg::getDword("CList", "SortOrder", SORTBY_NAME);
cfg::dat.sortOrder[0] = LOBYTE(LOWORD(sortOrder));
cfg::dat.sortOrder[1] = HIBYTE(LOWORD(sortOrder));
@@ -317,7 +309,6 @@ extern "C" int __declspec(dllexport) CListInitialise() LoadButtonModule();
HookEvent(ME_SYSTEM_MODULESLOADED, systemModulesLoaded);
- HookEvent(ME_LANGPACK_CHANGED, OnLangChange);
return rc;
}
|