summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-21 15:22:44 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-21 15:22:44 +0300
commit4f38af21d106fe759a31c2fe360ce9170119ad66 (patch)
tree8f74a294187f6da33f1cb32eeddd2d90cfd076a2 /plugins/TopToolBar/src
parent335f68b1c98e92e448e11380d62d6c8df8533c92 (diff)
Clist_Modern: fix for a translation issue in Options - Skins
Diffstat (limited to 'plugins/TopToolBar/src')
-rw-r--r--plugins/TopToolBar/src/BkgrCfg.h20
-rw-r--r--plugins/TopToolBar/src/stdafx.h2
-rw-r--r--plugins/TopToolBar/src/toolbar.cpp7
3 files changed, 3 insertions, 26 deletions
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 <m_button.h>
#include <m_icolib.h>
+#include <m_skin_eng.h>
#include <m_toptoolbar.h>
#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;
}