From 4f38af21d106fe759a31c2fe360ce9170119ad66 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 21 Nov 2023 15:22:44 +0300 Subject: Clist_Modern: fix for a translation issue in Options - Skins --- plugins/TopToolBar/src/BkgrCfg.h | 20 -------------------- plugins/TopToolBar/src/stdafx.h | 2 +- plugins/TopToolBar/src/toolbar.cpp | 7 ++----- 3 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 plugins/TopToolBar/src/BkgrCfg.h (limited to 'plugins/TopToolBar/src') diff --git a/plugins/TopToolBar/src/BkgrCfg.h b/plugins/TopToolBar/src/BkgrCfg.h deleted file mode 100644 index 9d50386bae..0000000000 --- a/plugins/TopToolBar/src/BkgrCfg.h +++ /dev/null @@ -1,20 +0,0 @@ -#pragma once - -// -// Register of plugin's user -// -// wParam = (WPARAM)szSetting - string that describes a user -// format: Category/ModuleName, -// eg: "Contact list background/CLUI", -// "Status bar background/StatusBar" -// lParam = (LPARAM)dwFlags -// -#define MS_BACKGROUNDCONFIG_REGISTER "BkgrCfg/Register" - -// -// Notification about changed background -// wParam = ModuleName -// lParam = 0 -#define ME_BACKGROUNDCONFIG_CHANGED "BkgrCfg/Changed" - -#define CLBF_TILEVTOROWHEIGHT 0x0100 diff --git a/plugins/TopToolBar/src/stdafx.h b/plugins/TopToolBar/src/stdafx.h index 9f1442acf8..c684fb65ec 100644 --- a/plugins/TopToolBar/src/stdafx.h +++ b/plugins/TopToolBar/src/stdafx.h @@ -17,11 +17,11 @@ #include #include +#include #include #include "resource.h" #include "version.h" -#include "BkgrCfg.h" #define TTB_BUTTON_CLASS L"TopToolbarButtonClass" diff --git a/plugins/TopToolBar/src/toolbar.cpp b/plugins/TopToolBar/src/toolbar.cpp index f7eb887558..2176783277 100644 --- a/plugins/TopToolBar/src/toolbar.cpp +++ b/plugins/TopToolBar/src/toolbar.cpp @@ -581,11 +581,8 @@ static int OnModulesLoad(WPARAM, LPARAM) Miranda_WaitOnHandle(OnEventFire); - if (HookEvent(ME_BACKGROUNDCONFIG_CHANGED, OnBGChange)) { - char buf[256]; - mir_snprintf(buf, "%s/%s", LPGEN("TopToolBar background"), TTB_OPTDIR); - CallService(MS_BACKGROUNDCONFIG_REGISTER, (WPARAM)buf, 0); - } + if (HookEvent(ME_BACKGROUNDCONFIG_CHANGED, OnBGChange)) + BackgroundConfig_Register(LPGEN("TopToolBar background") "/" TTB_OPTDIR); return 0; } -- cgit v1.2.3