diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-25 15:05:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-25 15:05:30 +0000 |
commit | ed1449fa491e90197b78b64b52c70910f1736dd7 (patch) | |
tree | 208788e9ee24ec2bcd90a4f4d7a166a534baa53e /plugins/Clist_mw/CLUIFrames | |
parent | 2a06d7b1dbe99233e078819c78956e346175b420 (diff) |
dynamic fonts' options translation
git-svn-id: http://svn.miranda-ng.org/main/trunk@633 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_mw/CLUIFrames')
-rw-r--r-- | plugins/Clist_mw/CLUIFrames/cluiframes.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/Clist_mw/CLUIFrames/cluiframes.cpp b/plugins/Clist_mw/CLUIFrames/cluiframes.cpp index 3d5eb1d676..df70ff4d02 100644 --- a/plugins/Clist_mw/CLUIFrames/cluiframes.cpp +++ b/plugins/Clist_mw/CLUIFrames/cluiframes.cpp @@ -2853,18 +2853,18 @@ static int CLUIFrameOnFontChange(WPARAM wParam,LPARAM lParam) static void CLUIRegisterFonts()
{
- if (ServiceExists(MS_FONT_REGISTER)) {
- FontID fid = {0};
- fid.cbSize = sizeof(fid);
- strcpy(fid.group,LPGEN("Frames"));
- strcpy(fid.name,LPGEN("TitleBarFont"));
- strcpy(fid.dbSettingsGroup,"CLUIFrames");
- strcpy(fid.prefix,"FramesTitleBarFont");
-
- CallService(MS_FONT_REGISTER,(WPARAM)&fid,0);
- CLUIFrameOnFontChange(0,0);
- HookEvent(ME_FONT_RELOAD,CLUIFrameOnFontChange);
-} }
+ FontID fid = {0};
+ fid.cbSize = sizeof(fid);
+ strcpy(fid.group, LPGEN("Frames"));
+ strcpy(fid.name, LPGEN("TitleBarFont"));
+ strcpy(fid.dbSettingsGroup, "CLUIFrames");
+ strcpy(fid.prefix, "FramesTitleBarFont");
+ FontRegister(&fid);
+
+ CLUIFrameOnFontChange(0,0);
+
+ HookEvent(ME_FONT_RELOAD,CLUIFrameOnFontChange);
+}
static int CLUIFrameOnModulesLoad(WPARAM wParam,LPARAM lParam)
{
|