summaryrefslogtreecommitdiff
path: root/plugins/Alarms/alarm_win.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-25 15:05:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-25 15:05:30 +0000
commited1449fa491e90197b78b64b52c70910f1736dd7 (patch)
tree208788e9ee24ec2bcd90a4f4d7a166a534baa53e /plugins/Alarms/alarm_win.cpp
parent2a06d7b1dbe99233e078819c78956e346175b420 (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/Alarms/alarm_win.cpp')
-rw-r--r--plugins/Alarms/alarm_win.cpp69
1 files changed, 33 insertions, 36 deletions
diff --git a/plugins/Alarms/alarm_win.cpp b/plugins/Alarms/alarm_win.cpp
index 30b4dd31e5..11a29e42b5 100644
--- a/plugins/Alarms/alarm_win.cpp
+++ b/plugins/Alarms/alarm_win.cpp
@@ -370,42 +370,39 @@ int ReloadFonts(WPARAM wParam, LPARAM lParam) {
return 0;
}
-int AlarmWinModulesLoaded(WPARAM wParam, LPARAM lParam) {
- if (ServiceExists(MS_FONT_REGISTER)) {
- title_font_id.cbSize = sizeof(FontID);
- strcpy(title_font_id.group, Translate("Alarms"));
- strcpy(title_font_id.name, Translate("Title"));
- strcpy(title_font_id.dbSettingsGroup, MODULE);
- strcpy(title_font_id.prefix, "FontTitle");
- title_font_id.flags = 0;
- title_font_id.order = 0;
-
- CallService(MS_FONT_REGISTER, (WPARAM)&title_font_id, 0);
-
- window_font_id.cbSize = sizeof(FontID);
- strcpy(window_font_id.group, Translate("Alarms"));
- strcpy(window_font_id.name, Translate("Window"));
- strcpy(window_font_id.dbSettingsGroup, MODULE);
- strcpy(window_font_id.prefix, "FontWindow");
- window_font_id.flags = 0;
- window_font_id.order = 1;
-
- CallService(MS_FONT_REGISTER, (WPARAM)&window_font_id, 0);
-
- bk_colour_id.cbSize = sizeof(ColourID);
- strcpy(bk_colour_id.dbSettingsGroup, MODULE);
- strcpy(bk_colour_id.group, Translate("Alarms"));
- strcpy(bk_colour_id.name, Translate("Background"));
- strcpy(bk_colour_id.setting, "BkColour");
- bk_colour_id.defcolour = GetSysColor(COLOR_3DFACE);
- bk_colour_id.flags = 0;
- bk_colour_id.order = 0;
-
- CallService(MS_COLOUR_REGISTER, (WPARAM)&bk_colour_id, 0);
-
- ReloadFonts(0, 0);
- HookEvent(ME_FONT_RELOAD, ReloadFonts);
- }
+int AlarmWinModulesLoaded(WPARAM wParam, LPARAM lParam)
+{
+ title_font_id.cbSize = sizeof(FontID);
+ strcpy(title_font_id.group, Translate("Alarms"));
+ strcpy(title_font_id.name, Translate("Title"));
+ strcpy(title_font_id.dbSettingsGroup, MODULE);
+ strcpy(title_font_id.prefix, "FontTitle");
+ title_font_id.flags = 0;
+ title_font_id.order = 0;
+ FontRegister(&title_font_id);
+
+ window_font_id.cbSize = sizeof(FontID);
+ strcpy(window_font_id.group, Translate("Alarms"));
+ strcpy(window_font_id.name, Translate("Window"));
+ strcpy(window_font_id.dbSettingsGroup, MODULE);
+ strcpy(window_font_id.prefix, "FontWindow");
+ window_font_id.flags = 0;
+ window_font_id.order = 1;
+ FontRegister(&window_font_id);
+
+ bk_colour_id.cbSize = sizeof(ColourID);
+ strcpy(bk_colour_id.dbSettingsGroup, MODULE);
+ strcpy(bk_colour_id.group, Translate("Alarms"));
+ strcpy(bk_colour_id.name, Translate("Background"));
+ strcpy(bk_colour_id.setting, "BkColour");
+ bk_colour_id.defcolour = GetSysColor(COLOR_3DFACE);
+ bk_colour_id.flags = 0;
+ bk_colour_id.order = 0;
+
+ ColourRegister(&bk_colour_id);
+
+ ReloadFonts(0, 0);
+ HookEvent(ME_FONT_RELOAD, ReloadFonts);
return 0;
}