From 03df9032e2b6248fed2bcf1e6d40fbfba4581779 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 27 Jun 2015 19:28:09 +0000 Subject: minor menu related fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@14420 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Ping/src/pingthread.cpp | 58 ++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 30 deletions(-) (limited to 'plugins/Ping/src/pingthread.cpp') diff --git a/plugins/Ping/src/pingthread.cpp b/plugins/Ping/src/pingthread.cpp index b4cd9b967f..272326edee 100644 --- a/plugins/Ping/src/pingthread.cpp +++ b/plugins/Ping/src/pingthread.cpp @@ -1003,36 +1003,34 @@ void InitList() else ShowWindow(hpwnd, SW_SHOW); } - { - font_id.cbSize = sizeof(FontIDT); - mir_tstrncpy(font_id.group, LPGENT("Ping"), _countof(font_id.group)); - mir_tstrncpy(font_id.name, LPGENT("List"), _countof(font_id.name)); - mir_strncpy(font_id.dbSettingsGroup, "PING", _countof(font_id.dbSettingsGroup)); - mir_strncpy(font_id.prefix, "Font", _countof(font_id.prefix)); - mir_tstrncpy(font_id.backgroundGroup, _T("Ping"), _countof(font_id.backgroundGroup)); - mir_tstrncpy(font_id.backgroundName, _T("Background"), _countof(font_id.backgroundName)); - font_id.order = 0; - font_id.flags = FIDF_DEFAULTVALID; - font_id.deffontsettings.charset = DEFAULT_CHARSET; - font_id.deffontsettings.size = -14; - font_id.deffontsettings.style = 0; - font_id.deffontsettings.colour = RGB(255, 255, 255); - mir_tstrncpy(font_id.deffontsettings.szFace, _T("Tahoma"), _countof(font_id.deffontsettings.szFace)); - - FontRegisterT(&font_id); - - bk_col_id.cbSize = sizeof(ColourIDT); - mir_tstrncpy(bk_col_id.group, _T("Ping"), _countof(bk_col_id.group)); - mir_tstrncpy(bk_col_id.name, _T("Background"), _countof(bk_col_id.name)); - mir_strncpy(bk_col_id.dbSettingsGroup, "PING", _countof(bk_col_id.dbSettingsGroup)); - mir_strncpy(bk_col_id.setting, "BgColor", _countof(bk_col_id.setting)); - bk_col_id.defcolour = RGB(0, 0, 0); - ColourRegisterT(&bk_col_id); - - HookEvent(ME_FONT_RELOAD, ReloadFont); - - ReloadFont(0, 0); - } + font_id.cbSize = sizeof(FontIDT); + mir_tstrncpy(font_id.group, LPGENT("Ping"), _countof(font_id.group)); + mir_tstrncpy(font_id.name, LPGENT("List"), _countof(font_id.name)); + mir_strncpy(font_id.dbSettingsGroup, "PING", _countof(font_id.dbSettingsGroup)); + mir_strncpy(font_id.prefix, "Font", _countof(font_id.prefix)); + mir_tstrncpy(font_id.backgroundGroup, _T("Ping"), _countof(font_id.backgroundGroup)); + mir_tstrncpy(font_id.backgroundName, _T("Background"), _countof(font_id.backgroundName)); + font_id.order = 0; + font_id.flags = FIDF_DEFAULTVALID; + font_id.deffontsettings.charset = DEFAULT_CHARSET; + font_id.deffontsettings.size = -14; + font_id.deffontsettings.style = 0; + font_id.deffontsettings.colour = RGB(255, 255, 255); + mir_tstrncpy(font_id.deffontsettings.szFace, _T("Tahoma"), _countof(font_id.deffontsettings.szFace)); + + FontRegisterT(&font_id); + + bk_col_id.cbSize = sizeof(ColourIDT); + mir_tstrncpy(bk_col_id.group, _T("Ping"), _countof(bk_col_id.group)); + mir_tstrncpy(bk_col_id.name, _T("Background"), _countof(bk_col_id.name)); + mir_strncpy(bk_col_id.dbSettingsGroup, "PING", _countof(bk_col_id.dbSettingsGroup)); + mir_strncpy(bk_col_id.setting, "BgColor", _countof(bk_col_id.setting)); + bk_col_id.defcolour = RGB(0, 0, 0); + ColourRegisterT(&bk_col_id); + + HookEvent(ME_FONT_RELOAD, ReloadFont); + + ReloadFont(0, 0); start_ping_thread(); } -- cgit v1.2.3